vscode+ haskell extension on endeavour os kde with stack cabal and ghc configured and in $PATH
/snap/bin:/home/qwerty/.nimble/bin:/root/.local/share/gem/ruby/3.0.0/bin:/home/qwerty/.gem/ruby/3.0.0/bin:/home/qwerty/.gem/ruby/2.7.0/bin:/home/qwerty/clones/bat-extras/bin:/home/dankey/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/usr/bin/cabal:/usr/bin/stack:/usr/bin/ghc:/usr/bin/cabal:/usr/bin/stack:/usr/bin/ghc:/home/qwerty/.gem/ruby/2.7.0/bin
with hie.yaml looking like
cradle:
stack:
on a brand new stack project
the extension (hls) fails with this error:
Couldn't figure out what GHC version the project is using: /home/dankey/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-wrapper-1.4.0-linux --project-ghc-version exited with exit code 1: Found "/home/dankey/dev/projects/bla/hie.yaml" for "/home/dankey/dev/projects/bla/a" Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack setup --silent","",""]}
this is the output from the haskell section on the output tab
[client][ERROR] Error executing '/home/dankey/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-wrapper-1.4.0-linux --project-ghc-version' with error code 1
[client][ERROR] stderr: Found "/home/dankey/dev/projects/bla/hie.yaml" for "/home/dankey/dev/projects/bla/a"
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack setup --silent","",""]}
help