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 'editors' of undefined #480
Copy link
Copy link
Closed
Labels
Description
[Enter steps to reproduce below:]
- ...
- ...
Atom Version: 0.201.0
System: Mac OS X 10.10.3
Thrown From: autocomplete-plus package, v2.17.1
Stack Trace
Uncaught TypeError: Cannot read property 'editors' of undefined
At /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:683
TypeError: Cannot read property 'editors' of undefined
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/symbol-provider.js:116:54
at Emitter.module.exports.Emitter.emit (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.applyChange (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:503:20)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:470:12)
at Selection.module.exports.Selection.insertText (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:452:43)
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:729:31
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:771:29
at TextBuffer.module.exports.TextBuffer.transact (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:678:18)
at TextEditor.module.exports.TextEditor.transact (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1132:26)
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:765:24
at TextEditor.module.exports.TextEditor.mergeSelections (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1950:43)
at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1924:35)
at TextEditor.module.exports.TextEditor.mutateSelectedText (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:763:19)
at TextEditor.module.exports.TextEditor.insertText (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:726:21)
at TextEditor.object.(anonymous function) [as insertText] (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
at TextEditor.module.exports.TextEditor.insertNewline (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:747:19)
at TextEditor.object.(anonymous function) [as insertNewline] (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.editor:newline (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-element.js:593:19)
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-element.js:305:34
at TextBuffer.module.exports.TextBuffer.transact (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:678:18)
at TextEditor.module.exports.TextEditor.transact (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1132:26)
at atom-text-editor.newCommandListeners.(anonymous function) (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-element.js:304:22)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
at /Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/ahemt_s/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)
Commands
4x -1:45.9.0 core:close (ul.list-inline.tab-bar.inset-panel)
2x -0:49.9.0 core:move-left (atom-text-editor.editor.is-focused)
-0:49.1.0 core:move-right (atom-text-editor.editor.is-focused)
-0:48.7.0 core:backspace (atom-text-editor.editor.is-focused)
-0:48.4.0 core:move-right (atom-text-editor.editor.is-focused)
4x -0:42 core:backspace (atom-text-editor.editor.is-focused)
4x -0:37.9.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
2x -0:36.6.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
-0:08.1.0 pane:show-next-item (atom-text-editor.editor.is-focused)
-0:04.6.0 pane:show-previous-item (atom-text-editor.editor.is-focused)
-0:04.1.0 pane:show-next-item (atom-text-editor.editor.is-focused)
-0:03.7.0 core:move-up (atom-text-editor.editor.is-focused)
-0:03.5.0 core:move-down (atom-text-editor.editor.is-focused)
-0:03.2.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:03.2.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
-0:03.2.0 editor:newline (atom-text-editor.editor.is-focused)
Config
{
"core": {
"disabledPackages": [
"update-package-dependencies",
"sublime-tabs",
"language-mustache"
],
"audioBeep": false
},
"autocomplete-plus": {
"confirmCompletion": "tab and enter",
"includeCompletionsFromAllBuffers": true
}
}Installed Packages
# User
aligner, v0.13.0
aligner-scss, v1.0.1
animated-cursor, v1.0.4
atom-beautify, v0.27.6
autocomplete-modules, v0.3.4
autocomplete-paths, v1.0.2
color-picker, v1.7.0
docblockr, v0.7.2
editorconfig, v1.0.0
emmet, v2.3.10
html-entities, v0.4.0
layout-manager, v0.2.3
project-manager, v1.15.7
project-palette-finder, v2.4.17
script, v2.23.0
tab-control, v0.1.1
tabs-to-spaces, v0.10.0
# Dev
No dev packages
Activity
benogle commentedon May 27, 2015
Can you provide more information?
It looks like an issue with path tracking, and I may have missed a case. I can paper over this error, but would like to understand the steps to cause it.
AnotherJoSmith commentedon Jun 1, 2015
Just had this issue after I renamed the file. Could be related.. It will not let me type anything in the editor afterwards.
benogle commentedon Jun 1, 2015
@AnotherJoSmith Did you have splits or anything? Was the file named before or was it untitled?
AnotherJoSmith commentedon Jun 1, 2015
The file was named before and I had splits. I am currently trying to reproduce this more reliably.
techmag commentedon Jun 3, 2015
Just had this appear with a sexy red box that pointed me here right after I renamed a file as well
Unlikely to be repeatable but if I spot the pattern I'll be back.
UnconventionalMindset commentedon Jun 22, 2015
Happened to me too after renaming a file from index.html.haml to index.html.erb and with the tab of the file already opened after renaming, I clicked on the file name to open it (even if it was alredy open).
At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:745
TypeError: Cannot read property 'editors' of undefined
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/symbol-provider.js:115:54
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at TextBuffer.module.exports.TextBuffer.applyChange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:594:20)
at TextBuffer.module.exports.TextBuffer.setTextInRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:534:12)
at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:452:43)
at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:746:31
at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:791:29
at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:740:18)
at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1152:26)
at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:785:24
at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1990:43)
at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1964:35)
at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:783:19)
at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:743:21)
at TextEditor.object.(anonymous function) [as insertText] (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-component.js:440:35)
at HTMLDivElement. (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-component.js:3:61)
Installed Packages
atcwells commentedon Jul 2, 2015
Received the same error when doing a find and replace on a large file. Same behaviour, once triggered caused the error to repeat whatever command I used.
adamreisnz commentedon Jul 3, 2015
Same happened here after renaming a file. Couldn't type anything in it anymore.
Use maps instead of objects in symbol store
splashx commentedon Jul 21, 2015
got the error after selecting a block and CMD+X to cut it.
benogle commentedon Jul 21, 2015
The fix for this will be out in atom 1.0.3 next week.