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 'add' of null (Failed to activate the file-icons package)

See original GitHub issue

It started happening after the latest update of this package when I pressed Ctrl+T to open fuzzy finder. Uninstalled the package and reinstalled and it tried to implement it’s logos on my file tree and it failed with this error.

Atom Version: 1.13.0 Electron Version: 1.3.13 System: Microsoft Windows 10 Home Thrown From: file-icons package, v2.0.10

Stack Trace

Failed to activate the file-icons package

At Cannot read property 'add' of null

TypeError: Cannot read property 'add' of null
	at Nuclide.init (C:\Users\Thomas\.atom\packages\file-icons\lib\consumers\consumer.js:49:19)
	at ConsumerManager.init (C:\Users\Thomas\.atom\packages\file-icons\lib\consumers\all.js:55:13)
	at Object.activate (C:\Users\Thomas\.atom\packages\file-icons\lib\main.js:19:13)
	at Package.module.exports.Package.activateNow (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package.js:191:19)
	at C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package.js:164:32
	at Package.module.exports.Package.measure (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package.js:94:15)
	at C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package.js:157:26
	at Package.module.exports.Package.activate (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package.js:154:34)
	at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\package-manager.js:550:34)
	at C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:439:29
	at exit (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
	at triggerExitCallback (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\buffered-process.js:299:11)
	at ChildProcess.<anonymous> (C:\Users\Thomas\AppData\Local\atom\app-1.13.0\resources\app.asar\src\buffered-process.js:329: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)

Commands

     -4:46.8.0 core:backspace (input.hidden-input)
     -4:40.8.0 core:save (input.hidden-input)
     -1:16.7.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -1:14.9.0 editor:consolidate-selections (input.hidden-input)
     -1:14.9.0 core:cancel (input.hidden-input)
     -1:14.4.0 core:undo (input.hidden-input)
     -1:13.9.0 core:save (input.hidden-input)
  2x -1:13.1.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -1:03.7.0 command-palette:toggle (input.hidden-input)
     -1:02.4.0 core:backspace (input.hidden-input)
     -1:00.8.0 core:confirm (input.hidden-input)
     -1:00.8.0 settings-view:view-installed-packages (input.hidden-input)
     -0:59.5.0 editor:consolidate-selections (input.hidden-input)
     -0:59.5.0 core:cancel (input.hidden-input)
  5x -0:26.5.0 core:backspace (input.hidden-input)
     -0:17.9.0 core:confirm (input.hidden-input)

Config

{
	"core": {
		"audioBeep": false,
		"autoHideMenuBar": true,
		"openEmptyEditorOnStart": false,
		"projectHome": "C:\\Users\\Thomas\\Documents",
		"telemetryConsent": "limited"
	}
}

Packages

# Enabled Themes
one-dark-syntax      1.6.0
one-dark-ui          1.8.2

# Consumer packages
archive-view         0.62.0
find-and-replace     0.204.5
fuzzy-finder         1.4.0
tabs                 0.103.1
tree-view            0.211.1

# Active (Core excluded)
atom-beautify        0.29.16
atom-clock           0.1.3
autoclose-html       0.23.0
autocomplete-python  1.8.26
git-diff             1.2.0
hex                  0.6.2
language-batch       0.3.3
merge-conflicts      1.4.4
pretty-json          1.6.1
rest-client          1.3.1
wakatime             6.0.12

# Inactive
autocomplete-java    1.2.5
file-icons           2.0.10
KeyCount             0.1.1
link                 0.31.2
open-on-github       1.2.1
package-generator    1.0.2
script               3.14.0
todo-show            1.9.0
youtube-pane         2.0.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
Alhadiscommented, Jan 24, 2017

I’m a fucking idiot. Sorry guys.

Fixed in v2.0.12

0reactions
Alhadiscommented, Jan 26, 2017

Resolved by a5f4e52a. You’ll notice this only one more time in the next update, but it shouldn’t plague you anymore afterward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install: Failed to activate the file-icons package, Cannot read ...
Install: Failed to activate the file-icons package, Cannot read property 'Symbol(Symbol.iterator)' of undefined #519.
Read more >
Uncaught TypeError: Cannot read property 'add' of null [closed]
In my console I first get the first piece of data logged. The row "selector.add(option);" then returns "Uncaught TypeError: Cannot read property ...
Read more >
cannot read property 'children' of null | OutSystems
Hi imas,. I found this post where this error appears and seems related to your problem. I don't know if it was already...
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
So adding .value will cause the error. You are trying to access a DOM element before the DOM is ready. Use onload or...
Read more >
How to fix "TypeError: Cannot read properties of ... - YouTube
JS Casts 12 - How to fix " TypeError: Cannot read properties of null ( reading addEventListener)" in JavaScript.
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