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 'emit' of null #211

Closed dniku closed 6 years ago

dniku commented 7 years ago

The issue randomly occurred right after I saved a file I was editing (specifically, this one). I don't know of any sequence of steps that would reproduce it.

Atom: 1.16.0 x64 Electron: 1.4.15 OS: "Manjaro Linux" Thrown From: haskell-ghc-mod package 1.19.9

Stack Trace

Uncaught TypeError: Cannot read property 'emit' of null

At /home/ser/.atom/packages/haskell-ghc-mod/lib/completion-backend/module-info.coffee:30

TypeError: Cannot read property 'emit' of null
    at ModuleInfo.module.exports.ModuleInfo.destroy (/packages/haskell-ghc-mod/lib/completion-backend/module-info.coffee:30:15)
    at /packages/haskell-ghc-mod/lib/completion-backend/module-info.coffee:1:1

Commands

     -2:00.9.0 core:undo (input.hidden-input)
     -2:00.5.0 editor:newline (input.hidden-input)
     -2:00.3.0 core:paste (input.hidden-input)
     -1:59.3.0 core:save (input.hidden-input)
     -1:59.3.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)
     -1:29.1.0 core:save (input.hidden-input)
     -1:29.1.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)
     -1:27.6.0 core:save (input.hidden-input)
     -1:27.6.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)
     -0:46 core:save (input.hidden-input)
     -0:46 ide-haskell:prettify-file (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:30 core:copy (input.hidden-input)
     -0:28.1.0 editor:newline (input.hidden-input)
     -0:26.4.0 core:paste (input.hidden-input)
     -0:25.3.0 core:save (input.hidden-input)
     -0:25.3.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)

Non-Core Packages

autocomplete-haskell 0.7.2 
custom-title 1.0.1 
haskell-ghc-mod 1.19.9 
ide-haskell 1.9.6 
ide-haskell-hasktags 0.0.10 
language-haskell 1.12.1 
minimap 4.28.0 
lierdakil commented 7 years ago

Eh. This shouldn't be possible. Quite literally. I have no idea on how you managed to do that.