haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 213 forks source link

No ghc installations found in $PATH. #1760

Closed fuszenecker closed 4 years ago

fuszenecker commented 4 years ago

Hi,

When building HIE with cabal, I received the following error message:

[1 of 1] Compiling Main             ( Main.hs, C:\work\dev\haskell-ide-engine\dist-newstyle\build\x86_64-windows\ghc-8.10.1\fake-package-0\x\script\build\script\script-tmp\Main.o )
Linking C:\work\dev\haskell-ide-engine\dist-newstyle\build\x86_64-windows\ghc-8.10.1\fake-package-0\x\script\build\script\script.exe ...

********************************************************************************
No ghc installations found in $PATH.
The script requires at least one ghc in $PATH to be able to build hie.

********************************************************************************

No ghc installations found in $PATH.
The script requires at least one ghc in $PATH to be able to build hie.

CallStack (from HasCallStack):
  error, called at src\Env.hs:75:3 in hie-install-0.8.1.0-inplace:Env

The command I used to build HIE is:

 .\cabal-hie-install.cmd hie

Environment:

fendor commented 4 years ago

Thank you for your bug report! This seems to be a duplicate of https://github.com/haskell/haskell-ide-engine/issues/1646

Essentially, you have ghc-8.10.1 but HIE doesnt support ghc-8.10.1. The message is just wrong and it is generated because we filter all available ghc by supported ghc versions.

fuszenecker commented 4 years ago

Thank you very much