Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Haskell plugin: ghc-modi failed with error

I just installed IntelliJ idea and the official Haskell plugin. IntelliJ couldn't find ghc-modi.exe, so I installed ghc-mod through cabal.

However, after importing my cabal project, I am still receiving the following error:

ghc-modi failed with error: NG BUG: GMECabalFlags (GMEString "extractField: failed extracting configFlags from input, input contained `configFlags'? False")

How can I solve or get more information on this error?

Thanks in advance.

like image 411
Schiavini Avatar asked Jan 14 '15 13:01

Schiavini


1 Answers

This question has been answered by Atsky on GitHub:

This is internal problem of ghc-mod. It fails to read file dist/setup-config for some reason. Try to remove dist folder from your project and then run cabal config.

like image 98
Schiavini Avatar answered Oct 13 '22 09:10

Schiavini