I installed haskell-idea-plugin to make a Haskell IDE.
The plugin can do the following things as claimed on https://github.com/Atsky/haskell-idea-plugin.
- Haskell syntax highlight
- Cabal syntax highlight
- Error checking with ghc-modi.
- Simple completion based on ghc-modi
- Show type of symbol (Ctrl + Shift + T, or ⌘ + Shift + T on mac)
- Build of cabal projects
Installation of cabal packages
REPL
But when I tried to debug the following simple Haskell file
module Main where
main = do
str <- getLine
putStrLn $ str++str
it reported: Debug execution error: Internal error occured while executing debug process for untitled
And here is my Haskell-debugger configuration:
I also tried other options but it didn't work.
And here is my environment:
- Ubuntu14.10
- oracle-jdk6.0
- IntelliJ IDEA 13.1.16
- haskell-idea-plugin
- ghc-mod
- remote-debugger
Although I am under windows, I got the similar error. The steps that worked for me to resolve the error:
ghc-modi.exe
from the command line. It were times when it resulted in errorghc-modi.exe: C:\Users\Nick\AppData\Roaming\cabal\bin\ghc-mod: createProcess: does not exist (No such file or directory)
This is fixed by recompiling and installingghc-mod
from the sources, I guessghc-modi
contains the hard path toghc-mod
, and the compiled files are not movable across different machines.remote-debugger
has the same hard dependency on the position in the filesystem. During one of my previous installations I copied it from different machine and gotC:\Portable\ghc-7.10.1\lib\settings: openFile: does not exist (No such file or directory)
. The fix is, again, rebuildremote-debugger
from the sources on the current machine.PATH
.hello
project from scratch and the (remote) debugging worked just fine.