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.

Failed to activate the file-icons package

See original GitHub issue

I’ve been getting Invalid or unexpected token whenever I start Atom. I have tried file-icons:clear-cache to no avail.

Atom: 1.22.1 x64 (also on 1.22.0; I just updated) OS: Windows 10 v1703 Thrown from: file-icons 2.1.14

Non-core packages

language-latex 1.1.1 language-ocaml 1.9.5 language-prolog 0.11.0 language-verilog 0.4.0 latex 0.49.0 minimap 4.29.7 pdf-view 0.61.0

Stack Trace

 SyntaxError: Invalid or unexpected token
          at Module.get_Module._compile (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:94:52)
          at Object.value [as .js] (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\compile-cache.js:239:29)
          at Module.load (module.js:488:32)
          at tryModuleLoad (module.js:447:12)
          at Function.Module._load (module.js:439:3)
          at Module.require (file:///D:/Users/username/AppData/Local/atom/app-1.22.0/resources/app.asar/static/index.js:47:45)
          at require (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:66:33)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\to-regex\node_modules\define-property\index.js:10:20)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\to-regex\node_modules\define-property\index.js:33:3)
          at Module.get_Module._compile (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:106:36)
          at Object.value [as .js] (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\compile-cache.js:239:29)
          at Module.load (module.js:488:32)
          at tryModuleLoad (module.js:447:12)
          at Function.Module._load (module.js:439:3)
          at Module.require (file:///D:/Users/username/AppData/Local/atom/app-1.22.0/resources/app.asar/static/index.js:47:45)
          at require (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:66:33)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\to-regex\index.js:3:14)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\to-regex\index.js:150:3)
          at Module.get_Module._compile (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:106:36)
          at Object.value [as .js] (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\compile-cache.js:239:29)
          at Module.load (module.js:488:32)
          at tryModuleLoad (module.js:447:12)
          at Function.Module._load (module.js:439:3)
          at Module.require (file:///D:/Users/username/AppData/Local/atom/app-1.22.0/resources/app.asar/static/index.js:47:45)
          at require (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:66:33)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\braces\index.js:7:15)
          at Object.<anonymous> (D:\Users\username\.atom\packages\file-icons\node_modules\braces\index.js:315:3)
          at Module.get_Module._compile (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\native-compile-cache.js:106:36)
          at Object.value [as .js] (D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\src\compile-cache.js:239:29)
          at Module.load (module.js:488:32)

I do not know what’s in the file native-compile-cache.js; I see D:\Users\username\AppData\Local\atom\app-1.22.0\resources\app\ but I do not see a src folder in that directory (view hidden files/folders is turned on).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
sikios182commented, Dec 11, 2017

Restart Atom via File icons on Troubleshooting section

3reactions
Rawnlycommented, Dec 13, 2017

Restart Atom via File icons on Troubleshooting section

@hajix @aondkar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install: Failed to activate the file-icons package, Cannot read ...
Failed to activate the file-icons package. At Cannot read property 'Symbol(Symbol.iterator)' of undefined TypeError: Cannot read property ...
Read more >
A file icon package is not working on sublime text 3
It downloaded successfully and the package is available in list of packages but for some reason I cant view the icons of the...
Read more >
A File Icon - Package Control
This package adds file-specific icons to Sublime Text for improved visual grepping. It's heavily inspired by Atom File Icons. Its aims are:.
Read more >
Atom Material Icons - IntelliJ IDEs Plugin - JetBrains Marketplace
Custom File and IDE Icons for improved visual grepping. This plugin is a port of the Atom File Icons and the icons of...
Read more >
File Icons - Material Theme UI Documentation
Aside from themes and color schemes, the plugin provides also a complete reskin to the projects' file icons, making them prettier and easier...
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