file-icons package cannot read properties of "undefined" and crashes.
See original GitHub issue[Enter steps to reproduce:]
- Create New File Under any Directory
- Expand that folder in tree-view
Stack Trace
Uncaught TypeError: Cannot read property ‘onDidChangeIcon’ of undefined
At /home/fabian/.atom/packages/file-icons/lib/service/icon-node.js:30
TypeError: Cannot read property 'onDidChangeIcon' of undefined
at /packages/file-icons/lib/service/icon-node.js:30:12)
at /packages/file-icons/lib/consumers/tree-entry.js:41:19)
at TreeView.track (/packages/file-icons/lib/consumers/tree-view.js:92:25)
at resource.onDidFindEntries.entries (/packages/file-icons/lib/consumers/tree-view.js:107:64)
at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
at TreeEntry.scanEntries (/packages/file-icons/lib/consumers/tree-entry.js:126:18)
at TreeEntry.disposables.add.source.onDidAddEntries (/packages/file-icons/lib/consumers/tree-entry.js:38:60)
at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app/node_modules/tree-view/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/tree-view/node_modules/event-kit/lib/emitter.js:125:34)
at Directory.module.exports.Directory.reload (/usr/share/atom/resources/app/node_modules/tree-view/lib/directory.js:372:35)
at Directory.module.exports.Directory.expand (/usr/share/atom/resources/app/node_modules/tree-view/lib/directory.js:385:18)
at DirectoryView.module.exports.DirectoryView.expand (/usr/share/atom/resources/app/node_modules/tree-view/lib/directory-view.js:185:30)
at DirectoryView.module.exports.DirectoryView.toggleExpansion (/usr/share/atom/resources/app/node_modules/tree-view/lib/directory-view.js:171:27)
at TreeView.module.exports.TreeView.entryClicked (/usr/share/atom/resources/app/node_modules/tree-view/lib/tree-view.js:487:30)
at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app/node_modules/tree-view/lib/tree-view.js:228:32)
Commands
-6:23.4.0 tree-view:remove (li.file.entry.list-item.selected)
-6:16.5.0 tree-view:add-file (span.name.icon.icon-file-directory)
2x -6:13.6.0 core:backspace (input.hidden-input)
-6:10.2.0 core:confirm (input.hidden-input)
-3:20.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
Non-Core Packages
achievements 0.9.0
atom-beautify 0.30.4
auto-detect-indentation 1.3.0
autoclose-html 0.23.0
autocomplete-modules 1.6.10
autocomplete-paths 1.0.5
busy-signal 1.4.3
color-picker 2.2.5
docblockr 0.11.0
file-icons 2.1.9
git-plus 7.9.3
highlight-selected 0.13.1
intentions 1.1.2
linter 2.2.0
linter-ui-default 1.6.3
merge-conflicts 1.4.5
minimap 4.29.0
minimap-cursorline 0.2.0
minimap-highlight-selected 4.6.1
minimap-pigments 0.2.2
minimap-selection 4.4.0
open-recent 5.0.0
pane-layout-plus 0.7.3
pigments 0.39.1
script 3.15.0
simple-drag-drop-text 0.3.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Preview crashes: Cannot read properties of undefined ...
On VS Code 1.70.1 using the AsciiDoc extention the preview windows crashes. It stays empty and after +-15 sec VS Codes seems to...
Read more >Cannot read property of undefined, How to avoid the crash?
How can I gracefully Deal with this and avoid crashes. I want it so that if post is undefined it returns an error...
Read more >cannot read properties of undefined (reading 'icon')
The value coming via props seems to be undefined. Check where the Bar component is used and if the props are passed properly....
Read more >Release note
Added a read-only "mirrored" property that is true when the popup's ... type doesn't match, null is returned for object types. Also, type...
Read more >Known issues
The following list provides descriptions of known issues in Relativity. For a current list of Relativity enhancements and resolved issues, please visit the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to fix the error by myslef 😃 thanks!
Sí, ya funciona. muchas gracias por la rapidez.