You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined #190
Error comes up in the top-left corner
(Tab completion refused to work in the previous version of Atom but now seems to be fixed again, so the issue doesn't seem to be blocking)
Atom Version: 0.166.0 System: Mac OS X 10.9.5 Thrown From: autocomplete-plus package, v1.1.0
Stack Trace
Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined
At /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325
TypeError: Cannot read property 'getScreenPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325:34)
at AutocompleteManager.module.exports.AutocompleteManager.runAutocompletion (/Users/svanbastenbatenburg/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:168:39)
at /Users/svanbastenbatenburg/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1
I just opened my editor, an untitled page was open with a few random characters in it, and this error came up:
Uncaught TypeError: Cannot read property 'getScreenPosition' of undefined
/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325
Hide Stack Trace
TypeError: Cannot read property 'getScreenPosition' of undefined
at TextEditor.module.exports.TextEditor.getCursorScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1325:34)
at AutocompleteManager.module.exports.AutocompleteManager.runAutocompletion (/Users/michaeljcalkins/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:168:39)
at /Users/michaeljcalkins/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1
The error was thrown from the autocomplete-plus package This issue has already been reported.
Activity
joefitzgerald commentedon Jan 6, 2015
This is because there is no guard in
runAutocompletionagainst an undefined editor: https://github.com/atom-community/autocomplete-plus/blob/8b0af627627a04d22ea6388dc320ab41b42ba5ce/lib/autocomplete-manager.coffee#L165This is already fixed in a branch I'm working on, so will be fixed when #186 is merged: https://github.com/atom-community/autocomplete-plus/blob/0b8249427ad8daa5f20ca1a03446f3e171b42016/lib/autocomplete-manager.coffee#L92-L95
iCodeForBananas commentedon Jan 15, 2015
I just opened my editor, an untitled page was open with a few random characters in it, and this error came up: