atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Uncaught fromParseResult: Parse failed at [<unknown>.hs] (1:7): Parse error: EOF #125

Closed ghost closed 8 years ago

ghost commented 8 years ago

[Enter steps to reproduce below:]

  1. Create new empty Haskell source file
  2. Write "module" and as soon as I write the white space character after module it throws this error

Atom Version: 1.5.4 System: Linux Mint Thrown From: haskell-ghc-mod package, v1.11.1

Stack Trace

Uncaught fromParseResult: Parse failed at .hs: Parse error: EOF

At /home/user1/.atom/packages/haskell-ghc-mod/node_modules/atom-haskell-utils/hs/hs.min.js:283

undefined

Commands

     -1:31.5.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -1:30.8.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:23.5.0 ide-haskell:close-tooltip (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:23.5.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:23 editor:newline (atom-text-editor.editor.is-focused)
     -1:18.5.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:17.8.0 core:save (atom-text-editor.editor.is-focused)
     -1:11.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -1:10.7.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
     -1:06.1.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -1:05.2.0 core:save (atom-text-editor.editor.is-focused)
     -0:32.8.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:31.2.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:29.6.0 core:delete (atom-text-editor.editor.is-focused)
     -0:29.4.0 core:save (atom-text-editor.editor.is-focused)
     -0:02.8.0 core:delete (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "racer",
      "build"
    ]
  },
  "haskell-ghc-mod": {
    "additionalPathDirectories": [
      "/opt/ghc/7.10.3/bin/ghc"
    ],
    "ghcModPath": "/home/user1/.cabal/bin/ghc-mod"
  }
}

Installed Packages

# User
autocomplete-haskell, v0.6.2
haskell-ghc-mod, v1.11.1
ide-haskell, v1.5.4
ide-haskell-cabal, v1.1.0
language-haskell, v1.7.3
language-idris, v0.4.3
language-rust, v0.4.6

# Dev
No dev packages
lierdakil commented 8 years ago

Thanks for reporting. Fixed in 1.11.2.