Haskell-ide-engine: Install.hs: No ghc installations found

Created on 6 Feb 2020  路  4Comments  路  Source: haskell/haskell-ide-engine

> .\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.

bug enhancement good first issue

Most helpful comment

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

All 4 comments

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

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

@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 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

hansroland picture hansroland  路  4Comments

nponeccop picture nponeccop  路  4Comments

IvanMalison picture IvanMalison  路  5Comments

mouse07410 picture mouse07410  路  4Comments