haskell / haskell/vscode-haskell

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

Open
#1,221 3 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
TypeScript
Stars
597
Forks
98
PR merge metrics
No merged PRs in 30d

Description

### 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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.