Closed totano closed 8 years ago
I have literally no idea why it tries to run C:\WINDOWS\system32\cmd.exe
and why it can't find it. It appears package is misconfigured? Anyway, try to specify full path to ghci/cabal in package settings.
You need to have a Haskell file open, otherwise repl won't know in what context to run (technically, this command is bound to an editor instance)
I've got the exact same error text a few times, even when opening from a Haskell file. I'm not sure what I did to fix it (quit and restarted ATOM a few times), but eventually the repl worked.
Any insight is appreciated. I have no idea how to reproduce this issue or what's causing it. ← definitely not a Windows user
I updated haskell ide packages and Atom to latest version, now it is working
I hope this might help you, it seems like this issue manifest itself when there is a space in the pathname to the Haskell file.
I see the same symptom with latest packages on OSX. I have Command Path "stack", Command Args "ghci". Haskell IDE -> Open REPL opened a pane on right showing
GHCI crashed
Error: spawn stack ENOENT
Configuring the full path to the stack binary didn't help.
Also, in the Haskell IDE panel the REPL tab is always blank. I don't know if this is related to ide-haskell-repl.
Thanks!
@simonmichael this is not the same.
Put full path to stack binary in 'Command Path', e.g. /Users/simon/Haskell/bin/stack
. Double-check that this file actually exists (do ls ...
in terminal or something). Then, if error persists, copy error message verbatim.
REPL tab shows errors and warnings. It will be empty initially.
sorry to hijack this issue but I ran into the same problem. Can you explain in steps where I have to put the command path ?
I did that but now this error message :
GHCI crashed
Error : spawn /usr/bin/stack enoent
but stack is there . See
ls /usr/bin/stack
/usr/bin/stack
I assume you didn't post error message verbatim, since ENOENT
would be capitalized. Make sure there are no rogue spaces or other whitespace characters before or after /usr/bin/stack
. If that's not it, then I have no idea what's wrong. Maybe package/Atom/nodejs installation is broken somehow. Maybe your system permissions are borked in some exotic way. Maybe I'm just an idiot. But this very configuration works for me.
Oke,the culprit were a few spaces after /usr/bin/stack
Now I hope I can find out how to send a function to the repl
ide-haskell-repl:exec-command
(Shift ⇧+ Enter ⏎ by default)?
Thanks, found out already. I cannot send a function which is in a .hs file to repl ? I have to load or copy it into the ghci part. Right ?
Repl loads in the context of file currently open, provided stack is aware of it (i.e. it's in your cabal file). So any top-level definitions should already be available in repl context.
Other than that, you can use usual ghci commands like :load
.
Thanks
This would seem to have been mostly resolved. Closing due to age and lack of activity. Feel free to open new issues if needed.
Atom Version: 1.2.2 System: Microsoft Windows 10 Pro package version: 0.0.4
When clicking on Haskell IDE - Open REPL in the menu nothing happens, nothing is logged in the developer tools. After trying some more times the REPL window appears with text:
GHCI crashed Error: write EPIPEGHCI crashed Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT