Closed hnn closed 8 years ago
That's weird. Try v1.6.1, it will hopefully at least produce a more meaningful error message.
Note that v1.6.0 tries hard to play nicer with stack. So if you're using stack, you might need to reconfigure haskell-ghc-mod to remove some hacks you were using. disregard that, judging from config, you don't seem to be using stack.
v1.6.1 results in the same error (even the error message is the same).
Stack is configured for this project, but it is not used locally (it is only used on the build server). I have not configured haskell-ghc-mod in any way to work with stack, so I am not aware of any hacks I could remove. Switching the "Stack Sandbox" flag on or off also does not seem to make a difference.
Either I'm misreading stack trace, or something has gone horribly wrong. If v1.6.3 does the same thing (which shouldn't be technically possible), try uninstalling haskell-ghc-mod, restarting Atom, and then reinstalling it again.
Well, there still is an error, but at least now the message is more meaningful:
Atom Version: 1.3.3 System: Mac OS X 10.11.2 Thrown From: haskell-ghc-mod package, v1.6.3
Uncaught TypeError: Cannot read property 'getInfoInBuffer' of null
At /Users/hn/.atom/packages/haskell-ghc-mod/lib/haskell-ghc-mod.coffee:122
TypeError: Cannot read property 'getInfoInBuffer' of null
at /Users/hn/.atom/packages/haskell-ghc-mod/lib/haskell-ghc-mod.coffee:122:15
at /Users/hn/.atom/packages/haskell-ghc-mod/lib/haskell-ghc-mod.coffee:214:11
at _this.showTooltip.tooltip (/Users/hn/.atom/packages/ide-haskell/lib/upi.coffee:115:30)
at /Users/hn/.atom/packages/ide-haskell/lib/upi.coffee:131:7
at UPIInstance.withEventRange (/Users/hn/.atom/packages/ide-haskell/lib/upi.coffee:208:5)
at UPIInstance.showTooltip (/Users/hn/.atom/packages/ide-haskell/lib/upi.coffee:130:6)
at /Users/hn/.atom/packages/ide-haskell/lib/upi.coffee:111:8
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at /Users/hn/.atom/packages/ide-haskell/lib/plugin-manager.coffee:73:18
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at EditorControl.shouldShowTooltip (/Users/hn/.atom/packages/ide-haskell/lib/editor-control.coffee:129:16)
at /Users/hn/.atom/packages/ide-haskell/lib/editor-control.coffee:53:42
-0:32.7.0 core:copy (atom-text-editor.editor.mini.is-focused)
-0:32.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:28.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
{
"core": {
"disabledPackages": [
"git-history",
"whitespace",
"build",
"haskell-pointfree",
"ide-haskell-repl",
"ide-haskell-hasktags"
]
},
"haskell-ghc-mod": {
"additionalPathDirectories": [
"/Applications/ghc-7.10.2.app/Contents/bin",
"/Users/hn/.cabal/bin"
],
"enableGhcModi": false,
"onMouseHoverShow": "Info",
"onSaveLint": false,
"debug": true
}
}
# User
autocomplete-haskell, v0.6.2
file-icons, v1.6.13
ide-haskell, v1.3.9
ide-haskell-cabal, v1.0.0
language-haskell, v1.5.2
linter, v1.11.3
minimap, v4.19.0
# Dev
No dev packages
Nope. Even more meaningless. This last error should basically be impossible, if package is installed correctly.
Seriously, try reinstalling. Sometimes updates fail for no apparent reason and mess up everything horribly.
The reinstall worked (I uninstalled all packages from atom-haskell, closed Atom, reopened Atom and installed all again).
Thanks for your help!
Glad to hear that.
[Enter steps to reproduce below:]
This occurs on showing the tooltip for my .hs files.
Atom Version: 1.3.3 System: Mac OS X 10.11.2 Thrown From: haskell-ghc-mod package, v1.6.0
Stack Trace
Uncaught Error: ENOENT: no such file or directory, stat ''
Commands
Config
Installed Packages