Skip to content

Retrie isn't portable and looks for /Users/runner/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/settings #2189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anka-213 opened this issue Sep 13, 2021 · 2 comments
Labels
component: hls-retrie-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@anka-213
Copy link
Contributor

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 1.3.0.0 (GHC: 8.10.4) (PATH: /Users/anka/Library/Application Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-wrapper-1.3.0-darwin) (GIT hash: e7c5e90b6df5dff2760d76169eddaea3bdd6a831)
Tool versions found on the $PATH
cabal:          3.4.0.0
stack:          2.7.1
ghc:            8.8.4

Which OS do you use: MacOS

Which lsp-client do you use: VS Code

Describe your project (alternative: link to the project):

Contents of hie.yaml:

cradle:
   stack: {}

Steps to reproduce

Run a retrie fold or unfold operation on any definition (cmd-. and select fold)

Expected behaviour

It shouldn't crash

Actual behaviour

Running the contributed command: '82610:retrie:retrieCommand' failed.

The log contains this line

/Users/runner/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/settings: openFile: does not exist (No such file or directory)

Include debug information

Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:

Debug output:
<paste your logs here>

Paste the logs from the lsp-client, e.g. for VS Code

LSP logs:
2021-09-13 11:19:33.736922 [ThreadId 1804] INFO hls:	finish: Retrie.GhcSessionDeps (took 0.00s)
2021-09-13 11:19:33.736997 [ThreadId 1806] INFO hls:	finish: Retrie.getBinds (took 0.00s)
2021-09-13 11:19:33.737053 [ThreadId 1808] DEBUG hls:	finish: C:GetParsedModule (took 0.00s)
2021-09-13 11:19:33.737097 [ThreadId 1810] DEBUG hls:	finish: C:GetModIface (took 0.00s)
/Users/runner/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/settings: openFile: does not exist (No such file or directory)
2021-09-13 11:19:33.98762 [ThreadId 1800] ERROR hls:	Unexpected exception on request, please report!
Exception: ExitFailure 1
[Error - 11:19:33 AM] Request workspace/executeCommand failed.
  Message: ExitFailure 1
  Code: -32603 
2021-09-13 11:19:33.99427 [ThreadId 1829] INFO hls:	finish: Pragmas.GetParsedModule (took 0.00s)
2021-09-13 11:19:33.994302 [ThreadId 1835] INFO hls:	finish: RefineImports (took 0.00s)
2021-09-13 11:19:33.994328 [ThreadId 1831] INFO hls:	finish: HaddockComments.GetAnnotatedParsedSource (took 0.00s)
2021-09-13 11:19:33.994353 [ThreadId 1833] INFO hls:	finish: GhcideCodeActions.getParsedModule (took 0.00s)
2021-09-13 11:19:33.994385 [ThreadId 1837] INFO hls:	finish: importLens (took 0.00s)
2021-09-13 11:19:33.994461 [ThreadId 1839] INFO hls:	finish: retrie (took 0.00s)
@anka-213
Copy link
Contributor Author

Seems to be the same issue as #591, but for retrie instead of hlint

@jneira jneira added component: hls-retrie-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Sep 13, 2021
@jneira
Copy link
Member

jneira commented Sep 13, 2021

Yeah, the issue is reported in #471 for retrie, although the error message is for windows: the workaround and the fix are also the same as the hlint issue, as commented in #471, pr's welcome!

@jneira jneira closed this as completed Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-retrie-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants