Open andrewufrank opened 7 years ago
It seems ghc-mod decided you want to use stack
to build your project and fails to install dependencies. If you do want to use stack, try running stack build --only-dependencies
in project directory (ide-haskell-cabal
has a build dependencies
command that should do just that, if you don't want to drop into console). If you don't, well, try building with cabal
. Bear in mind ghc-mod doesn't currently support new-build
/nix-build
.
thank you - the build command works well if i use it in a separate window. i have not set the enable nix build
flag.
what is the issue that ghc-mod is not working with stack? i have 5.6,0.0 but 5.7.0.0 is the newest - should i try to install it?
when i try to switch to build with cabal, i get no cabal file found
for build Auto
, what would be the code to build only one of the several packages in the project?
i appreciate your swift reply - the tool is really nice!
I probably should've specified that "project directory" is the one containing something.cabal
file. In this particular case, it seems that would be /home/frank/Workspace8/stacktest/repo8/uniform/uniform-typedFile
. Error message suggests that that this directory does indeed contain cabalfile, although if that is incorrect, please let me know -- this could be a bug in resolver code. Anyway, I'm guessing the file that gives you the issue belongs to this directory. Again, if not, it might be a bug in resolver code. So could you try running stack build --only-dependencies
there?
As for ghc-mod, 5.7.0.0 is a maintance release, which mostly just bumps dependencies, it shouldn't behave any different from 5.6.0.0
i am not certain if this is the same as #126 or a different issue. it happens if i edit a file (but not with other files in the same project - as much as i see - i am new to atom).
the error seems to be a problem with my stack.yaml (i am new to stack as well), as stated at the end of the error msg:
i will try to fix this, but hope it would be possible to avoid the long error message, which is not directly pointing to the problem. thank you!
== the full error message is [Enter steps to reproduce below:]
Atom Version: 1.13.1 Electron Version: 1.3.13 System: Debian GNU/Linux Thrown From: haskell-ghc-mod package, v1.19.6
Stack Trace
Haskell-ghc-mod: ghc-mod interactive command check failed with error ghc-modi crashed
Commands
Config
Installed Packages