question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'onDidChangeIcon' of undefined (Failed to activate the file-icons package)

See original GitHub issue

UPDATE 2017/12: If you’re seeing this error after installing the package, please restart Atom. Everything will then work as expected.

This is a known and temporary issue. See below.

Atom Version: 1.15.0 x64 System: Microsoft Windows 10 (10.0.14393 Build 14393) Thrown From: file-icons package, v2.1.1

Stack-trace:

TypeError: Cannot read property 'onDidChangeIcon' of undefined
    at new IconNode (C:\Users\uoker\.atom\packages\file-icons\lib\service\icon-node.js:30:12)
    at new TreeEntry (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\tree-entry.js:41:19)
    at TreeView.track (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\tree-view.js:82:25)
    at TreeView.rebuild (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\tree-view.js:73:9)
    at TreeView.activate (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\tree-view.js:54:8)
    at TreeView.updateStatus (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\consumer.js:206:9)
    at TreeView.init (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\tree-view.js:30:8)
    at ConsumerManager.init (C:\Users\uoker\.atom\packages\file-icons\lib\consumers\all.js:33:13)
    at Object.activate (C:\Users\uoker\.atom\packages\file-icons\lib\main.js:17:13)
    at Package.module.exports.Package.activateNow (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package.js:218:19)
    at C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package.js:190:32
    at Package.module.exports.Package.measure (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package.js:96:15)
    at C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package.js:183:26
    at Package.module.exports.Package.activate (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package.js:180:34)
    at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\package-manager.js:550:34)
    at C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:484:29
    at exit (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:99:16)
    at triggerExitCallback (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\buffered-process.js:322:11)
    at ChildProcess.<anonymous> (C:\Users\uoker\AppData\Local\atom\app-1.15.0\resources\app.asar\src\buffered-process.js:352:11)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:25
  • Comments:31 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
Alhadiscommented, Nov 23, 2017

@totovr Did you deactivate and reactivate any of the following packages…?

  • file-icons
  • tree-view
  • tabs
  • fuzzy-finder
  • find-and-replace
  • archive-view

If so, I’m afraid that requires a restart as well. Sorry.

Technically, the issue isn’t with installing, but changes in the package’s activation status. It’ll be fixed in the next release of Atom. 😃

4reactions
PhunStylecommented, Mar 22, 2017

Same here, but just happens on a new install and on disable/enable. If you enable it and restart atom the icons show up and no warning shows up.

Failed to activate the file-icons package Cannot read property ‘onDidChangeIcon’ of undefined

TypeError: Cannot read property 'onDidChangeIcon' of undefined
    at new IconNode (/home/phun/.atom/packages/file-icons/lib/service/icon-node.js:30:12)
    at new TreeEntry (/home/phun/.atom/packages/file-icons/lib/consumers/tree-entry.js:41:19)
    at TreeView.track (/home/phun/.atom/packages/file-icons/lib/consumers/tree-view.js:82:25)
    at TreeView.rebuild (/home/phun/.atom/packages/file-icons/lib/consumers/tree-view.js:73:9)
    at TreeView.activate (/home/phun/.atom/packages/file-icons/lib/consumers/tree-view.js:54:8)
    at TreeView.updateStatus (/home/phun/.atom/packages/file-icons/lib/consumers/consumer.js:206:9)
    at TreeView.init (/home/phun/.atom/packages/file-icons/lib/consumers/tree-view.js:30:8)
    at ConsumerManager.init (/home/phun/.atom/packages/file-icons/lib/consumers/all.js:33:13)
    at Object.activate (/home/phun/.atom/packages/file-icons/lib/main.js:17:13)
    at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app.asar/src/package.js:218:19)
    at /usr/share/atom/resources/app.asar/src/package.js:190:32
    at Package.module.exports.Package.measure (/usr/share/atom/resources/app.asar/src/package.js:96:15)
    at /usr/share/atom/resources/app.asar/src/package.js:183:26
    at Package.module.exports.Package.activate (/usr/share/atom/resources/app.asar/src/package.js:180:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/usr/share/atom/resources/app.asar/src/package-manager.js:550:34)
    at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:484:29
    at exit (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:99:16)
    at triggerExitCallback (/usr/share/atom/resources/app.asar/src/buffered-process.js:322:11)
    at /usr/share/atom/resources/app.asar/src/buffered-process.js:343:11
    at Socket.<anonymous> (/usr/share/atom/resources/app.asar/src/buffered-process.js:204:9)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:493:12)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'onDidChangeIcon' of null · Issue #698 ...
However, once the application enters it, clicking to expand some directories in the file tree causes this error to be thrown. I assume...
Read more >
TypeError: Cannot read properties of undefined (reading 'Icon ...
Here the error is coming from line 2: value: {Icon, name, level} . The value coming via props seems to be undefined. Check...
Read more >
cannot read properties of undefined (reading 'icon') - You.com
Here the error is coming from line 2: value: {Icon, name, level} . The value coming via props seems to be undefined. Check...
Read more >
TypeError: Cannot read properties of undefined (reading 'utils')
And how did you get the bonus plugins? I don't see a membership attached to your name? If you just to test drive...
Read more >
Cannot read property '0' of undefined when editing user
But now we are getting error “Cannot read property '0' of undefined”, when saving changes in any user editing window.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found