-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
VSC Extension can't find GHC when installed with GHCup #2331
Comments
Hi, i think the cause might be the env loaded in gui apps dont use the same setup file than the cli (
|
I have added it to my I will try the other solutions later |
have you restarted your windows session?
see #236 (comment) |
Yes. When I restart, .ghcup/bin is still in my PATH but the extension fails to load |
The As others have said, it makes sense to have a GHCup directory setting |
hmm, but hls for scripts uses directly ghc and you have ghc installed and available in PATH. I wonder if you have stack installed using another method and it is available for vscode but ghc and cabal are not. |
Yeah, we have plans to add such option and use it for install/set the appropiate tools for the project at hand: haskell/vscode-haskell#483 Anyways i think we can close this one, as it is essentially the problem described in #236. Feel free to comment there any thought or suggestion. Thanks for reporting the issue! |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:bash: haskell-language-server-wrapper: command not found
Which OS do you use:
Manjaro
Which lsp-client do you use:
Code OSS
Describe your project (alternative: link to the project):
It's a standalone file
Contents of
hie.yaml
:I don't have one
Steps to reproduce
ghcup set ghc 8.10.7
Expected behaviour
The extension should run
Actual behaviour
I get a toast saying "Project requires GHC but it isn't installed".
ghc --version
runs fine in a terminal and.ghcup/bin/
is in my PATH so I don't know what to doThis error didn't occur previously when I had installed GHC 9.0.1-4 via pacman. I wanted to switch to version 8.10.7 for better support
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: