-
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
Figure out ghc project version even if ghc is not installed #557
Comments
I get exactly that error and it prevents me from using the VSCode Haskell extension. Is there a workaround until this issue is properly fixed? What is the "ghc in question"? I seem to have the GHC version for my project installed already. |
Please provide more info:
|
I'm using Stack.
I didn't change anything in the configuration options except enabling debug messages (to investigate this error). |
What happens when you call |
|
I just managed to resolve the issue by
|
I suspect this issue is somehow due to stack's GHC installation on M1. Afaik, stack should provide native M1 GHC binaries, but there may be some unknown caveats. GHCup has full M1 support. The question is: can you build your project with stack via command line and with |
Yes, I can, but miraculously the |
Invoking
haskell-language-server-wrapper --project-ghc-version
may fail with:when the ghc in question is not installed. That means the extension is currently unable to set up a project GHC, unless it is already installed somewhere.
This is cabal specific, but rather unergonomic.
The text was updated successfully, but these errors were encountered: