haileys / twostroke

A Javascript implementation in Ruby!
MIT License
303 stars 19 forks source link

Problem compiling less.ls #7

Open fritzsche opened 12 years ago

fritzsche commented 12 years ago

Hi Charlie,

not really an issue of twostroke, just I thought I report this here in case somebody is trying the same: I just tried to compile less.js ( https://github.com/cloudhead/less.js/blob/master/dist/less-1.2.0.js ), well and it's amazing that it almost works. I just receive one syntax error in line 1997 and after looking on the source I notice that it might be an issue on less.js side as there is a missing ";" on the line before. As I understand most common Javascript VM's are ignoring such issues. What about twostroke? Good news is after manually fixing this javascript error I could compile the less framework. (have not checked jet if it works in the runtime). Thanks, Thomas

haileys commented 12 years ago

This is an issue with Twostroke lacking semicolon insertion

toadkicker commented 12 years ago

I'm looking at using this to support twitter-bootstrap-rails gem so we can remove therubyracer from being a dependency. (ref: https://github.com/seyhunak/twitter-bootstrap-rails/issues/336). This would fix a bunch of issues if we can figure out a way to run less.js without the upstream dependency on therubyracer. Any tips/advice are welcome!

stereobooster commented 12 years ago

Use https://github.com/cloudhead/less.js/blob/master/dist/less-1.3.0.js. It seems to fix this issue see