Closed vtambourine closed 5 years ago
This still occurs with Atom 1.35.1 running on Mojave OS
@dennisgaebel Are you using Nuclide as well?
@Alhadis Nope. What else can I provide to help remedy this bug?
Stack traces, a list of non-core packages you have installed, and what packages you purposefully disabled (if any). Similar to what @vtambourine provided in the OP.
Nuclide uses a very different set of UI components for Atom's workspace, replacing elements such as the file-tree
with a more sophisticated project-browser, as well as other non-trivial replacements. These are the sorts of things that would naturally cause compatibility issues with certain packages assuming the existence of a tree-view
pane...
@Alhadis Here are those deets. There is no Core packages that have been disabled on my end.
Stack Trace
Uncaught TypeError: Cannot read property 'reduce' of undefined
/Users/grayghost/.atom/packages/editorconfig/commands/show.js:6
TypeError: Cannot read property 'reduce' of undefined
at notificationTemplate (/Users/grayghost/.atom/packages/editorconfig/commands/show.js:6:17)
at HTMLElement.init (/Users/grayghost/.atom/packages/editorconfig/commands/show.js:56:17)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:677438)
at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:840539)
at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:835418)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1212981)
at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1209115)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:285196)
Non-Core Community Packages
├── atom-html-preview@0.2.6
├── atom-solarized-dark-ui@0.28.1
├── autoclose-html@0.23.0
├── bezier-curve-editor@0.7.2
├── caniuse@1.0.0
├── color-picker@2.3.0
├── editorconfig@2.3.0
├── emmet@2.4.3
├── git-time-machine@2.1.0
├── language-liquid@0.7.0
├── livestyle-atom@0.2.10 (disabled)
├── project-plus@1.0.0
├── split-diff@1.6.0
└── teletype@0.13.3
Gonna give this a thorough test and clean up. The exact error which was reported in the OP has so far been unreproducible, but the immediate fix is self-explanatory (check if value is null-ish before attempting to access a property or method).
Already patched it locally, will push as soon as I've finished trying to recreate the error...
Still couldn't reproduce the exact stack trace, but at this point, I'm pretty damn sure it's no longer an issue...
@Alhadis Thanks for the fix! 👍 🍻
[Enter steps to reproduce:]
Expected: Editor config status shown. Result: Error appeared.
Atom: 1.26.0 x64 Electron: 1.7.11 OS: Mac OS X 10.12.6 Thrown From: editorconfig package 2.2.2
Stack Trace
Uncaught TypeError: Cannot read property 'reduce' of undefined
Commands
Non-Core Packages