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 TypeError: Cannot read property 'map' of null #20

Closed etorreborre closed 9 years ago

etorreborre commented 9 years ago

[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
lierdakil commented 9 years ago

I'm publishing 0.7.0, which should hopefully help with this. Feel free to reopen if this persists in some form.

etorreborre commented 9 years ago

Thanks!