greenlaw110 / greenscript

A tool help web developers manage javascript/css rendering, including minimize and dependence management
42 stars 24 forks source link

Twitter Bootstrap 2 #34

Open jamesward opened 12 years ago

jamesward commented 12 years ago

I'm trying to get Twitter Bootstrap 2 working with GreenScript and getting Less compile errors like:

error compile less file: /public/stylesheets/bootstrap.less, error: Parse Error: Syntax Error on line 15 (line 15, column 210)

I'm just doing:

#{greenscript.css "bootstrap.less", output:'all' /}

Strange thing is that there isn't a column 210 on line 15 of the bootstrap.less file.

greenlaw110 commented 12 years ago

please report your play version and greenscript version. thx

On Tue, Jan 31, 2012 at 10:59 AM, James Ward < reply@reply.github.com

wrote:

I'm trying to get Twitter Bootstrap working with GreenScript and getting Less compile errors like:

error compile less file: /public/stylesheets/bootstrap.less, error: Parse Error: Syntax Error on line 15 (line 15, column 210)

I'm just doing:

{greenscript.css "bootstrap.less", output:'all' /}

Strange thing was there there wasn't a column 210 on line 15 of the bootstrap.less file.


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34

jamesward commented 12 years ago

play-1.2.4 greenscript-1.2.6m

Thanks for the quick response.

greenlaw110 commented 12 years ago

I cannot reproduce this issue. Here is a simple app I've created and it works fine: http://ge.tt/90zM8yC?c

On Tue, Jan 31, 2012 at 11:18 AM, James Ward < reply@reply.github.com

wrote:

play-1.2.4 greenscript-1.2.6m

Thanks for the quick response.


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34#issuecomment-3730954

jamesward commented 12 years ago

That looks like Bootstrap 1 not 2. I'll try to put together a little example.

jamesward commented 12 years ago

Here is a little sample app with the Bootstrap 2 less files: https://github.com/jamesward/bootstrap2test

greenlaw110 commented 12 years ago

This one should be fixed in the 1.2.7, could you please give it a try?

lrobinot commented 12 years ago

The problem have been fixed (from my point of view), at least for the version 2.0.0 of Bootstrap. But the version 2.0.2 (released these days) need the 1.3 version of the less compiler, as stated here : http://www.markdotto.com/2012/03/12/bootstrap-2-0-2-released/

greenlaw110 commented 12 years ago

We will need to wait for lesscss-engine updates if v1.1.5 is not using less 1.3

On Thu, Mar 15, 2012 at 12:15 AM, Ludovic ROBINOT < reply@reply.github.com

wrote:

The problem have been fixed (from my point of view), at least for the version 2.0.0 of Bootstrap. But the version 2.0.2 (released these days) need the 1.3 version of the less compiler, as stated here : http://www.markdotto.com/2012/03/12/bootstrap-2-0-2-released/


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34#issuecomment-4497718

mikenikles commented 12 years ago

Just curious, is there an update to this issue? I use Play 1.2.4 with Greenscript 1.2.8b and Bootstrap 2.0.4 and get the following error:

error compile less file: /public/stylesheets/bootstrap/less/bootstrap.less, error: Parse Error: Syntax Error on line 550 (line 550, column 17902)

Thanks,

Mike

jonathonadler commented 12 years ago

Replacing lesscss-engine-1.1.5.jar with lesscss-engine-1.3.0.jar in %PLAY_HOME%\modules\greenscript-1.2.8b\lib seems to fix the issue for me.

mikenikles commented 12 years ago

That's ok for a workaround until Greenscript updates the dependency. Thanks

jtammen commented 11 years ago

Hi,

any update on integrating version 1.3.0 of lesscss-engine? A new release of greenscript would be really appreciated!

I am using the ZURB Foundation framework and had a similar problem caused by this CSS rule:

@-moz-document url-prefix("http://") {
  // ...
}

At least that one was fixed by temporarily replacing lesscss-engine-1.1.5.jar by lesscss-engine-1.3.0.jar. Now it still complains about that CSS rule (resp the "filter" line):

div.caption { 
  background:transparent;
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
  zoom: 1;
}

I also tried to escape that rule, but that did not change anything. However, I can circumvent that problem by commenting out that rule, as I currently don't need it. Should this be reported to the lesscss-engine maintainer?

Greets, Jan.

greenlaw110 commented 11 years ago

Yes I think you need to report that issue to lesscss-engine maintainer. And yes I will try to release an new version with 1.3.0 less engine integrated. thanks a lot for reporting this

On Wed, Oct 24, 2012 at 12:01 AM, Jan Tammen notifications@github.comwrote:

Hi,

any update on integrating version 1.3.0 of lesscss-enginehttp://asual/lesscss-engine? A new release of greenscript would be really appreciated!

I am using the ZURB Foundation framework and had a similar problem caused by this CSS rule:

@-moz-document url-prefix("http://") { // ...}

At least that one was fixed by temporarily replacing lesscss-engine-1.1.5.jar by lesscss-engine-1.3.0.jar. Now it still complains about that CSS rule (resp the "filter" line):

div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000); zoom: 1;}

I also tried to escape that rule http://lesscss.org/#-escaping, but that did not change anything. However, I can circumvent that problem by commenting out that rule, as I currently don't need it. Should this be reported to the lesscss-engine maintainer?

Greets, Jan.

— Reply to this email directly or view it on GitHubhttps://github.com/greenlaw110/greenscript/issues/34#issuecomment-9700720.

jtammen commented 11 years ago

Cool!

Just for the record: found out that actually escaping the rule correctly did solve the problem. Using this works:

filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=~\"#99000000\",endColorstr=~\"#99000000\"); 

Greets, Jan.