Closed mrkaspa closed 6 years ago
Atom couldn't find ghc-mod
executable. So... yeah. Run stack build ghc-mod
.
good thanks
Although i ran stack build ghc-mod in cmd windows 8, i still get the same error any help ?
I closed Atom, ran stack build ghc-mod in cmd on my Windows 10 computer, still getting this error linking to this issue.
https://atom-haskell.github.io/installation/installing-binary-dependencies/ -- pay very close attention to warnings, those are there for a reason.
Note that ghc-mod is still incompatible with GHC 8.2, which stack uses by default. Stick to lts-9 for now.
Run stack build ghc-mod
This fails for me:
~$ stack build ghc-mod
Downloaded lts-10.7 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-"```
Read my last comment. Ghc-mod still can't handle GHC 8.2. I plastered this everywhere I could think of, and people still ask about it. This is getting tiresome. I don't know how to make it more clear. Maybe read the guide I linked above, I've tried explaining everything in painstaking detail.
Also, you may need to remove ~/.stack
(which will reset stack to out-of-the-box state), it seems stackage index got corrupted.
Also, you may need to remove ~/.stack
Did this, same problem.
For now I'm ditching atom-haskell again. This is way to painful.
@lierdakil Thanks for your comments. It looks as the only way to develop haskell apps is the following:
I'm not blaming anyone, but it seems to me that haskell development environment is very immature (compared to F#, Scala). Anyway, thanks to everyone involved for their hard work!
@montonero, I'll happily agree that Scala has overall better ecosystem than Haskell. But F#, at least in my opinion, not so much -- I'd say editor support is about the same (comparing ionide for VSCode with Atom-Haskell), and in terms of overall ecosystem, I prefer Haskell's. And I'm using F# at work (occasionally), so that's saying something.
Anyway, there are options available, but those are not really suited for the uninitiated, so to speak. For one, there's a ghc-mod-5.9.0.0 package candidate that's supposed to work with GHC 8.2 -- although it most definitely has bugs.
You're not really locked into ghc-mod either. Some work's being done to support other backends, like haskell-ide-engine (not yet part of Atom-Haskell stack though, see https://atom.io/packages/ide-haskell-hie or https://github.com/atom-haskell/hie-lsp-adapter) and hsdev (see https://github.com/mvoidex/atom-haskell-hsdev). None of those is mature enough to recommend in general but might be worth a look.
[Enter steps to reproduce:]
Atom: 1.19.0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.3 Thrown From: haskell-ghc-mod package 2.0.6
Stack Trace
Haskell-ghc-mod: ghc-mod failed to launch. It is probably missing or misconfigured. ENOENT
Commands
Non-Core Packages