Giter VIP home page Giter VIP logo

Comments (5)

pixilz avatar pixilz commented on June 28, 2024 1

Able to reproduce with a completely clean install of Atom.

from no-caffeine-syntax.

thomaslindstrom avatar thomaslindstrom commented on June 28, 2024 1

Seems to be fixed now. Please try updating no-caffeine-syntax! ✌️

from no-caffeine-syntax.

jchook avatar jchook commented on June 28, 2024

Experiencing the exact same thing.

  1. I am noticing a lot of weirdness with other syntax themes as well.
  2. I did not update the theme to cause this problem, so it's definitely a breaking change or bug in Atom itself.

The problem persists in the latest 1.18.0-beta0, but is solved by reverting to Atom 1.16.0.

I have yet to determine whether the change is a bug or not.

from no-caffeine-syntax.

pixilz avatar pixilz commented on June 28, 2024

I went ahead and forked to check out the problem. index.less is used to compile everything the imports should be essentially dropping the code into the file but when it imports the sass.less language file it runs into an issue with being able to find the css styles (which are basically a mixin).

So I put a reference import into sass to the css file. That got rid of the error but another error "Cannot read property 'rules' of undefined"

With this stack trace:
(From what I can see it is definitely a problem with the compiler and not this package but I've no idea what changed to break this)
TypeError: Cannot read property 'rules' of undefined at Node.Import.doEval (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\tree\import.js:160:46) at Node.Import.eval (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\tree\import.js:112:23) at Node.Ruleset.eval (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\tree\ruleset.js:149:50) at module.exports (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\transform-tree.js:67:22) at ParseTree.toCSS (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\parse-tree.js:14:25) at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\render.js:31:40 at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\parse.js:63:17 at Object.finish [as _finish] (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\parser\parser.js:183:28) at Object._onSequencerEmpty (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\visitors\import-visitor.js:35:14) at ImportSequencer.tryRun (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\visitors\import-sequencer.js:50:14) at Object.run (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\visitors\import-visitor.js:29:25) at Object.parse (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\parser\parser.js:189:22) at Object.parse (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\parse.js:61:18) at Object.render (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less\lib\less\render.js:25:18) at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less-cache\lib\less-cache.js:294:21 at LessCache.module.exports.LessCache.observeImportedFilePaths (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less-cache\lib\less-cache.js:176:9) at LessCache.module.exports.LessCache.parseLess (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less-cache\lib\less-cache.js:293:22) at LessCache.module.exports.LessCache.cssForFile (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\less-cache\lib\less-cache.js:333:19) at LessCompileCache.module.exports.LessCompileCache.cssForFile (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\less-compile-cache.js:41:25) at ThemeManager.module.exports.ThemeManager.loadLessStylesheet (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\theme-manager.js:300:33) at ThemeManager.module.exports.ThemeManager.loadStylesheet (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\theme-manager.js:269:21) at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\package.js:543:54 at Array.map (native) at ThemePackage.module.exports.Package.loadStylesheets (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\package.js:541:59) at ThemePackage.module.exports.Package.reloadStylesheets (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\src\package.js:856:14) at PackageWatcher.module.exports.PackageWatcher.loadAllStylesheets (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\dev-live-reload\lib\package-watcher.js:71:24) at PackageWatcher.loadAllStylesheets (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\dev-live-reload\lib\package-watcher.js:3:59) at PackageWatcher.module.exports.PackageWatcher.loadStylesheet (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\dev-live-reload\lib\package-watcher.js:66:19) at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\dev-live-reload\lib\watcher.js:76:24 at Function.module.exports.Emitter.simpleDispatch (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\event-kit\lib\emitter.js:25:14) at Emitter.module.exports.Emitter.emit (C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\event-kit\lib\emitter.js:141:28) at C:\Users\AT35\AppData\Local\atom\app-1.17.0\resources\app\node_modules\pathwatcher\lib\file.js:560:40 at process._tickCallback (internal/process/next_tick.js:103:7)

from no-caffeine-syntax.

thomaslindstrom avatar thomaslindstrom commented on June 28, 2024

Nice, @pixilz! I also got the same issue when updating Atom to the newest version (1.17.0).

from no-caffeine-syntax.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.