steelbrain / intentions

Base package for showing intentions in Atom
MIT License
53 stars 11 forks source link

intentions:show triggers error #68

Closed pablooliveira closed 7 years ago

pablooliveira commented 7 years ago

Hi,

I have this error both with atom 1.18.0 and 1.19.0-beta5 on linux. I'm using linter-spell on a simple test .txt file.

When using alt+enter to run intentions:show, nothing happens and I get the following stack trace on the developers tools console:

main.js [sm]:34 Uncaught (in promise) TypeError: Cannot read property 'get' of undefined(…)

(anonymous function) @ main.js [sm]:34
step main.js:9(anonymous function) @ main.js:9
(anonymous function) @ main.js:9
(anonymous function) @ commands.js 
[sm]:219emit @ emitter.js:84
(anonymous function) @ commands.js [sm]:209
step @ commands.js:9
(anonymous function) @ commands.js:9
(anonymous function) @ commands.js:9
(anonymous function) @ commands.js [sm]:127
step @ commands.js:9
(anonymous function) @ commands.js:9
(anonymous function) @ commands.js:9
intentionsShow @ commands.js [sm]:40
module.exports.CommandRegistry.handleCommandEvent @ <embedded>:18901
(anonymous function) @ <embedded>:18639
module.exports.KeymapManager.dispatchCommandEvent @ <embedded>:66514
module.exports.KeymapManager.handleKeyboardEvent @ <embedded>:66305
module.exports.WindowEventHandler.handleDocumentKeyEvent @ <embedded>:15166
(anonymous function) @ <embedded>:15069

I attach a screenshot demonstrating the issue.

screenshot from 2017-07-26 19-57-19

What is going on ?

Thanks !

steelbrain commented 7 years ago

Hi @pablooliveira

Can you restart Atom and see if the problem persists?

pablooliveira commented 7 years ago

Unfortunately, the problem persists after a restart.

pablooliveira commented 7 years ago

I confirm ca3b1dc fixes my bug ! Thanks a bunch :tada:

steelbrain commented 7 years ago

Thanks for promptly reporting the bug! 🎉