-
-
Notifications
You must be signed in to change notification settings - Fork 391
Weird error: Failed to find the GHC version of this Cabal project #3215
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
I've just encountered the same issue, except with GHC 9.2.4 and in Emacs with eglot. The command reported as problematic works in shell:
|
|
Yes. In my case, the problem seems related to HLS failing to get the correct PATH from the IDE(in my case- VS Code) regardless of how I set |
Iirc, @mouse07410 you should remove |
Closing - this issue must have something to do with my config, and until I nail it, there's no point getting this team involved. Will re-open if/when find useful details to report. |
Uh oh!
There was an error while loading. Please reload this page.
Your environment
Which OS do you use? macOS Monterey 12.5.1
Which version of GHC do you use and how did you install it? GHC-9.4.2, installed via ghcup
How is your project built (alternative: link to the project)? Via Cabal-3.8.1.0
Which LSP client (editor/plugin) do you use? VS Codium+vscode-haskell
Which version of HLS do you use and how did you install it? 1.8.0.0 via ghcup
Which LSP client (editor/plugin) do you use? VS Code + Haskell v2.2.1
Have you configured HLS in any way (especially: a
hie.yaml
file)? Nohie.yaml
In the
$HOME/Library/Application Support/Code/User/settings.json
:Steps to reproduce
Start VS Code and open project directory.
Expected behaviour
No errors.
Actual behaviour
VS Code error message popup:
In the Terminal:
$ cabal exec -v0 -- ghc --print-libdir /Users/ur20980/.ghcup/ghc/9.4.2/lib/ghc-9.4.2/lib $
Debug information
Tried to check Troubleshooting page, did not get far with VS Code on Mac.
The text was updated successfully, but these errors were encountered: