Closed dniku closed 7 years ago
This could indicate that either compilation cache broke somewhere, or there's a version mismatch between ghc-mod and current ghc version.
A thing to try is (I'm guessing you're using stack, if not, please correct me):
stack clean
stack build
stack build ghc-mod
This will ensure that everything in current project is consistent. Do make sure that 'Ghc-Mod Path' setting in h-g-m is set to 'ghc-mod' without full path. Otherwise it will mess with sandbox auto-detection. You might take a look at https://github.com/atom-haskell/haskell-ghc-mod/wiki/Using-with-stack for a good measure.
Filed upstream as https://ghc.haskell.org/trac/ghc/ticket/13675.
Looking at the build log, you might want to try installing cpphs manually (stack build cpphs
), it might help.
Yesterday when I was launching Atom with
haskell-ghc-mod
installed, it did not throw any errors. Today, after no significant changes I recall, it throws the error below.The error itself originates from GHC, from this line.
Atom: 1.16.0 x64 Electron: 1.4.15 OS: "Manjaro Linux" Thrown From: haskell-ghc-mod package 1.19.9
Stack Trace
Haskell-ghc-mod: ghc-mod command browse failed with error Error
Commands
Non-Core Packages