Closed
Description
Your environment
Which OS do you use: macOS Monterey (M1)
Which LSP client (editor/plugin) do you use: vscode-haskell
Describe your project (alternative: link to the project): hie.yaml, stack.yaml, package.yaml
Steps to reproduce
Open the project in VS Code with the VS Code extension version 2.2.0, which uses HLS 1.7.0.0.
Expected behaviour
It should determine the correct GHC version (8.10.7) from the hie.yaml + stack.yaml, as it did prior to HLS 1.7.0.0.
Actual behaviour
It looks at the hie.yaml and figures out that it's a stack project.
Repeatedly generates an error (see log below).
Include debug information
Found "/Users/lkopnicky/ExaTMS/hie.yaml" for "/Users/lkopnicky/ExaTMS/a"
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.7.0.0 aarch64 ghc-9.2.2
Current directory: /Users/lkopnicky/ExaTMS
Operating system: darwin
Arguments: ["--lsp","-d"]
Cradle directory: /Users/lkopnicky/ExaTMS
Cradle type: Stack
Tool versions found on the $PATH
cabal: 3.6.2.0
stack: 2.7.5
ghc: 8.10.7
Consulting the cradle to get project GHC version...
Failed to get project GHC version: CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack setup --silent","",""]}