atom: Uncaught TypeError: Cannot read property 'onDidChangeIcon' of null

I’m just trying to open a “.log” file. The error is thrown only when opening the file, and not when the file is in view in the treeview.

Report:

Atom Version: 1.13.0 Electron Version: 1.3.13 System: Unknown Windows Version Thrown From: file-icons package 2.0.12

Stack Trace

Uncaught TypeError: Cannot read property ‘onDidChangeIcon’ of null

At C:\Users\John\.atom\packages\file-icons\lib\service\icon-node.js:31

TypeError: Cannot read property 'onDidChangeIcon' of null
	at new IconNode (C:\Users\John\.atom\packages\file-icons\lib\service\icon-node.js:31:12)
	at new Tab (C:\Users\John\.atom\packages\file-icons\lib\consumers\tab.js:17:19)
	at Tabs.add (C:\Users\John\.atom\packages\file-icons\lib\consumers\tabs.js:70:16)
	at disposables.add.UI.delay.onOpenEditor.editor (C:\Users\John\.atom\packages\file-icons\lib\consumers\tabs.js:36:10)
	at Immediate.setImmediate (C:\Users\John\.atom\packages\file-icons\lib\ui.js:82:40)
	at runCallback (timers.js:574:20)
	at tryOnImmediate (timers.js:554:5)
	at processImmediate [as _immediateCallback] (timers.js:533:5)

Commands

     -0:44.6.0 editor:move-to-beginning-of-word (input.hidden-input)
  3x -0:43.6.0 editor:move-to-end-of-word (input.hidden-input)
     -0:42.9.0 core:move-right (input.hidden-input)
 16x -0:42.4.0 editor:move-to-end-of-word (input.hidden-input)
     -0:39.2.0 editor:move-to-end-of-screen-line (input.hidden-input)
     -0:38.2.0 core:move-up (input.hidden-input)
     -0:38.2.0 core:move-right (input.hidden-input)
     -0:37.3.0 core:save (input.hidden-input)
     -0:28.5.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -0:27.3.0 core:confirm (input.hidden-input)
  9x -0:26.3.0 core:move-down (input.hidden-input)
  7x -0:24.9.0 core:move-left (input.hidden-input)
     -0:23.8.0 editor:select-to-beginning-of-word (input.hidden-input)
     -0:23.4.0 core:backspace (input.hidden-input)
     -0:22.2.0 autocomplete-plus:cancel (input.hidden-input)
  2x -0:21.3.0 core:save (input.hidden-input)

Config

{
	"core": {
		"automaticallyUpdate": false,
		"packagesWithKeymapsDisabled": [],
		"telemetryConsent": "no",
		"themes": [
			"one-dark-ui",
			"atom-dark-fusion-syntax"
		]
	},
	"file-icons": {
		"tabPaneIcon": false
	}
}

Installed Packages

# Active themes
atom-dark-fusion-syntax   2.0.2
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 packages (Core excluded)
auto-indent               0.5.0
color-picker              2.2.4
ctrl-dir-scroll           0.2.2
docblockr                 0.9.1
file-icons                2.0.12
goto-definition           1.1.19

# Inactive packages
advanced-open-file        0.16.5

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 26 (10 by maintainers)

Most upvoted comments

Just installed the latest patch 2.0.13 using Atom 1.13.0 running on Windows 10. Problem is fixed on my end. No more annoying pop-ups! Thank you @Alhadis … Will provide a better bug report next time.

Hello,

As of 2.0.15 the problem is corrected. Thank you

I’m finishing up a new release, but I’m taking a moment to add something that’ll make it a hell of a lot easier on you guys to provide helpful stat-reports.

Which will be needed if these issues are still occurring, because they damn well better be fixed by 2.0.14. ;p