haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

Install.hs: No ghc installations found

Open fendor opened this issue 4 years ago • 4 comments

> .\cabal-hie-install help

********************************************************************************
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:79:3 in hie-install-0.8.0.0-inplace:Env

Happens on windows when using choco install haskell-dev. Then by default, ghc 8.8.1 is installed which we do not support (I dont know why though, was there a big bug in it)? However, this error message is not useful since I compiled and ran the install script but now it is telling me that there is no ghc on the path.

fendor avatar Feb 06 '20 12:02 fendor

Mmm, you are right, at least it should show a more specific message: No *supported/elegible for build hie/???* ghc installations found in $PATH.

A better ux would be show the list of not supported ghc installations and tell the user why they are not elegible (and keep the actual message when really there is no ghc on path) and which versions are supporteds to help choose another one.

I am afraid that we cant build hie with 8.8.1 and 8.8.2 in windows due to a ghc bug that throws a compilation error building Cabal-3.0.1.0

jneira avatar Feb 06 '20 13:02 jneira

I am getting the same error and I installed GHC (which includes cabal-install) via Chocolatey.

freeman42x avatar Apr 29 '20 13:04 freeman42x

@razvan-flavius-panda then as described by the issue, you are probably using a ghc version that is not supported by hie? which one are you using, what are you trying to install?

fendor avatar Apr 29 '20 16:04 fendor

@fendor as I mentioned I installed GHC (which includes cabal-install) via Chocolatey. What is in Chocolately right now is GHC 8.10.1 and that is probably what I installed. And if I check the .yaml files it seems that version is not really supported so that is probably the issue.

freeman42x avatar Apr 30 '20 02:04 freeman42x