thisduck / ruby-less-js

Ruby Less.js Compiler
11 stars 3 forks source link

got a compile error when using 'darken(red, 20%)' #4

Open cactis opened 12 years ago

cactis commented 12 years ago

Got a compile error when using 'darken(red, 20%)'

ExecJS::ProgramError: [object Object]
    from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb:49:in `rescue in block in call'
    from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb:43:in `block in call'
    from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb:80:in `block in lock'
    from /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.2/lib/v8/c/locker.rb:13:in `Locker'
    from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb:78:in `lock'
    from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ruby_racer_runtime.rb:42:in `call'
    from /usr/local/lib/ruby/gems/1.9.1/gems/less-js-0.1.1/lib/less_js.rb:48:in `compile'
    from (irb):31
    from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
    from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
    from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
thisduck commented 12 years ago

Sorry for the late response. I just pushed less-js-source v 1.3.0, maybe that will help solve this problem?

thisduck commented 12 years ago

Alternatively, try using the https://github.com/metaskills/less-rails gem.