Skip to content

Failed to find the GHC version of this Cabal project. Error when calling cabal exec -v0 -- ghc --print-libdir #1221

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

Open
golddydev opened this issue Apr 3, 2025 · 1 comment
Labels
type: bug A bug or unintended effect

Comments

@golddydev
Copy link

Your environment

hls: 2.9.0.1
cabal: 3.12.1.0
ghc: 9.4.8

Which OS do you use?

Ubuntu 22.04 Jammy

How is your project built (alternative: link to the project)?

cabal project

Which LSP client (editor/plugin) do you use?

Haskell Language server extension

Which version of HLS do you use and how did you install it?

Have you configured HLS in any way (especially: a hie.yaml file)?

No

Bug

I couldn't get hls working for my project.

Failed to find the GHC version of this Cabal project. Error when calling cabal exec -v0 -- ghc --print-libdir

@golddydev golddydev added status: needs triage type: bug A bug or unintended effect labels Apr 3, 2025
@fendor fendor transferred this issue from haskell/haskell-language-server Apr 3, 2025
@fendor
Copy link
Collaborator

fendor commented Apr 3, 2025

Hi, thank you for your bug report, please follow the instructions here and provide the logs from the extension: https://github.com/haskell/vscode-haskell?tab=readme-ov-file#investigating-and-reporting-problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A bug or unintended effect
Projects
None yet
Development

No branches or pull requests

2 participants