[Haskell-cafe] Having issue in running Haskell code in Atom

Balraj Singh erbalrajs at gmail.com
Sun Jun 5 20:21:56 UTC 2016


Hello All,

I have started learning Haskell couple of days ago. I was looking for an
IDE and found Atom as one of them. When I started using it I installed
multiple packages and tried running creating Haskell files and saving it.
This IDE always gives me following error. Please help to debug this:

[Enter steps to reproduce below:]

1. ...
2. ...

**Atom Version**: 1.7.4
**System**: Microsoft Windows 10 Pro
**Thrown From**: [haskell-ghc-mod](
https://github.com/atom-haskell/haskell-ghc-mod) package, v1.14.5


### Stack Trace

Haskell-ghc-mod: ghc-mod failed to launch. It is probably missing or
misconfigured. ENOENT

```
At Error: spawn ghc-mod ENOENT
PATH: undefined
path: undefined
Path: C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Users\Balraj
Singh\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program
Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows
Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files
(x86)\Java\jdk1.7.0_71\lib;C:\Program Files (x86)\Java\jre7\lib;C:\Program
Files (x86)\Java\jdk1.7.0_71\bin;C:\Program Files
(x86)\Java\jre7\bin;C:\Program Files\Git\cmd;C:\Program Files
(x86)\WinMerge;C:\ghc-8.0.1\bin;C:\Users\Balraj Singh\AppData\Local\atom\bin

Error
    at file:///C:/Users/Balraj
Singh/.atom/packages/haskell-ghc-mod/lib/util.coffee:60:26
    at exithandler (child_process.js:232:5)
    at ChildProcess.errorhandler (child_process.js:244:5)
    at emitOne (events.js:77:13)
    at ChildProcess.emit (events.js:169:7)
    at Process.ChildProcess._handle.onexit
(internal/child_process.js:198:12)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:465:9)
    at process._tickCallback (node.js:379:17)
```

### Commands

```
     -8:25.4.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -8:22 core:save (atom-text-editor.editor.is-focused)
     -8:00.7.0 tabs:open-in-new-window
(li.texteditor.tab.sortable.active.right-clicked)
     -7:50.5.0 tree-view:show-in-file-manager
(span.name.icon.icon-file-text)
     -3:30.1.0 core:save (atom-text-editor.editor.is-focused)
     -3:22.2.0 haskell-ghc-mod:go-to-declaration
(atom-text-editor.editor.is-focused)
  2x -2:53 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)
     -2:39.2.0 ide-haskell:toggle-output
(atom-text-editor.editor.is-focused)
     -2:34.6.0 ide-haskell-cabal:build (atom-text-editor.editor.is-focused)
     -2:24.8.0 ide-haskell-cabal:test (atom-text-editor.editor.is-focused)
     -2:18.5.0 haskell-ghc-mod:check-file
(atom-text-editor.editor.is-focused)
     -2:14.6.0 haskell-ghc-mod:lint-file
(atom-text-editor.editor.is-focused)
     -2:03.4.0 ide-haskell:prettify-file
(atom-text-editor.editor.is-focused)
     -1:53.1.0 haskell-ghc-mod:lint-file
(atom-text-editor.editor.is-focused)
  2x -0:59.2.0 haskell-ghc-mod:check-file
(atom-text-editor.editor.is-focused)
     -0:03.8.0 haskell-ghc-mod:shutdown-backend
(atom-text-editor.editor.is-focused)
```

### Config

```json
{}
```

### Installed Packages

```coffee
# User
haskell-ghc-mod, v1.14.5
ide-haskell, v1.6.5
ide-haskell-cabal, v1.4.0
ide-haskell-repl, v0.0.23
language-haskell, v1.7.16

# Dev
No dev packages
```

Regards,
Balraj Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160606/92d27d93/attachment.html>


More information about the Haskell-Cafe mailing list