-
Notifications
You must be signed in to change notification settings - Fork 90
'Couldn't figure out what GHC version the project is using' error on Windows 10 #435
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
Comments
Thank you for leaving an issue. It looks like your |
Thank you for your answer. Note that the critical point is, I think, the extension (or whatever code it is) can not excecute the command The mentioned executable is in the disk and in the right path by the way. I also think that, the command is executed under another shell and is not quoted properly, as the command is truncated at the first space character. This is clearly a minor bug. |
@MuratOzsoyler you are right, the vscode extension is the responsible of make that call and the bug is here (i've transferred the issue to the extesion repo) The code is here: vscode-haskell/src/hlsBinaries.ts Lines 126 to 131 in 4264523
I recently made the call inside a shell to being able to call So we have to confirm executing inside the shell is the cause and set to false or quote the PATH. Quoting could be tricky and we'll have take in account corner cases. |
Thank you for transferring the issue to the appropriate issue tracker. I recently figured out that, located the same source file and will attempt to open an issue in the vscode extension repo. |
just in case this issue is already in the vscode extension issue tracker |
I'm getting this error every time I open a project folder:
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which OS do you use:
Windows 10 Pro 21H1 19043.1151
Which lsp-client do you use:
VSCode Insiders
Describe your project (alternative: link to the project):
stack.yaml :
sheytan-generate.cabal :
Contents of
hie.yaml
:No hie.yaml
Steps to reproduce
Just open the project folder and wait for the extension activated. A notification appeared.
Expected behaviour
Extensions supposed to exceute appropirately!
Actual behaviour
I suspect that the space in the
Code - Insiders\
directory prevents the relevant command to be executed.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: