Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: '$ATOM_HOME/storage/reduced-dark-ui/font.less' wasn't found #25

Open
mfplinta opened this issue Feb 26, 2017 · 5 comments
Assignees

Comments

@mfplinta
Copy link

Clean installation of most recent atom.

Atom: 1.14.3 x64
Electron: 1.3.13
OS: Ubuntu Zesty
Thrown From: reduced-dark-ui package 0.9.2

Stack Trace

Uncaught Error: '/home/matheus/.atom/storage/reduced-dark-ui/font.less' wasn't found

At /usr/share/atom/resources/app.asar/src/theme-manager.js:301

Error
    at /app.asar/node_modules/less/lib/less/parser.js:333:27)
    at LessCache.module.exports.LessCache.parseLess (/app.asar/node_modules/less-cache/lib/less-cache.js:255:16)
    at LessCache.module.exports.LessCache.cssForFile (/app.asar/node_modules/less-cache/lib/less-cache.js:286:20)
    at LessCache.module.exports.LessCache.readFileSync (/app.asar/node_modules/less-cache/lib/less-cache.js:274:19)
    at LessCompileCache.module.exports.LessCompileCache.read (/app.asar/src/less-compile-cache.js:36:25)
    at ThemeManager.module.exports.ThemeManager.loadLessStylesheet (/app.asar/src/theme-manager.js:282:33)
    at ThemeManager.module.exports.ThemeManager.loadStylesheet (/app.asar/src/theme-manager.js:258:21)
    at ConfigManagerAnew.didFinishTransaction (/packages/reduced-dark-ui/lib/core/configuration/Config.js:50:32)
    at /packages/reduced-dark-ui/lib/core/configuration/Config.js:85:18
    at FSReqWrap.oncomplete (fs.js:123:15)

Commands

     -2:15.8.0 core:confirm (input.hidden-input)
     -2:11.2.0 core:backspace (input.hidden-input)
     -2:04.5.0 core:paste (input.hidden-input)
  2x -2:04.1.0 core:confirm (input.hidden-input)

Non-Core Packages

reduced-dark-ui 0.9.2 
@tuomashatakka
Copy link
Owner

I'll take a closer look into this. Does .atom/storage/reduced-dark-ui folder exist? Does the theme throw error if activated again? 😃

@mfplinta
Copy link
Author

Hello 😃 ! Thanks for answering!

The folder .atom/storage/reduced-dark-ui apparently exists.
screen cap 3

Re-activating the theme don't seems to resolve 😞
screen cap 2

And when I restart the Atom with the theme activated, the white dead screen shows.
screen cap 1

I'm running Ubuntu 17.04 🐶
screen cap 4

Thanks again and good luck ;)

@tuomashatakka
Copy link
Owner

Thanks for the comprehensive images 😊

That's really odd. It may have something to do with access control. Or something else. 🙃

I'm currently working on moving from less variables to pure css variables which means all of that less file io may be abandoned. The sequence for checking the storage's files is rather complicated so I think it's best just to finish the new implementation. I'll try to get it done as fast as possible to allow you to enable the theme 🙋 Ps. the update makes the config updates a lot faster than any other theme out there since afaik none of them uses the css variables just yet 😃

@tuomashatakka
Copy link
Owner

@mfplinta I got to accidentally recreate this error on my local environment!

The latest commit (38ac378) has the fix to this, so if you want to, you may apply it to your local copy of the package - I won't publish it just yet, since there are some css variable definitions still unconfigured :)

@tuomashatakka
Copy link
Owner

I may cherry-pick that commit to the apm later this evening. I still don't know why less parser occasionally thinks that the font.less does not exist - my bet is that it fails to read the file if it's being written to at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants