GithubHelp home page GithubHelp logo

Dynamic less library in packed mode about core HOT 9 CLOSED

c9 avatar c9 commented on July 30, 2024
Dynamic less library in packed mode

from core.

Comments (9)

nightwing avatar nightwing commented on July 30, 2024

Packed themes mode is on by default since compiling less is slow.
How do you launch cloud9 sdk, do you have any plugins installed?

from core.

ludoo0d0a avatar ludoo0d0a commented on July 30, 2024

Even a fresh install leads to the same error.
I cleared ~/.c9, clone again github repo and run without plugins with the standard cmd

node server.js -p 8181 -l 0.0.0.0 -a :

Same trouble, no left panel, and the same error in console...
Same fix (clear style.css) to bypass this blocking issue.

How can i help you to give you further infos ?

from core.

nightwing avatar nightwing commented on July 30, 2024

On which browser/os do you see this, and with which theme?
Also would be helpful if you could show me the stack of this error.

from core.

ludoo0d0a avatar ludoo0d0a commented on July 30, 2024

Chrome 41 on Windows 8 in classic theme (default install ; but occured with all 3 themes)

Can't add dynamic less library in packed mode! Error: Can't add dynamic less library in packed mode!
    at Object.insertLess [as preProcessCSS] (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/ui.js:167:27)
    at Object.apf.skins.purgeCss (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/lib_apf.js:75:1587)
    at Object.apf.skins.Init (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/lib_apf.js:75:413)
    at $propHandlers.src (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/lib_apf.js:365:321)
    at $handlePropSet (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/lib_apf.js:100:1014)
    at apf.Class.setProperty (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/lib_apf.js:13:2190)
    at Plugin.insertSkin (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.ui/ui.js:239:22)
    at draw (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.panels/panels.js:41:16)
    at EventEmitter.emit (http://c9.mywebsite.eu:8181/static/lib/events.js:1:686)
    at draw (http://c9.mywebsite.eu:8181/static/plugins/c9.ide.panels/area.js:37:17)

from core.

nightwing avatar nightwing commented on July 30, 2024

What do you get when running require("text!plugins/c9.ide.ui/style.css") in the console
And do you have this file https://github.com/c9/core/blob/master/plugins/c9.ide.ui/style.css#L1
Can there be some proxy that removes comments from css files?

from core.

ludoo0d0a avatar ludoo0d0a commented on July 30, 2024

I'm on the way to search something around a proxy (but not from side until now)
...but I recently add data saver plugin for Chrome (https://chrome.google.com/webstore/detail/data-saver-beta/pfmgfdlgomnbgkofeojodiodmgpgmkac)...

and yep, it is THE css cleaner..
it removes css comments....

could you find a proper workaround to bypass this ? a dummy css class ?

from core.

nightwing avatar nightwing commented on July 30, 2024

We can rename that file to style.less
Btw if you want to reduce the size of downloaded files you can use ?packed=1

from core.

ludoo0d0a avatar ludoo0d0a commented on July 30, 2024

For now i disable data saver,
but I tried ?packed=1 and I've got this error (even after a scripts/install-sdk.sh) :

TypeError: Cannot read property 'base64Decode' of undefined
    at Object.main [as setup] (:8181/static/standalone/modules/plugins/c9.ide.run.debug.xdebug/xdebug.js:20)
    at startPlugins (default.js:1033)
    at startPlugins (default.js:1041)
    at register (default.js:1072)
    at default.js:53644
    at default.js:53634
    at done (default.js:151186)
    at XMLHttpRequest.xhr.onload (default.js:151167)

from core.

nightwing avatar nightwing commented on July 30, 2024

Renamed css to less in 3f3f59b
The error is most likely because cached version in build/standalone/ folder is old. removing that folder should fix it. I'll add that to install-sdk.sh as well.

from core.

Related Issues (20)

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.