Search code examples
haskellintellij-ideaghcghc-mod

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.


Solution

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