andyfriesen/Helium

Helium can not find ghc-mod in the path

ahrzb opened this issue · 1 comments

ahrzb commented

[Enter steps to reproduce below:]

  1. Open atom and make a simple hello world and drop main's signature
  2. Run Helium Insert Type on main function

ghc-mod is installed:

$ ghc-mod --version
> ghc-mod version 5.2.1.2 compiled by GHC 7.8.4
$ type ghc-mod
> ghc-mod is hashed (/home/USER/.cabal/bin/ghc-mod)

Thanks for support 👍

Atom Version: 1.0.0
System: Linux Mint
Thrown From: helium package, v0.6.1

Stack Trace

Uncaught Could not find ghc-mod!

At /home/bandbaz/.atom/packages/helium/lib/ghc-mod-task.coffee:32

undefined

Commands

     -0:16.3.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.mini.is-focused)
     -0:15.4.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:15.4.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:14.8.0 bracket-matcher:select-inside-brackets (atom-text-editor.editor.is-focused)
     -0:13.7.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:12.9.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:12.9.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:12.8.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:12.3.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -0:12 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:07.7.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -0:06.1.0 core:undo (atom-text-editor.editor.is-focused)
     -0:05.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:02.1.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:02.1.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:00.6.0 helium:insert-type (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true
  }
}

Installed Packages

# User
atom-html-preview, v0.1.10
autocomplete-haskell, v0.4.5
color-picker, v2.0.9
haskell-ghc-mod, v0.8.3
haskell-pointfree, v0.1.2
helium, v0.6.1
ide-haskell, v0.6.2
language-haskell, v1.1.8
linter-hlint, v0.3.6
linter-htmlhint, v0.0.17
minimap, v4.12.0

# Dev
No dev packages

Hi!

Where is your ghc-mod executable located? Helium presently checks the directories named in your system PATH: https://github.com/andyfriesen/Helium/blob/master/lib/ghc-mod-task.coffee#L13