Closed andrewufrank closed 3 years ago
I feel like at this point, you'd be better off running stack build --only-configure --file-watch
in superproject and then run Atom with env STACK_EXE=/bin/true
(so that ghc-mod doesn't try to touch stack configuration)...
thank you for the hint. can i then still run build in atom or should i do it in the subproject folder in a terminal (what i am currently doing). i downloaded your example project and will study it. i also saw, that you use lts 8.2 and i saw that i had again some issue with ghc-mod compiled with 8.0.1 while i use 8.0.2 -- too many things which can go wrong.
Building in Atom shouldn't be a problem, build package (i.e. ide-haskell-cabal) doesn't honor STACK_EXE
(which could be considered an oversight, but it's usually fine), and stack
itself resets it. Although I think you might occasionally run into SQLite database locked
problem (which happens on some stack versions during parallel operations) -- it'll just cause build to fail immediately, and rebuilding should work, so it's a minor annoyance. Bear in mind this is untested, so I might be wrong on some accounts. I shouldn't be off the mark completely though.
slightly off topic, but wouldn't it be possible to avoid issues related to ghc by using intero with ide-haskell? I tried intero with haskero on vscode and for a project that young, the performance of type lookup was incredible compared to what i get with ghc-mode in ide-haskell.
@xavier83, intero is just GHCI basically. Possible? Yes. Is it as feature-complete as ghc-mod? Not by a long shot. One particular thing to note is ∀-types aren't handled by either intero or ghci properly. Please avoid hijacking issues in the future though. It's easy enough to create a new one with a reference.
[Enter steps to reproduce below:]
the project builds (with compile error) outside of atom. - i ran stack solver before, ok. thus: the dependency is installed.
i see that i have in .stack-work both .stack-work/install/x86_64-linux-nopie and .stack-work/install/x86_64-linux
i fear one is produce by stack build, the other by ghc-mod build?
Atom Version: 1.13.1 Electron Version: 1.3.13 System: Debian GNU/Linux Thrown From: haskell-ghc-mod package, v1.19.7
Stack Trace
Haskell-ghc-mod: ghc-mod interactive command type failed with error ghc-modi crashed
Commands
Config
Installed Packages