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 'classList' of undefined #262
Copy link
Copy link
Closed
Labels
Description
- Its these lines in code:
Atom Version: 0.179.0
System: Microsoft Windows 8.1 Pro
Thrown From: autocomplete-plus package, v2.1.5
Stack Trace
Uncaught TypeError: Cannot read property 'classList' of undefined
At /C:/Users/basaratsyed/.atom/packages/autocomplete-plus/lib/suggestion-list-element.coffee:89
TypeError: Cannot read property 'classList' of undefined
at autocomplete-suggestion-list.SuggestionListElement.removeActiveClassFromEditor (C:\Users\basaratsyed\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:57:18)
at autocomplete-suggestion-list.SuggestionListElement.detachedCallback (C:\Users\basaratsyed\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:21:6)
at atom-pane.PaneElement.itemRemoved (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\src\pane-element.js:157:29)
at Emitter.module.exports.Emitter.emit (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
at Pane.module.exports.Pane.removeItem (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\src\pane.js:398:20)
at Pane.module.exports.Pane.destroyItem (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\src\pane.js:457:16)
at tabs-tab.<anonymous> (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\node_modules\tabs\lib\tab-bar-view.js:159:24)
at space-pen-ul.jQuery.event.dispatch (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\node_modules\jquery\dist\jquery.js:4430:9)
at space-pen-ul.elemData.handle (C:\Users\basaratsyed\AppData\Local\atom\app-0.179.0\resources\app\node_modules\jquery\dist\jquery.js:4116:28)
Commands
-4:36.1 autocomplete-plus:activate (atom-text-editor.editor.autocomplete-active.is-focused)
-4:19.8 autocomplete-plus:cancel (atom-text-editor.editor.autocomplete-active.is-focused)
-4:16.3 typescript:autocomplete (atom-text-editor.editor.autocomplete-active.is-focused)
-4:16.3 autocomplete-plus:activate (atom-text-editor.editor.autocomplete-active.is-focused)
3x -4:08.7 core:backspace (atom-text-editor.editor.autocomplete-active.is-focused)
-4:02.3 settings-view:open (atom-text-editor.editor.autocomplete-active.is-focused)
-3:54.4 core:move-up (atom-text-editor.editor.autocomplete-active.is-focused)
-3:54.1 editor:move-to-end-of-screen-line (atom-text-editor.editor.autocomplete-active.is-focused)
-3:53.3 typescript:autocomplete (atom-text-editor.editor.autocomplete-active.is-focused)
-3:53.3 autocomplete-plus:activate (atom-text-editor.editor.autocomplete-active.is-focused)
-3:48.4 autocomplete-plus:select-next (atom-text-editor.editor.autocomplete-active.is-focused)
-3:47.9 autocomplete-plus:select-previous (atom-text-editor.editor.autocomplete-active.is-focused)
-3:41.8 core:move-down (atom-text-editor.editor.autocomplete-active.is-focused)
-3:41.4 editor:select-to-first-character-of-line (atom-text-editor.editor.autocomplete-active.is-focused)
-3:41.2 core:delete (atom-text-editor.editor.autocomplete-active.is-focused)
-3:38.7 core:save (atom-text-editor.editor.autocomplete-active.is-focused)
Config
{
"core": {
"themes": [
"atom-dark-ui",
"monokai"
]
},
"autocomplete-plus": {}
}Installed Packages
# User
atom-typescript, v0.51.0
autocomplete-plus, v2.1.5
color-picker, v1.4.4
linter, v0.11.1
monokai, v0.12.0
project-manager, v1.15.5
# Dev
No dev packages


Activity
basarat commentedon Feb 12, 2015
⚡
UnconventionalMindset commentedon May 26, 2015
This issue occurred again to me, please reopen
It almost happened randomly:
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 'classList' of undefined
Commands
Config
{ "core": {}, "autocomplete-plus": { "confirmCompletion": "tab and enter", "suggestionListFollows": "Cursor" } }Installed Packages
benogle commentedon May 27, 2015
@JacopoGobbi your issue will be fixed in the next version of atom (0.202)
UnconventionalMindset commentedon May 28, 2015
@benogle Thanks for the info!! 👍
parasyte commentedon Jun 3, 2015
I was directed to this ticket in an error message after hitting escape while autocomplete was opening. (I had Markdown-viewer open and the UI was generally sluggish enough to cancel the auto-completer early.)
Atom Version: 0.205.0
System: Mac OS X 10.10.3
Thrown From: autocomplete-plus package, v2.17.3
Stack Trace
Uncaught TypeError: Cannot read property 'classList' of undefined
Commands
Config
{ "core": { "ignoredNames": [ ".git", ".svn", ".DS_Store" ], "disabledPackages": [ "metrics", "welcome", "minimap" ], "themes": [ "atom-soda-dark-ui", "pretty-pastels-syntax" ] } }Installed Packages
andreialecu commentedon Jun 9, 2015
Atom 0.207.0 here and I just got this. I was editing a .jade file if that matters, but it occured randomly.
Atom Version: 0.207.0
System: Microsoft Windows 7 Ultimate
Thrown From: autocomplete-plus package, v2.17.3
Stack Trace
Uncaught TypeError: Cannot read property 'classList' of undefined
Commands
Config
{ "core": {} }Installed Packages
chriscoderdr commentedon Jun 11, 2015
I was editing the html ninja template when it suddenly happen.
Atom Version: 0.208.0
System: Ubuntu 15.04
Thrown From: autocomplete-plus package, v2.17.3
Stack Trace
Uncaught TypeError: Cannot read property 'classList' of undefined
Commands
Config
{ "core": { "disabledPackages": [ "go-plus", "vim-mode" ] } }Installed Packages
tanakh commentedon Jun 12, 2015
I am writing small single Haskell file and suddenly it happened.
My system is Windows 8.1.
Atom Version: 0.209.0
System: Unknown Windows Version
Thrown From: autocomplete-plus package, v2.17.3
Stack Trace
Uncaught TypeError: Cannot read property 'classList' of undefined
Commands
Config
{ "core": { "autoHideMenuBar": true } }Installed Packages
benogle commentedon Jun 12, 2015
This will be fixed in the next version of atom.
dead-claudia commentedon Jun 21, 2015
@basarat Can you repro the above? (I only see random crashes, no pattern, so I don't know where to look)
basarat commentedon Jun 22, 2015
@IMPinball nope. To be honest : Hasn't happened to me since the first time this issue got closed : #262 (comment)
stevekuznetsov commentedon Jul 16, 2015
Please Re-Open
Happened to me. Stack trace:
benogle commentedon Jul 17, 2015
@stevekuznetsov What version of atom are you using?
Be defensive when setting the selected item