Skip to content

Instantly share code, notes, and snippets.

@andywenk
Created July 13, 2011 10:40
Show Gist options
  • Save andywenk/1080072 to your computer and use it in GitHub Desktop.
Save andywenk/1080072 to your computer and use it in GitHub Desktop.
error while converting less to scss
using ruby-1.9.2-p180, rails (3.0.7), haml (3.1.2) and sass (3.1.4, 3.1.3)
$ sass-convert --from less --to scss --recursive . --trace
* NOTE: Sass and Less are different languages, and they work differently.
* I'll do my best to translate, but some features -- especially mixins --
* should be checked by hand.
convert ./qraex.less
overwrite ./qraex.scss
/Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:40:in `alias_method': undefined method `build' for module `Less::StyleSheet::Mixin4' (NameError)
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:40:in `<module:Mixin4>'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:14:in `<module:StyleSheet>'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:9:in `<module:Less>'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/less.rb:5:in `<top (required)>'
from /Users/duke/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/duke/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:624:in `block in process_file'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/util.rb:297:in `silence_sass_warnings'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:619:in `process_file'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:589:in `block in process_directory'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:564:in `glob'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:564:in `process_directory'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:529:in `process_result'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:41:in `parse'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/lib/sass/exec.rb:21:in `parse!'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.4/bin/sass-convert:7:in `<top (required)>'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/bin/sass-convert:19:in `load'
from /Users/duke/.rvm/gems/ruby-1.9.2-p180/bin/sass-convert:19:in `<main>'
@elfassy
Copy link

elfassy commented Oct 11, 2011

I'm getting the same thing, did you find a workaround?

@andywenk
Copy link
Author

uhh ... that's too long ago to remember. I think I used the original css file and transfomed it directly to sass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment