Atom is crashing when I try to start it


#1

Last thing I can remember doing was marking the .atom folder as ‘hidden’ on my laptop running on windows.

Whenever I launch atom now, I end up getting a console window that looks similar to the console for a browser.

The console has a very long error message. (see below).

What I’ve tried: restarting and re-installing atom. No help.

Error log:

index.js:87 Error: EPERM: operation not permitted, open 'C:\Users\mkupfer\.atom\compile-cache\less\c8373f9a797a5f162e177c88620e421e796b6ff0\imports.json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.writeFileSync (fs.js:1303:33)
    at Proxy.writeFileSync (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:270434)
    at LessCache.t.exports.LessCache.writeJson (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:14:1064144)
    at LessCache.t.exports.LessCache.setImportPaths (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:14:1063339)
    at new LessCache (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:14:1061789)
    at new LessCompileCache (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:14:12763)
    at ThemeManager.loadLessStylesheet (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:390536)
    at ThemeManager.loadStylesheet (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:390422)
    at ThemeManager.requireStylesheet (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:388536)
    at ThemeManager.reloadBaseStylesheets (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:390057)
    at ThemeManager.loadBaseStylesheets (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:11:390004)
    at AtomEnvironment.initialize (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:1:637584)
    at t.exports (C:\Users\mkupfer\AppData\Local\atom\app-1.33.0\resources\app\static\<embedded>:1:630812)
    at setupWindow (file:///C:/Users/mkupfer/AppData/Local/atom/app-1.33.0/resources/app.asar/static/index.js:106:12)
    at window.onload (file:///C:/Users/mkupfer/AppData/Local/atom/app-1.33.0/resources/app.asar/static/index.js:67:9)

#2

Was able to fix this by restoring my .atom folder. With a backup.


#3

The error seems to be about permissions. Atom was being denied access to the file.


#4

In this case, the file is in .atom/compile-cache, which is a cache folder and can thus be deleted whenever it causes issues.