haskell / hie-bios

Set up a GHC API session for various Haskell Projects

Home Page:https://hackage.haskell.org/package/hie-bios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong `ghc` detected by hie-bios

hasufell opened this issue · comments

$ haskell-language-server-wrapper --project-ghc-version 2>/dev/null
9.2.2

$ cabal build
cabal: Cannot find the program 'ghc'. User-specified path 'ghc-8.10.7' does
not refer to an executable and the program is not on the system path.

$ ghc --numeric-version                                                                                                                   Sun 12:35
9.2.2

It seems this is fixed on master.

The errors now is:

Found "/home/hasufell/git/bytestring/hie.yaml" for "/home/hasufell/git/bytestring/a"
Failed to get project GHC version: CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling cabal exec -v0 -- ghc --print-libdir","","cabal: Cannot find the program 'ghc'. User-specified path 'ghc-8.10.7' does\nnot refer to an executable and the program is not on the system path.\n\n"]}