-
Notifications
You must be signed in to change notification settings - Fork 90
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
Haskell extension can't figure out LLVM version on macOS #667
Comments
The issues does not occur when using GHC 9.2.2 instead of GHC 8.10.7. |
Hi! Thank you for the bug report.
Very curious, the PATH seems to be correct, and the cli invocation succeeds... Ok, I am theory crafting right now, maybe the location of |
First: Thanks for the super quick response! When using GHC 9.2.2, everything ( FYI: I'm a total beginner in Haskell and the whole tooling stuff ( |
Your information is quite thorough, thank you very much! Ah, interesting, the PATH variable shown in the vscode extension output looks like this:
so the PATH Maybe you can fix it by adding that path to your PATH variable? Like here: https://github.com/haskell/vscode-haskell#stackcabalghc-can-not-be-found {
"haskell.serverEnvironment": {
"PATH": "/opt/llvm@12/bin:$PATH"
}
} You can modify the serverEnvironment by opening settings > Haskell > serverEnvironment. |
Hi. Sorry, but there is no path By the way I already tried to add |
Ah, I just misread the path you showed, because it line-breaks on my screen in an unfortunate way. Ok, then you will have to wait for me to reproduce it, no idea what is going wrong :) |
OK. Thank you so much for your effort! |
… did it for me :-D |
Hello, I met this question too, and I solved it. |
Your environment
Which OS do you use:
macOS 12.5 (21G72) on Apple Silicon M1
Steps to reproduce
Create simple "hello-cabal" project as described here, open VS Code with Haskell Extension from terminal via
code .
, openingMain.hs
in VSCodeExpected behaviour
HLS should work.
Actual behaviour
HLS Extension shows a problem:
In the terminal,
cabal build
works.For that I had to do a
brew install llvm@12
and added/opt/homebrew/opt/llvm@12/bin
toPATH
(in.zshrc
)Until then, a got
Couldn't figure out LLVM version!
in the Terminal, tooInclude debug information
Execute in the root of your project the command
haskell-language-server-wrapper --debug .
and paste the logs here (you can find the executable location here):Debug output:
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log:
The text was updated successfully, but these errors were encountered: