GithubHelp home page GithubHelp logo

Comments (11)

softprops avatar softprops commented on July 18, 2024

It most likely does have todo with the version of less bootstrap uses. I'm actually in the middle of extract the less compiler the plugin uses as a standalone component. Which the next version of less-sbt will depend on. I was hoping there'd be no issues between now and sbt 0.13.0 but I can try to get one more release out for sbt 0.12.* projects that run into this issue. bootstrap is pretty darn popular! I'll look into this issue and see if the newer version of the less compiler fixes the issue. I do have a test just for bootstap so I should find out pretty soon.

from less-sbt.

softprops avatar softprops commented on July 18, 2024

just from a glace it does look like a change in the compiler - https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md#140-beta-1--2 I'll try to get a release out soon

from less-sbt.

rudolfb avatar rudolfb commented on July 18, 2024

Thanks for looking into this. Now that you mention it ...

https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
1.4.0 Beta 1 & 2

(~"@var") selector interpolation is removed. Use @{var} in selectors to have variable selectors

The LESS milestone 1.4.0 seems to be at Beta4 at the moment with no open issues. Perhaps it would make sense to wait till the final version is out before you push this out as a release. For me, at least, I have a functional workaround, so waiting a little longer would really not be a problem for me.

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Small update on this issue. I can at least reproduce a slightly different error in sbt with in an updated scripted test with the latest version of bootstrap This tree depends on a snapshot version of the extracted compiler which has interfaces for both less 1.3.3 and 1.4.0 ( beta ). The plugin currently uses the 1.3.3 interface. Having this as an automated tests help so I'll keep you posted when I get a clean compile with the bootstrap less sources.

[info] [error] (compile:less) Error occured while compiling /private/var/folders/98/fjjz04qs4dl60tqxhrdpxxn40000gn/T/sbt_2d6ea9e5/latest-bootstrap/src/main/less/bootstrap.less:
[info] [error] Less error:
[info] [error] stack: org.mozilla.javascript.Undefined@6c2e1e17
[info] [error] callExtract: org.mozilla.javascript.Undefined@6c2e1e17
[info] [error] message: [ERROR] Syntax Error on line 578 (line:578, column:11)
[info] [error] column: -1
[info] [error] type: Syntax
[info] [error] callLine: org.mozilla.javascript.Undefined@6c2e1e17
[info] [error] extract: WrappedArray(null, null,  * Bootstrap v2.3.2)
[info] [error] index: org.mozilla.javascript.Undefined@6c2e1e17

from less-sbt.

hedefalk avatar hedefalk commented on July 18, 2024

Any progress on this?

from less-sbt.

softprops avatar softprops commented on July 18, 2024

hrm, could have swore I fixed this. I look into it this weekend.

from less-sbt.

hedefalk avatar hedefalk commented on July 18, 2024

I tried to use your lesst branch by installing it in my private nexus, but never got i working. Got weird errors from less compiling bootstrap 3. Went over to sbt-less and finally got a working less 1.4 compile. Thanks anyway!

from less-sbt.

softprops avatar softprops commented on July 18, 2024

I'll work on this this weekend. What version of sbt are you on? Sbt 0.13.0 is right around the corner, a number of people are on the lastest rc ( included me ). I ask be sbt compiles on 2.9.2 will 0.13 is on 2.10. I can publish a 2.9.2 version of lesst but if you don't need this for sbt 0.12.* Ill just going to target scala 2.10+

I upgraded to less 1.4.2 and wrote some tests for less's breaking change listed on http://lesscss.org/ in the 1.4 release line in the lesst project ( which the next and all future releases of less-sbt will use. So if you still see this issue in the next version of sbt is a bug with my plugin and not the my adaptations to the less compiler.

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Did the first step - http://notes.implicit.ly/post/58547977906/lesst-0-1-0. Next Ill publish a version of less-sbt that uses this. I don't think it would be hard to publish for both versions of sbt. I published less for 2.9.2 so I don't think it will be a problem

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Give this a spin and let me know if it solves the issue

addSbtPlugin("me.lessis" % "less-sbt" % "0.2.0")

from less-sbt.

softprops avatar softprops commented on July 18, 2024

And now 0.2.1! see #32

from less-sbt.

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.