-
Notifications
You must be signed in to change notification settings - Fork 20
Haskell-ghc-mod: ghc-mod command check failed with error Error #126
Comments
Please update Atom and packages. 2016-06-17 5:08 GMT+03:00 2426021684 [email protected]:
|
I am getting a similar error with Atom 1.8.0 and the following installed packages: [email protected] |
Sanity check: did you install ghc-mod? I need full logs to debug this (or frankly any other) issue. When Atom 2016-06-17 21:28 GMT+03:00 2426021684 [email protected]:
|
Yes, but I have not tested it alone first. |
I'm getting a similar error and I deciphered my error message to be communicating
|
Also meet similar trouble. I'm use stack to build my project, with command |
Carefully read https://github.com/atom-haskell/haskell-ghc-mod/wiki/Using-with-stack. TL;DR: run Also, make sure you're running at least Atom 1.8.0 and latest haskell-ghc-mod and ide-haskell packages. Old versions are not supported. Please open new issues with detailed traces if you require help. |
This works, but remember to make sure you set the path to ghc mod to default:
|
Atom: 1.14.3 x64 Stack TraceHaskell-ghc-mod: ghc-mod command check failed with error Error
Commands
Non-Core Packages
|
@VitaliZaharenko, long story short, run |
Yes, this works. Thanks! |
This also happens with The problem might be that the parent directory contains a stack project, and ghc-mod seems to search parent directories? I used cabal newbuild for a standalone project and didn't experience the same problems. ##edit nevermind, apparently ghc-mod just always expect the current project to be a stack project. |
Had to remove my user-global version (the one in |
Apparently some of this is triggered because I had ghc-mod installed via nix and am now using it via stack. Somewhere in my configuration something points to the nix store, but I don't know where. |
Atom Version: 1.5.4
_System: Ubuntu 15.10
*_Thrown From: Atom Core
Stack Trace
Haskell-ghc-mod: ghc-mod command check failed with error Error
At caps: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true}
URI: /home/roelof/Documents/haskellbook/chapter_13/hangman/app/Main.hs
Args: --
message: spawn ghc-mod ENOENT
log:
-28.82s: Trying to run ghc-modi in /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.819s: Checking for ghc-modi in /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.819s: Found running ghc-modi instance for /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.816s: Timeout
-28.768s: Trying to run ghc-modi in /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.768s: Checking for ghc-modi in /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.768s: Found running ghc-modi instance for /home/roelof/Documents/haskellbook/chapter_13/hangman
-28.768s: Timeout
-0.094s: running ghc-mod check,/home/roelof/Documents/haskellbook/chapter_13/hangman/app/Main.hs,-- with options.cwd = /home/roelof/Documents/haskellbook/chapter_13/hangman,options.env = [object Object],options.encoding = utf-8
-0.076s: running ghc-mod lint,/home/roelof/Documents/haskellbook/chapter_13/hangman/app/Main.hs,-- with options.cwd = /home/roelof/Documents/haskellbook/chapter_13/hangman,options.env = [object Object],options.encoding = utf-8
-0.063s: Main did-save triggered
-0.063s: Main updating
-0.063s: running ghc-mod browse,-d,--,Main with options.cwd = /home/roelof/Documents/haskellbook/chapter_13/hangman,options.env = [object Object],options.encoding = utf-8
-0.047s: Using fallback child_process because of spawn ghc-mod ENOENT
-0.029s: Using fallback child_process because of spawn ghc-mod ENOENT
-0.016s: Using fallback child_process because of spawn ghc-mod ENOENT
0s: Error: spawn ghc-mod ENOENT
Error: spawn ghc-mod ENOENT
at exports._errnoException (util.js:837:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
Commands
2x -1:26.3.0 core:move-right (atom-text-editor.editor.is-focused)
2x -1:20.2.0 editor:newline (atom-text-editor.editor.is-focused)
2x -1:18.8.0 core:move-left (atom-text-editor.editor.is-focused)
-1:17.9.0 core:move-down (atom-text-editor.editor.is-focused)
5x -1:17 core:move-up (atom-text-editor.editor.is-focused)
5x -1:15.7.0 core:move-down (atom-text-editor.editor.is-focused)
-0:44.2.0 editor:newline (atom-text-editor.editor.is-focused)
3x -0:41.9.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
-0:30.5.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active)
-0:29.7.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
2x -0:07.6.0 editor:newline (atom-text-editor.editor.is-focused)
-0:02.2.0 core:save (atom-text-editor.editor.is-focused)
Config
{
"core": {},
"editor": {
"invisibles": {}
}
}
Installed Packages
User
autocomplete-haskell, v0.6.2
haskell-ghc-mod, v1.11.0
ide-haskell, v1.5.3
ide-haskell-repl, v0.0.19
ide-haskell-stack, v0.0.3
language-haskell, v1.7.2
Dev
No dev packages
The text was updated successfully, but these errors were encountered: