Git Product home page Git Product logo

haskell-ghc-mod's Introduction

Deprecation & archival notice

GHC-Mod has been unsupported for several years now. This package still might work with older GHC releases (where GHC-Mod still works), but overall its usefulness is questionable. Hence, this repository is deprecated and archived.

If you want to discuss haskell-ghc-mod, feel free to open an issue on https://github.com/atom-haskell/ide-haskell/issues.

haskell-ghc-mod atom package

This package is primarily intended as backend for ide-haskell.

Haskell ghc-mod opens pipe to ghc-modi and queries types, info and checks for errors.

Installation and configuration

Please refer to the official documentation site https://atom-haskell.github.io

Service-hub API

Since 1.0.0, haskell-ghc-mod provides haskell-completion-backend service.

NOTE: Prior to 1.0.0, ide-backend service was provided. It has been scrapped in favor of ide-haskell's UPI.

You can find description in src/completion-backend/index.ts

License

Copyright © 2015 Atom-Haskell

Contributors (by number of commits):

  • Nikolay Yakimov
  • Daniel Gröber
  • Petr Gladkikh
  • Mike MacDonald
  • Maiddog
  • Maciej Aleksandrowicz
  • Jason Jackson
  • Dennis J. McWherter Jr
  • Aaron Wolf

See the LICENSE.md for details.

haskell-ghc-mod's People

Contributors

crazymykl avatar danielg avatar jacksonja avatar lierdakil avatar macvek avatar petrglad avatar roughsketch avatar wolftune avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

haskell-ghc-mod's Issues

Uncaught Error: Error: Command failed: C:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\KIRICH~1.KL\AppData\Local\Temp\haskell-ghc-mod11539-4120-1xwonak.hsuser error (ghc not found)

From command line (OK):

ghc-mod check src\Main.hs
src\Main.hs:5:1:parse error (possibly incorrect indentation or mismatched brackets)

In Atom:

Atom Version: 0.189.0
System: Microsoft Windows 7 Professional
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: Error: Command failed: C:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\kot\AppData\Local\Temp\haskell-ghc-mod11539-4120-1xwonak.hs
user error (ghc not found)

At C:\Users\kot\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:70

Error: Error: Command failed: C:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\kot\AppData\Local\Temp\haskell-ghc-mod11539-4120-1xwonak.hs
user error (ghc not found)

  at C:\Users\kot\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:70:17
  at ChildProcess.exithandler (child_process.js:736:5)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at maybeClose (child_process.js:997:16)
  at Process.ChildProcess._handle.onexit (child_process.js:1070:5)

Commands

     -3:30.6 core:confirm (atom-text-editor.editor.mini)
     -1:41.7 core:save (atom-text-editor.editor.is-focused)
     -0:26.5 core:paste (atom-text-editor#haskell-ghc-mod.ghcModiPath.editor.mini)
     -0:18.5 core:copy (atom-text-editor#haskell-ghc-mod.ghcModiPath.editor.mini)
     -0:17.3 core:paste (atom-text-editor#haskell-ghc-mod.ghcModPath.editor.mini)
  5x -0:16.4 core:move-left (atom-text-editor#haskell-ghc-mod.ghcModPath.editor.mini)
     -0:15.5 core:delete (atom-text-editor#haskell-ghc-mod.ghcModPath.editor.mini)
     -0:08.5 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "atom-light-syntax"
    ],
    "audioBeep": false
  },
  "haskell-ghc-mod": {
    "ghcModiPath": "C:\\Users\\kot\\AppData\\Roaming\\cabal\\bin\\ghc-modi.exe",
    "ghcModPath": "C:\\Users\\kot\\AppData\\Roaming\\cabal\\bin\\ghc-mod.exe"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.2.1
autocomplete-plus, v2.7.1
haskell-ghc-mod, v0.4.3
language-haskell, v1.0.0
language-rust, v0.4.2
linter, v0.12.0
linter-rust, v0.0.8
racer, v0.9.1

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'get' of null

[Enter steps to reproduce below:]

  1. Open a haskell file (in particular, Course/List.hs from https://github.com/NICTA/course

Atom Version: 0.207.0
System: Mac OS X 10.10.4
Thrown From: haskell-ghc-mod package, v0.7.4

Stack Trace

Uncaught TypeError: Cannot read property 'get' of null

At /Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:38

TypeError: Cannot read property 'get' of null
  at GhcModiProcessTemp.module.exports.GhcModiProcessBase.killProcessForDir (/Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:38:5)
  at GhcModiProcessTemp.killProcessForDir (/Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:1:1)
  at /Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:15:29

Commands

Config

{
  "core": {
    "disabledPackages": [
      "linter-pyflakes",
      "linter-shellcheck",
      "language-haskell",
      "autocomplete-haskell"
    ],
    "destroyEmptyPanes": false
  },
  "haskell-ghc-mod": {
    "ghcModiPath": "/Users/ageorges/Library/Haskell/bin/ghc-modi",
    "ghcModPath": "/Users/ageorges/Library/Haskell/bin/ghc-mod"
  }
}

Installed Packages

# User
autocomplete-plus-python-jedi, v0.3.6
haskell-ghc-mod, v0.7.4
ide-haskell, v0.5.10
linter, v0.12.6
linter-flake8, v1.4.2
linter-hlint, v0.3.6
linter-pep8, v0.2.0
minimap, v4.9.4
project-manager, v1.15.10
vim-mode, v0.51.0

# Dev
No dev packages

fails to recognize bash PATH for ghc-mod / ghc-modi

I had tested this originally when installing ghc-mod via cabal and now with installing via stack. In both cases, I have ghc-mod on my bash PATH, i.e. I can run "which ghc-mod" and see the path and also can simply run "ghc-mod" with no path specified anywhere in bash and it works. It is on my path.

However, haskell-ghc-mod says that it can't find ghc-mod and ghc-modi unless I go to the settings and provide the path explicitly. So, the default path of just ghc-mod (thus deferring to the path known by bash) is not working.

Uncaught Error: Error: Command failed: ghc-mod type /var/folders/28/hhwsccr90x7_bwdl4dyl292m0000gn/T/haskell-ghc-mod11529-2337-ugp709.hs 31 3/Users/LiuMS/GitHub/BBQ/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

I am trying to use haskell-ghc-mod but haven't made any progress. Initially, whenever I tried to check an identifier's type, an error of "This socket is closed." was thrown. Later, I disabled "Enable Ghc Modi", the following problem appeared. Besides, whenever I save a file, the same error is thrown. (Considering the "check on save" I think this is reasonable).

I haven't used ghc-mod with any other ide/editors yet. It was installed through cabal and is indeed the latest version.

Atom Version: 0.182.0
System: Mac OS X 10.10.3
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: Error: Command failed: ghc-mod type /var/folders/28/hhwsccr90x7_bwdl4dyl292m0000gn/T/haskell-ghc-mod11529-2337-ugp709.hs 31 3
/Users/LiuMS/GitHub/BBQ/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

At /Users/LiuMS/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70

Error: Error: Command failed: ghc-mod type /var/folders/28/hhwsccr90x7_bwdl4dyl292m0000gn/T/haskell-ghc-mod11529-2337-ugp709.hs  31 3
/Users/LiuMS/GitHub/BBQ/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

  at /Users/LiuMS/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70:17
  at ChildProcess.exithandler (child_process.js:756:5)
  at ChildProcess.emit (events.js:119:17)
  at maybeClose (child_process.js:1013:16)
  at Socket.<anonymous> (child_process.js:1181:11)
  at Socket.emit (events.js:116:17)
  at Pipe.close (net.js:477:12)
  at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:21:31)
  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:110:29)
  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app/src/context-menu-manager.js:169:33)
  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:147:33)
  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)

Commands

     -3:13.7 editor:newline (atom-text-editor.editor.is-focused)
  3x -3:10.7 autocomplete-plus:select-next (atom-text-editor.editor.is-focused)
     -3:08.7 editor:newline (atom-text-editor.editor.is-focused)
  5x -3:07.8 core:backspace (atom-text-editor.editor.is-focused)
     -2:48.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack.remove)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "enableGhcModi": false
  }
}

Installed Packages

# User
autocomplete-plus, v2.2.0
haskell-ghc-mod, v0.4.3
ide-haskell, v0.3.5
language-haskell, v1.0.0

# Dev
No dev packages

spawn error

getting this error msg when I open a haskell src file:

'ghc-modi' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

ghc-modi is installed and is in the current path. I can make this work by explicitly putting the path in the pkg settings within atom

spawn failure

Hello, I'm brand new here and, for me, using haskell-ghc-mod has never worked before because of this error:

Haskell-ghc-mod: C:\Users\Kieran\Appdata\Roaming\cabal\bin\ghc-mod.exe -d Playfair failed with error message Error: spawn C:\Users\Kieran\Appdata\Roaming\cabal\bin\ghc-mod.exe ENOENT

I'm on Atom version 1.0.0 and haskell-ghc-mod version 0.8.2 on Windows 8.1.

Type popups take several seconds to appear when ghc-modi is enabled

I am running:
Atom 1.0.2
haskell-ghc-mod 0.8.3
ide-haskell 0.6.2
ghc-mod version 5.2.1.2 compiled by GHC 7.8.4
GHC 7.8.4
Ubuntu 14.04

When ghc-modi is enabled in the haskell-ghc-mod Atom settings, it takes several seconds for the type to popup after hovering over some text. During this time the hourglass appears in the Haskell IDE panel. When the type finally appears, the hourglass turns back into a check-mark. Disabling ghc-modi fixes this; type popups appear promptly with the hourglass appearing for less than a second.

ghc-mod-master support

Getting some weird behavior with this plugin. Autocomplete Haskell is working fine, however ide-haskell is not highlighting the errors shown in the errors panel.

Atom Version: 0.204.0
System: Mac OS X 10.10.3
Thrown From: haskell-ghc-mod package, v0.6.3

Stack Trace

Uncaught TypeError: Invalid value used as weak map key

At /Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:363

TypeError: Invalid value used as weak map key
  at WeakMap.get (native)
  at CompletionBackend.module.exports.CompletionBackend.getCompletionsForModule (/Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:363:21)
  at /Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:1:1
  at SuggestionBuilder.module.exports.SuggestionBuilder.processSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:52:5)
  at SuggestionBuilder.processSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.moduleSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:59:6)
  at SuggestionBuilder.moduleSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.getSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:85:8)
  at SuggestionBuilder.getSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at Object.getSuggestions (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/autocomplete-haskell.coffee:42:49)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:255:56
  at Array.forEach (native)
  at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:234:17)
  at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
  at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:221:19)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

  2x -2:14.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -2:11.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:05.3.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -2:04.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:56.2.0 settings-view:install-packages-and-themes (ul.list-inline.tab-bar.inset-panel)
     -1:35.2.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -1:33.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:26 core:save (div.settings-view.pane-item)
     -0:23.1.0 core:close (atom-text-editor.editor.mini.is-focused)
     -0:21.8.0 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.command-mode.is-focused)
     -0:21.4.0 vim-mode:insert-after (atom-text-editor.editor.vim-mode.command-mode.is-focused)
     -0:14.6.0 application:new-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:12.4.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.command-mode.is-focused)
     -0:09.4.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:05.9.0 grammar-selector:show (atom-text-editor.editor.vim-mode.insert-mode)
     -0:04.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {},
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/briansunter/.cabal/bin/ghc-mod",
    "ghcModiPath": "/Users/briansunter/.cabal/bin/ghc-modi"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.4.3
haskell-ghc-mod, v0.6.3
ide-haskell, v0.5.7
language-haskell, v1.0.0
linter-clojure, v0.0.5
linter-hlint, v0.3.6
markdown-format, v2.5.1
vim-mode, v0.49.0

# Dev
No dev packages

Controlling warnings shown

Nice module!

When I use ghc-mod from emacs, I run with this setting in my init.el:

(defvar ghc-ghc-options '("-fno-warn-name-shadowing") "*GHC options")

which disable the name shadowing warnings, which I really don't like.

How can I do this with the atom editors haskell-ghc-mod package?

Uncaught TypeError: Cannot read property 'getPath' for undefined

Affect version 0.8.6 . This may be related to #31

Reproduce:

  1. Main Menu -> View -> Toggle Tree View make sure the left treeview is visible
  2. remove any project folder in the left treeview
  3. Main Menu -> Atom -> Preferences , now in the left treeview there will be an empty node named 'config'
  4. open any .hs file
  5. move mouse over a method or a variable , e.g. putStrLn, haskell-ghc-mod will show its type
  6. right click on 'config' node in the left treeview and select 'remove project folder'
  7. repeat 5 will cause an error 'Uncaught TypeError: Cannot read property 'getPath' of undefined'

Here is the stacktrace:

/Users/user/.atom/packages/haskell-ghc-mod/lib/util.coffee:16
Hide Stack Trace
TypeError: Cannot read property 'getPath' of undefined
    at Object.module.exports.Util.getRootDir (/Users/user/.atom/packages/haskell-ghc-mod/lib/util.coffee:28:14)
    at GhcModiProcess.module.exports.GhcModiProcess.getTypeInBuffer (/Users/user/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:233:19)
    at GhcModiProcess.getTypeInBuffer (/Users/user/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:3:61)
    at IdeBackend.module.exports.IdeBackend.getType (/Users/user/.atom/packages/haskell-ghc-mod/lib/ide-backend.coffee:81:29)
    at IdeBackend.getType (/Users/user/.atom/packages/haskell-ghc-mod/lib/ide-backend.coffee:3:61)
    at /Users/user/.atom/packages/ide-haskell/lib/editor-control.coffee:272:97
    at EditorControl.showExpressionType (/Users/user/.atom/packages/ide-haskell/lib/editor-control.coffee:329:16)
    at /Users/user/.atom/packages/ide-haskell/lib/editor-control.coffee:79:57

Uncaught Error: Error: Command failed: c:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\kot\AppData\Local\Temp\haskell-ghc-mod11534-15332-1ebx1yi.hsD:\git\Haskell1\Haskell1.cabal: 60: user error (Parse of field 'build-depends' failed.)

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.189.0
System: Unknown Windows Version
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: Error: Command failed: c:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\kot\AppData\Local\Temp\haskell-ghc-mod11534-15332-1ebx1yi.hs
D:\git\Haskell1\Haskell1.cabal: 60: user error (Parse of field 'build-depends' failed.)

At C:\Users\kot\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:70

Error: Error: Command failed: c:\Users\kot\AppData\Roaming\cabal\bin\ghc-mod.exe check C:\Users\kot\AppData\Local\Temp\haskell-ghc-mod11534-15332-1ebx1yi.hs
D:\git\Haskell1\Haskell1.cabal: 60: user error (Parse of field 'build-depends' failed.)

  at C:\Users\kot\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:70:17
  at ChildProcess.exithandler (child_process.js:736:5)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at maybeClose (child_process.js:997:16)
  at Process.ChildProcess._handle.onexit (child_process.js:1070:5)

Commands

     -0:17.4 snippets:next-tab-stop (atom-text-editor.editor)
     -0:17.4 snippets:expand (atom-text-editor.editor)
     -0:17.4 editor:indent (atom-text-editor.editor)
     -0:17.2 snippets:next-tab-stop (atom-text-editor.editor)
     -0:17.2 snippets:expand (atom-text-editor.editor)
     -0:17.2 editor:indent (atom-text-editor.editor)
     -0:17.0 snippets:next-tab-stop (atom-text-editor.editor)
     -0:17.0 snippets:expand (atom-text-editor.editor)
     -0:17.0 editor:indent (atom-text-editor.editor)
     -0:16.8 snippets:next-tab-stop (atom-text-editor.editor)
     -0:16.8 snippets:expand (atom-text-editor.editor)
     -0:16.8 editor:indent (atom-text-editor.editor)
     -0:16.2 core:backspace (atom-text-editor.editor)
  2x -0:13.4 core:save (atom-text-editor.editor)
     -0:09.3 ide-haskell:check-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -0:09.3 ide-haskell:lint-file (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "c:\\Users\\kot\\AppData\\Roaming\\cabal\\bin\\ghc-mod.exe",
    "ghcModiPath": "c:\\Users\\kot\\AppData\\Roaming\\cabal\\bin\\ghc-modi.exe"
  }
}

Installed Packages

# User
autocomplete-plus, v2.8.0
git-projects, v1.13.0
haskell-ghc-mod, v0.4.3
ide-haskell, v0.3.6
language-haskell, v1.0.0
language-rust, v0.4.2
linter, v0.12.0
linter-rust, v0.0.8
racer, v0.9.1

# Dev
No dev packages

Failed to spawn command ghc-mod

The latest update (not 100% sure about that) seems to have broken something.
It works for cabal projects, but when I open a single Haskell file I get the error.

Not really sure what other info I can provide.
I'm running Windows 8. Both Atom and all the ide-haskell packages are at their current latest versions.

This is the exception in the dev tools

Uncaught BufferedProcessError: Failed to spawn command `ghc-mod`. Make sure `ghc-mod` is installed and on your PATH

openFile: does not exist (No such file or directory)

I get endless stack traces of:

Haskell-ghc-mod: /Users/ptrckbrwn/.local/bin/ghc-mod check /Users/ptrckbrwn/git/github.com/ptrckbrwn/weblog/site.hs failed with error code 1
/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/settings: openFile: does not exist (No such file or directory)

It's absolutely correct, I do not have ghc installed at /Applications/ghc-7.8.4.app. Is atom-haskell/hakell-ghc-mod compatible with ghc installed in other locations?

For example:

$ which ghc-mod
/Users/ptrckbrwn/.local/bin/ghc-mod

image

Invalid value used as weak map key

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.204.0
System: Mac OS X 10.10.3
Thrown From: haskell-ghc-mod package, v0.6.3

Stack Trace

Failed to activate the haskell-ghc-mod package

At Invalid value used as weak map key

TypeError: Invalid value used as weak map key
    at WeakMap.has (native)
    at CompletionBackend.module.exports.CompletionBackend.getModuleMap (/Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:357:24)
    at CompletionBackend.module.exports.CompletionBackend.registerCompletionBuffer (/Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:474:20)
    at CompletionBackend.registerCompletionBuffer (/Users/briansunter/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:3:61)
    at /Users/briansunter/.atom/packages/autocomplete-haskell/lib/autocomplete-haskell.coffee:66:54
    at Workspace.module.exports.Workspace.observeTextEditors (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:267:9)
    at Object.module.exports.AutocompleteHaskell.consumeCompBack_0_1_0 (/Users/briansunter/.atom/packages/autocomplete-haskell/lib/autocomplete-haskell.coffee:61:50)
    at Provider.module.exports.Provider.provide (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/provider.js:30:34)
    at ServiceHub.module.exports.ServiceHub.provide (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/service-hub/lib/service-hub.js:29:18)
    at Package.module.exports.Package.activateServices (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:372:65)

Commands

Config

{
  "core": {},
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/briansunter/.cabal/bin//ghc-mod",
    "ghcModiPath": "/Users/briansunter/.cabal/bin//ghc-modi"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.4.3
haskell-ghc-mod, v0.6.3
ide-haskell, v0.5.7
language-haskell, v1.0.0
linter-hlint, v0.3.6
vim-mode, v0.49.0

# Dev
No dev packages

haskell-ghc-mod not working after installing and configured

Atom Version: 0.179.0
System: Windows 7
Thrown From: haskell-ghc-mod package, v0.4.1

  1. After installing haskell-ghc-mod I see following error:

Stack Trace

Uncaught Error: Error: Command failed: C:\Users\Bet\AppData\Roaming\cabal\bin\ghc-mod.exe browse -d Import
retrieval of the cabal configuration flags failed: extractField: failed extracting configFlags from input, input contained `configFlags'? False

At /C:/Users/Bet/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:124

Error: Error: Command failed: C:\Users\Bet\AppData\Roaming\cabal\bin\ghc-mod.exe browse -d Import
retrieval of the cabal configuration flags failed: extractField: failed extracting configFlags from input, input contained `configFlags'? False

  at C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:69:17
  at ChildProcess.exithandler (child_process.js:756:5)
  at ChildProcess.emit (events.js:119:17)
  at maybeClose (child_process.js:1013:16)
  at Socket.<anonymous> (child_process.js:1181:11)
  at Socket.emit (events.js:116:17)
  at Pipe.close (net.js:477:12)

Commands

     -9:55.1 ide-haskell:check-file (atom-text-editor.editor)
 14x -7:47.5 core:backspace (atom-text-editor#ide-haskell.ghcModPath.editor.mini)
  2x -7:41.4 core:save (atom-text-editor#ide-haskell.stylishHaskellPath.editor.mini)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai-dark"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "C:\\Users\\Bet\\AppData\\Roaming\\cabal\\bin\\ghc-mod.exe",
    "ghcModiPath": "C:\\Users\\Bet\\AppData\\Roaming\\cabal\\bin\\ghc-modi.exe"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.2.0
autocomplete-plus, v2.1.6
git-projects, v1.7.1
git-tab-status, v1.5.3
haskell-ghc-mod, v0.4.1
ide-haskell, v0.3.2
language-haskell, v1.0.0
language-powershell, v1.0.0
linter-hlint, v0.3.1
monokai-dark, v1.0.0

# Dev
No dev packages

Uncaught Error: This socket has been ended by the other party

When I have ide-haskell running I get this error every time I save the my files. :S

  1. Save file

Atom Version: 0.176.0
System: Microsoft Windows 7 Ultimate
Thrown From: haskell-ghc-mod package, v0.3.1

Stack Trace

Uncaught Error: This socket has been ended by the other party

At events.js:85

Error: This socket has been ended by the other party
  at Socket.writeAfterFIN [as write] (net.js:282:12)
  at GhcModiProcess.module.exports.GhcModiProcess.runCmd (c:\Users\jannick\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:33:22)
  at c:\Users\jannick\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:94:8
  at c:\Users\jannick\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:61:9
  at c:\Users\jannick\AppData\Local\atom\app-0.176.0\resources\app\node_modules\temp\lib\temp.js:150:7
  at Object.oncomplete (fs.js:93:15)

Commands

     -0:03.8 core:save (input.hidden-input)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "projectHome": "C:\\Users\\jannick\\Projects"
  },
  "haskell-ghc-mod": {}
}

Installed Packages

# User
autocomplete-haskell, v0.1.2
autocomplete-plus, v2.0.3
haskell-ghc-mod, v0.3.1
ide-haskell, v0.3.0
language-haskell, v1.0.0

# Dev
No dev packages

/cc @atom/core

ghc-mod fails (invalid byte sequence)

Haskell-ghc-mod: ghc-mod failed with error code 1 
/Users/justusadam/projects/Haskell/vocab-trainer/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

ghc-mod version 5.2.1.2

ghc version 7.8.4

Not Auto-completing Haskell properly

Hi,

I have installed

$apm install language-haskell haskell-ghc-mod ide-haskell autocomplete-haskell

but, when i type import System. it is not auto-completing whole path. In Console, i am getting an error like :

"haskell-ghc-mod debug: System. moduleName mismatch: undefined != System."

i have set haskell environmnet variables in PATH. I have set ghc-mod and ghc-modi as
C:\Users\AppData\Roaming\cabal\bin

Let me know is there any configuration i missed to setup.

Thanks,
Senthil.

Does not work with ghc-mod 5.3.0.0

I have ghc-mod 5.3.0.0 on OS X. I get errors on launch:

  • ghc-mod failed to launch it is probably missing or misconfigured
  • failed to spawn command ghc-mod. Make sure ghc-mod is installed and on your PATH

ghc-mod runs perfectly fine when started from Terminal.app, it is installed by cabal, and is on path.
I know that it is specifically stated that ghc-mod 5.2.x is supported, but I still hope that this can be fixed. I cannot downgrade because it seem to necessitate a downgrade of ghc itself.

Thank You!

ghc-mod spawn errors

Hello, good people.

Atom fails to spawn ghc-mod for me.

Error message:

/Users/rahulgomaphulore/Downloads/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:260 Uncaught BufferedProcessError: Failed to spawn command `ghc-mod`. Make sure `ghc-mod` is installed and on your PATH

I am on OS X, but starting Atom from console.

Here's my ~/.atom/config.cson:

"*":
  "exception-reporting":
    userId: "526c136c-f715-ee5d-1def-7846da50cf76"
  welcome:
    showOnStartup: false
  core: {}
  editor:
    invisibles: {}
  ghcModPath: "/Users/rahulgomaphulore/.cabal/bin/ghc-mod"
  ghcModiPath: "/Users/rahulgomaphulore/.cabal/bin/ghc-modi"
  additionalPathDirectories: "/Users/rahulgomaphulore/.cabal/bin/"

Here's a relevant chunk from my ~/.zshrc:

alias ghc-mod="~/.cabal/bin/ghc-mod"
alias ghc-modi="~/.cabal/bin/ghc-modi"
export ghcModPath="~/.cabal/bin/ghc-mod"
export ghcModiPath="~/.cabal/bin/ghc-modi"

As you can see, I am putting these settings pretty much everywhere, but nothing makes it work. :(

Path errors with OSX 10.10.3

On startup I'm getting the error:

Failed to spawn command /Users/dkoontz/Library/Haskell/bin/ghc-mod. Make sure /Users/dkoontz/Library/Haskell/bin/ghc-mod is installed and on your PATH

I have configured path in the settings for haskell-ghc-mod

"haskell-ghc-mod":
    additionalPathDirectories: [
      "/usr/bin/ghc"
    ]
    ghcModPath: "/Users/dkoontz/Library/Haskell/bin/ghc-mod"
    ghcModiPath: "/Users/dkoontz/Library/Haskell/bin/ghc-modi"

If I open my terminal and run /Users/dkoontz/Library/Haskell/bin/ghc-mod version I can confirm that I get ghc-mod version 5.2.1.2 compiled by GHC 7.8.3

When I hover over an identifier in a .hs file I get a second error

'/Users/dkoontz/Library/Haskell/bin/ghc-modi' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

I'm fairly stumped by what could be happening here. I've tried opening Atom from the command line, I've tried putting an explicit path in init.coffee as some other posts on this topic have suggested

process.env.PATH = ["/usr/bin",
                    "/usr/local/bin",
                    "/Users/dkoontz/Library/Haskell/bin",
                    process.env.PATH
                    ].join(":")

but that seems to have no effect.

Installation problem

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.9
System: Microsoft Windows 8.1 Single Language
Thrown From: haskell-ghc-mod package, v0.8.14

Stack Trace

Failed to load the haskell-ghc-mod package

At Cannot find module 'temp'

Error: Cannot find module 'temp'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\util.coffee:3:8)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\util.coffee:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\ghc-modi-process.coffee:2:8)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\ghc-modi-process.coffee:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\haskell-ghc-mod.coffee:1:18)
    at Object.<anonymous> (C:\Users\HP I3\.atom\packages\haskell-ghc-mod-0.8.14\lib\haskell-ghc-mod.coffee:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Package.module.exports.Package.requireMainModule (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package.js:759:34)
    at C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package.js:190:28
    at Package.module.exports.Package.measure (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package.js:167:15)
    at Package.module.exports.Package.load (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package.js:181:12)
    at PackageManager.module.exports.PackageManager.loadPackage (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package-manager.js:405:14)
    at PackageManager.module.exports.PackageManager.loadPackages (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\package-manager.js:369:14)
    at Atom.module.exports.Atom.startEditorWindow (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\atom.js:667:21)
    at Object.<anonymous> (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\window-bootstrap.js:12:8)
    at Object.<anonymous> (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\window-bootstrap.js:23:4)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .js] (C:\Users\HP I3\AppData\Local\atom\app-1.0.9\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at setupWindow (file:///C:/Users/HP%20I3/AppData/Local/atom/app-1.0.9/resources/app.asar/static/index.js:82:25)
    at window.onload (file:///C:/Users/HP%20I3/AppData/Local/atom/app-1.0.9/resources/app.asar/static/index.js:35:9)

Commands

Config

{
  "core": {
    "projectHome": "D:\\GitHub"
  }
}

Installed Packages

# User
ide-haskell, v0.7.1
language-haskell, v1.4.1

# Dev
No dev packages

Uncaught Error: write EPIPE

Yesterday it worked. Today I updated the ide-haskell and haskell-ghc-mod plugins.

Step to reproduce:
Simply reopening Atom with some haskell files open. Or simply opening a haskell file.

Together with the uncaught error message I also get the message: "'ghc-modi' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process."
I checked and ghc-modi is in my path.

Atom Version: 0.207.0
System: Microsoft Windows 8.1 Pro
Thrown From: haskell-ghc-mod package, v0.7.1

Stack Trace

Uncaught Error: write EPIPE

At events.js:141

Error: write EPIPE
    at exports._errnoException (util.js:734:11)
    at Socket._writeGeneric (net.js:668:26)
    at Socket._write (net.js:687:8)
    at doWrite (_stream_writable.js:295:12)
    at writeOrBuffer (_stream_writable.js:282:5)
    at Socket.Writable.write (_stream_writable.js:210:11)
    at Socket.write (net.js:612:40)
    at GhcModiProcessTemp.module.exports.GhcModiProcessTemp.runModiCmd (C:\Users\Student\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process-temp.coffee:148:28)
    at GhcModiProcessTemp.runModiCmd (C:\Users\Student\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process-temp.coffee:3:61)
    at GhcModiProcessTemp.module.exports.GhcModiProcessTemp.run (C:\Users\Student\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process-temp.coffee:60:23)

Commands

Config

{
  "core": {}
}

Installed Packages

# User
autocomplete-haskell, v0.4.3
haskell-ghc-mod, v0.7.1
ide-haskell, v0.5.9
language-haskell, v1.0.0
language-prolog, v0.9.0
run-in-terminal, v0.2.2

# Dev
No dev packages

rouge atom://config node leading to spawn ghc-mod ENOENT

rootPath may be a URL, for example, atom://config.

debug info: haskell-ghc-mod debug: PATH = atom://config/.cabal-sandbox/bin:/usr/bin:/home/cblp/b…n:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Uncaught TypeError: Cannot read property 'map' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.205.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.6.6

Stack Trace

Uncaught TypeError: Cannot read property 'map' of null

At /Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:133

TypeError: Cannot read property 'map' of null
    at ModuleInfo.select (/Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:213:19)
    at _this.getModuleInfo.done (/Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:319:45)

Commands

     -2:52.4.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  3x -2:52.1.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -2:50.4.0 core:move-down (atom-text-editor.editor.is-focused)
     -2:48.3.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -2:45.4.0 core:move-left (atom-text-editor.editor.is-focused)
     -2:45.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:43.3.0 core:save (atom-text-editor.editor.is-focused)
     -2:43.3.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)
     -2:43.3.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)
     -2:28.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:27.5.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:27.5.0 ide-haskell:check-file (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:27.5.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:02.7.0 core:cut (atom-text-editor.editor.is-focused)
     -0:02.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:01.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-mod",
    "ghcModiPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-modi",
    "disableFrontend": true
  }
}

Installed Packages

# User
autocomplete-haskell, v0.4.3
haskell-ghc-mod, v0.6.6
ide-haskell, v0.5.8
language-haskell, v1.0.0
language-scala, v1.1.2
linter-hlint, v0.3.6

# Dev
No dev packages

Heads up: ghc-mod(i) must be run in project root directory

Hey,

This might be a breaking change depending on how you handle this now. You need to call ghc-mod root to get the project root directory, and start any other commands in that directory. We unfortunately have to push this to the frontend side because we can't just fork() on windows to work around it.

Error crash

Haskell-ghc-mod: ghc-modi crashed on type with message 9 11 9 34 "WidgetT App IO (Route App -> [(Text, Text)] -> Text)"

No idea why

ghc-mod failed to launch (Windows)

When I start atom on windows, I get the following error messages:

hjo 20150917 09 57 20

When I start a regular cmd, ghc-mod is in the path:
hjo 20150917 09 59 56

I use haskell-ghc-mod version 0.9.4 with the following settings:
hjo 20150917 10 03 49

The error message is not clear to distinguish if ghc-mod cannot be found at all, or if it can be found, but it doesn't do what it is supposed to do (after all, I currently have version 5.4.0.0 installed, which might not be supported)

install failed

Installion failed in Windows 10(build 10240 x64)
Atom version:1.0.7

It show me the error:

Haskell-ghc-mod: ghc-mod flag failed with error code 1
'ghc-mod' is not recognized as an internal or external command,
operable program or batch file.

Type info of a selection throws an error

Hovering over a selection yields this error:

TypeError: Cannot read property 'row' of undefined
  at /home/creek/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:198:37
  at /home/creek/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:189:9
  at /usr/share/atom/resources/app.asar/node_modules/temp/lib/temp.js:252:7
  at FSReqWrap.oncomplete (fs.js:77:15)

Uncaught TypeError: Cannot read property 'length' of undefined

On default for yesod project Application.hs file I get Uncaught TypeError.

Atom Version: 0.180.0
System: Windows 7
Thrown From: haskell-ghc-mod package, v0.4.1

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:391

TypeError: Cannot read property 'length' of undefined
  at TextBuffer.module.exports.TextBuffer.lineLengthForRow (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:391:29)
  at TextBuffer.module.exports.TextBuffer.clipPosition (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:943:53)
  at TextBuffer.module.exports.TextBuffer.clipRange (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:925:20)
  at MarkerManager._results.push._this.(anonymous function) [as clipRange] (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\delegato\lib\delegator.js:67:61)
  at MarkerManager.module.exports.MarkerManager.markRange (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\marker-manager.js:84:20)
  at TextBuffer.module.exports.TextBuffer.markRange (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:645:27)
  at DisplayBuffer.module.exports.DisplayBuffer.markBufferRange (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\src\display-buffer.js:1272:41)
  at TextEditor.module.exports.TextEditor.markBufferRange (C:\Users\Bet\AppData\Local\atom\app-0.180.0\resources\app\src\text-editor.js:1309:59)
  at EditorController.module.exports.EditorController.showMessage (C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\editor-controller.coffee:51:30)
  at C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\editor-controller.coffee:1:1
  at C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\editor-controller.coffee:104:7
  at C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:114:9
  at Socket.<anonymous> (C:\Users\Bet\.atom\packages\haskell-ghc-mod\lib\ghc-modi-process.coffee:62:9)
  at Socket.g (events.js:202:16)
  at Socket.emit (events.js:138:20)
  at readableAddChunk (_stream_readable.js:164:16)
  at Socket.Readable.push (_stream_readable.js:127:10)
  at Pipe.onread (net.js:530:20)

Commands

  3x -2:44.6 core:backspace (atom-text-editor.editor.mini)
     -2:41.8 core:confirm (atom-text-editor.editor.mini)
  4x -2:28.2 core:move-down (atom-text-editor.editor.mini)
     -1:54.9 editor:select-to-first-character-of-line (atom-text-editor.editor.mini)
     -1:52.4 core:confirm (atom-text-editor.editor.mini)
     -1:05.0 haskell-ghc-mod:type (atom-text-editor.editor)
     -1:03.5 pane:reopen-closed-item (atom-text-editor.editor)
     -0:54.1 git-plus:add (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai-dark"
    ],
    "disabledPackages": [
      "build-systems"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "C:\\Users\\Bet\\AppData\\Roaming\\cabal\\bin\\ghc-mod.exe",
    "ghcModiPath": "C:\\Users\\Bet\\AppData\\Roaming\\cabal\\bin\\ghc-modi.exe"
  }
}

Installed Packages

# User
autocomplete-glsl, v0.1.3
autocomplete-haskell, v0.2.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.1.6
build, v0.23.4
color-picker, v1.4.4
editor-stats, v0.17.0
editorconfig, v0.3.0
git-clone, vundefined
git-plus, v4.4.2
git-projects, v1.7.1
haskell-ghc-mod, v0.4.1
ide-haskell, v0.3.3
language-glsl, v1.0.1
language-haskell, v1.0.0
linter-hlint, v0.3.1
monokai-dark, v1.0.0

# Dev
No dev packages

Uncaught Error: Error: spawn ghc-mod ENOENT

  1. I just opened a bash script with atom and it gave me this error, I hope it helps

Atom Version: 0.187.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: Error: spawn ghc-mod ENOENT

At /Users/RValencia/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70

Error: Error: spawn ghc-mod ENOENT
  at /Users/RValencia/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70:17
  at exithandler (child_process.js:756:5)
  at ChildProcess.errorhandler (child_process.js:763:5)
  at ChildProcess.emit (events.js:116:17)
  at Process.ChildProcess._handle.onexit (child_process.js:1070:12)
  at child_process.js:1142:20
  at process._tickCallback (node.js:366:11)

Commands

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
autocomplete-haskell, v0.2.1
autocomplete-plus, v2.4.1
haskell-ghc-mod, v0.4.3
haskell-grammar, v0.3.0
haskell-pointfree, v0.1.0
ide-haskell, v0.3.5
language-glsl, v1.0.1
language-haskell, v1.0.0
language-opencl, v0.1.0
language-r, v0.1.1

# Dev
No dev packages

Spurious `Could not find module`

Open this project. And modify P.hs on line 37 for example to introduce an error

                   , nulle

I get 9 errors from that

/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 12, 18
Could not find module ‘P.Foldable’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 17, 18
Could not find module ‘P.Function’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 16, 18
Could not find module ‘P.List’
Perhaps you meant List (needs flag -package haskell98-2.0.0.3)
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 15, 18
Could not find module ‘P.Ord’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 14, 18
Could not find module ‘P.Monoid’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 13, 18
Could not find module ‘P.Maybe’
Perhaps you meant Maybe (needs flag -package haskell98-2.0.0.3)
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 11, 18
Could not find module ‘P.Either’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 10, 18
Could not find module ‘P.Bool’
Use -v to see a list of the files searched for.
/Users/etorreborre/projects/ambiata/p/private/Users/etorreborre/projects/ambiata/p/src/P.hs: 9, 18
Could not find module ‘P.Applicative’
Use -v to see a list of the files searched for.

If I press CTRL+s again I get

/Users/etorreborre/projects/ambiata/p/src/P.hs: 37, 22
Module ‘Data.List’ does not export ‘nulle’

as expected. If I fix the bug and save again, I get 9 errors (the same as before) and saving one more time removes all errors.

Uncaught Error: spawn EACCES

[Enter steps to reproduce below:]

  1. open a *.hs file
  2. save it

Atom Version: 0.188.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: spawn EACCES

At child_process.js:1160

Error: spawn EACCES
    at exports._errnoException (util.js:753:11)
    at ChildProcess.spawn (child_process.js:1160:11)
    at exports.spawn (child_process.js:993:9)
    at Object.exports.execFile (child_process.js:687:15)
    at Object.module.(anonymous function) [as execFile] (ATOM_SHELL_ASAR.js:144:20)
    at GhcModiProcess.module.exports.GhcModiProcess.runModCmd (/Users/seth/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:124:17)
    at GhcModiProcess.runModCmd (/Users/seth/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:3:61)
    at /Users/seth/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:223:24
    at /Users/seth/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:160:16
    at /Applications/Atom.app/Contents/Resources/app/node_modules/temp/lib/temp.js:252:7

Commands

     -0:08.6 core:move-right (atom-text-editor.editor.is-focused)
     -0:07.3 core:move-left (atom-text-editor.editor.is-focused)
     -0:07.0 core:move-right (atom-text-editor.editor.is-focused)
  2x -0:06.7 core:move-left (atom-text-editor.editor.is-focused)
     -0:06.3 core:move-right (atom-text-editor.editor.is-focused)
     -0:06.1 core:move-left (atom-text-editor.editor.is-focused)
     -0:05.9 core:move-right (atom-text-editor.editor.is-focused)
  5x -0:04.5 core:move-down (atom-text-editor.editor.is-focused)
     -0:00.5 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "one-light-syntax"
    ],
    "audioBeep": false,
    "destroyEmptyPanes": false,
    "projectHome": "/Users/seth/Dev"
  },
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/seth/Library/Haskell/bin",
    "ghcModiPath": "/Users/seth/Library/Haskell/bin"
  }
}

Installed Packages

# User
haskell-ghc-mod, v0.4.3
ide-haskell, v0.3.6
language-haskell, v1.0.0

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'delete' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.201.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.6.1

Stack Trace

Uncaught TypeError: Cannot read property 'delete' of undefined

At /Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:49

TypeError: Cannot read property 'delete' of undefined
  at ChildProcess.<anonymous> (/Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:49:18)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at Process.ChildProcess._handle.onexit (child_process.js:1057:12)

Commands

     -2:52.1.0 core:backspace (ul.list-inline.tab-bar.inset-panel)
     -2:51.4.0 core:save (ul.list-inline.tab-bar.inset-panel)
     -2:51.4.0 ide-haskell:check-file (atom-text-editor.editor)
     -2:51.4.0 ide-haskell:lint-file (atom-text-editor.editor)
     -2:38.1.0 core:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-mod",
    "ghcModiPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-modi"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.4.1
haskell-ghc-mod, v0.6.1
ide-haskell, v0.5.5
language-haskell, v1.0.0
language-scala, v1.1.0
linter-hlint, v0.3.5

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'getUri' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: haskell-ghc-mod package, v0.8.4

Stack Trace

Uncaught TypeError: Cannot read property 'getUri' of null

At /Users/edward/.atom/packages/haskell-ghc-mod/lib/util.coffee:14

TypeError: Cannot read property 'getUri' of null
  at /Users/edward/.atom/packages/haskell-ghc-mod/lib/util.coffee:14:26
  at Array.filter (native)
  at Object.module.exports.Util.getRootDir (/Users/edward/.atom/packages/haskell-ghc-mod/lib/util.coffee:13:43)
  at CompletionBackend.module.exports.CompletionBackend.getModuleMap (/Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:61:21)
  at CompletionBackend.getModuleMap (/Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:1:1)
  at CompletionBackend.module.exports.CompletionBackend.getSymbolsForBuffer (/Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:35:29)
  at CompletionBackend.getSymbolsForBuffer (/Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:1:1)
  at CompletionBackend.module.exports.CompletionBackend.getCompletionsForSymbol (/Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:177:6)
  at /Users/edward/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:1:1
  at SuggestionBuilder.module.exports.SuggestionBuilder.processSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:51:5)
  at SuggestionBuilder.processSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.symbolSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:55:6)
  at SuggestionBuilder.symbolSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.getSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:94:10)
  at SuggestionBuilder.getSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/suggestion-builder.coffee:1:1)
  at Object.getSuggestions (/Users/edward/.atom/packages/autocomplete-haskell/lib/autocomplete-haskell.coffee:43:49)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:255:56
  at Array.forEach (native)
  at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:234:17)
  at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
  at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:221:19)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

     -2:29.9.0 core:copy (atom-text-editor.editor.is-focused)
  2x -2:28.1.0 pane:show-previous-item (atom-text-editor.editor.is-focused)
     -2:23.1.0 core:paste (atom-text-editor.editor.is-focused)
     -2:22.1.0 core:move-up (atom-text-editor.editor.is-focused)
  2x -2:21.1.0 editor:indent-selected-rows (atom-text-editor.editor.is-focused)
 12x -2:20.6.0 editor:outdent-selected-rows (atom-text-editor.editor.is-focused)
     -2:18.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -2:18.1.0 core:move-down (atom-text-editor.editor.is-focused)
     -2:17.8.0 core:delete (atom-text-editor.editor.is-focused)
     -2:17.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:17.5.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)
     -2:17.5.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)
     -0:19.1.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:14.9.0 core:copy (atom-text-editor.editor.is-focused)
     -0:13.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:13.3.0 core:paste (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "one-light-syntax"
    ]
  },
  "haskell-ghc-mod": {}
}

Installed Packages

# User
autocomplete-haskell, v0.4.5
haskell-ghc-mod, v0.8.4
ide-haskell, v0.6.2
language-haskell, v1.2.0

# Dev
No dev packages

Check after save failed: hGetContents: invalid argument (invalid byte sequence)

[Enter steps to reproduce below:]

  1. cabal configure
  2. cabal build
  3. save a file in the project

Atom Version: 0.187.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.4.3

Stack Trace

Uncaught Error: Error: Command failed: /Users/ageorges/Library/Haskell/bin/ghc-mod check /var/folders/td/j6b6fl5s2jgbmdb1vvsqzj3m0000gn/T/haskell-ghc-mod115217-31189-1lyb7xt.hs
ghc-mod: /Users/ageorges/tmp/hs-admin/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

At /Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70

Error: Error: Command failed: /Users/ageorges/Library/Haskell/bin/ghc-mod check /var/folders/td/j6b6fl5s2jgbmdb1vvsqzj3m0000gn/T/haskell-ghc-mod115217-31189-1lyb7xt.hs
ghc-mod: /Users/ageorges/tmp/hs-admin/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)

  at /Users/ageorges/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:70:17
  at ChildProcess.exithandler (child_process.js:756:5)
  at ChildProcess.emit (events.js:119:17)
  at maybeClose (child_process.js:1013:16)
  at Socket.<anonymous> (child_process.js:1181:11)
  at Socket.emit (events.js:116:17)
  at Pipe.close (net.js:477:12)

Commands

  5x -0:10.1 vim-mode:move-up (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:09.3 core:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:08.5 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  4x -0:08.2 core:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:05.8 vim-mode:undo (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:05.3 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:05.0 core:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.4 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:04.2 core:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:03.6 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:03.3 core:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:02.8 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:02.4 vim-mode:move-to-next-word (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:01.2 core:save (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:01.2 ide-haskell:check-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)
     -0:01.2 ide-haskell:lint-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)

Config

{
  "core": {},
  "haskell-ghc-mod": {
    "ghcModiPath": "/Users/ageorges/Library/Haskell/bin/ghc-modi",
    "ghcModPath": "/Users/ageorges/Library/Haskell/bin/ghc-mod"
  }
}

Installed Packages

# User
autocomplete-plus, v2.4.2
haskell-ghc-mod, v0.4.3
ide-haskell, v0.3.6
language-haskell, v1.0.0
vim-mode, v0.39.0

# Dev
No dev packages

Additional source paths

Is there a way with this add-in to supply additional source paths, like you do with "ghci -i" command-line?

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

  1. Got this when trying to write anything

Atom Version: 1.0.5
System: Microsoft Windows 10 Pro
Thrown From: haskell-ghc-mod package, v0.8.8

Stack Trace

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

At C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\pathwatcher\lib\directory.js:49

TypeError: Cannot read property 'toLowerCase' of undefined
  at new Directory (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\pathwatcher\lib\directory.js:49:39)
  at Object.module.exports.Util.getRootDir (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\util.coffee:19:41)
  at CompletionBackend.module.exports.CompletionBackend.getModuleMap (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:63:21)
  at CompletionBackend.getModuleMap (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:1:1)
  at CompletionBackend.module.exports.CompletionBackend.getSymbolsForBuffer (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:35:29)
  at CompletionBackend.getSymbolsForBuffer (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:1:1)
  at CompletionBackend.module.exports.CompletionBackend.getCompletionsForSymbol (C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:179:6)
  at C:\Users\by_va\.atom\packages\haskell-ghc-mod\lib\completion-backend.coffee:1:1
  at SuggestionBuilder.module.exports.SuggestionBuilder.processSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:51:5)
  at SuggestionBuilder.processSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.symbolSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:55:6)
  at SuggestionBuilder.symbolSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:1:1)
  at SuggestionBuilder.module.exports.SuggestionBuilder.getSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:94:10)
  at SuggestionBuilder.getSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\suggestion-builder.coffee:1:1)
  at Object.getSuggestions (C:\Users\by_va\.atom\packages\autocomplete-haskell\lib\autocomplete-haskell.coffee:43:49)
  at C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:267:56
  at Array.forEach (native)
  at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:246:17)
  at AutocompleteManager.getSuggestionsFromProviders (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:3:61)
  at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:233:19)
  at AutocompleteManager.findSuggestions (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:3:61)
  at atom-text-editor.subscriptions.add.atom.commands.add.autocomplete-plus:activate (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\autocomplete-plus\lib\autocomplete-manager.js:209:26)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\src\command-registry.js:241:29)
  at C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\src\command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\by_va\AppData\Local\atom\app-1.0.5\resources\app.asar\src\window-event-handler.js:177:20)

Commands

     -1:48.7.0 grammar-selector:show (atom-text-editor.editor)
  4x -1:45.4.0 autocomplete-plus:activate (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai-plus"
    ]
  },
  "haskell-ghc-mod": {}
}

Installed Packages

# User
autocomplete-haskell, v0.4.5
haskell-ghc-mod, v0.8.8
ide-haskell, v0.7.1
language-haskell, v1.3.1
language-lua, v0.9.4
monokai-plus, v0.1.2

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'dispose' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.205.0
System: Mac OS X 10.10.2
Thrown From: haskell-ghc-mod package, v0.6.6

Stack Trace

Uncaught TypeError: Cannot read property 'dispose' of null

At /Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:87

TypeError: Cannot read property 'dispose' of null
    at ModuleInfo.destroy (/Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:140:23)
    at /Users/etorreborre/.atom/packages/haskell-ghc-mod/lib/completion-backend.coffee:3:61

Commands

  2x -2:03.8.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:59.6.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:59.2.0 core:paste (atom-text-editor.editor.is-focused)
     -1:57.9.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -1:57.3.0 core:move-right (atom-text-editor.editor.is-focused)
 11x -1:56.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:54.8.0 core:save (atom-text-editor.editor.is-focused)
     -1:29.9.0 core:undo (atom-text-editor.editor.is-focused)
     -1:28.1.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
  6x -1:27.6.0 core:select-down (atom-text-editor.editor.is-focused)
     -1:26.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:25.4.0 core:paste (atom-text-editor.editor.is-focused)
     -1:24.3.0 core:move-up (atom-text-editor.editor.is-focused)
     -1:24.1.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  6x -1:23.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:21.5.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  },
  "haskell-ghc-mod": {
    "ghcModPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-mod",
    "ghcModiPath": "/Users/etorreborre/projects/haskell/ghc-mod/.cabal-sandbox/bin/ghc-modi",
    "disableFrontend": true
  }
}

Installed Packages

# User
autocomplete-haskell, v0.4.3
haskell-ghc-mod, v0.6.6
ide-haskell, v0.5.8
language-haskell, v1.0.0
language-scala, v1.1.2
linter-hlint, v0.3.6

# Dev
No dev packages

Uncaught Error: spawn ENOTDIR

  1. Opened ninetynineproblems.hs that is in a cabal project.
  2. Pressed Ctrl + s to save the file.
  3. Get the following error every time I save the file:
    Haskell-ghc-mod: ghc-mod failed with error code 1
  4. Then got an error:
    Uncaught Error: spawn ENOTDIR

Atom Version: 0.209.0
System: Ubuntu 14.04.2
Thrown From: haskell-ghc-mod package, v0.7.5

Stack Trace

Uncaught Error: spawn ENOTDIR

At child_process.js:1145

Error: spawn ENOTDIR
    at exports._errnoException (util.js:734:11)
    at ChildProcess.spawn (child_process.js:1145:11)
    at Object.exports.spawn (child_process.js:977:9)
    at GhcModiProcessTemp.module.exports.GhcModiProcessBase.spawnProcess (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:43:17)
    at GhcModiProcessTemp.spawnProcess (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-base.coffee:3:61)
    at GhcModiProcessTemp.module.exports.GhcModiProcessTemp.runModiCmd (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-temp.coffee:114:22)
    at GhcModiProcessTemp.runModiCmd (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-temp.coffee:3:61)
    at GhcModiProcessTemp.module.exports.GhcModiProcessTemp.run (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-temp.coffee:60:23)
    at GhcModiProcessTemp.run (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process-temp.coffee:3:61)
    at GhcModiProcess.module.exports.GhcModiProcess.runQueuedCommands (/home/steven/.atom/packages/haskell-ghc-mod/lib/ghc-modi-process.coffee:164:27)

Commands

     -0:41 core:save (atom-text-editor.editor.is-focused)
     -0:41 ide-haskell:check-file (atom-text-editor.editor.is-focused)
     -0:41 ide-haskell:lint-file (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
autocomplete-haskell, v0.4.4
haskell-ghc-mod, v0.7.5
ide-haskell, v0.5.12
language-haskell, v1.1.1

# Dev
No dev packages

haskell-ghc-mod doesn't support local GHC using Stack

I'm creating a project using Stack that uses a different GHC version from $(which ghc). This causes

Haskell-ghc-mod: ~/.cabal/bin/ghc-mod check ~/project/File.hs failed with error code 1
cabal: At least the following dependencies are missing:
base >=4.7 && <5
ghc-mod: readProcess: cabal "configure" "--with-ghc=ghc" (exit 1): failed

because my local GHC doesn't support base >=4.7 && <5 but the one I'm stack building with does. Is there a way to configure haskell-ghc-mod to recognise and use GHCs on stack path when possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.