csscss has problems with unicode even when ruby version is 2.0
bryanrasmussen opened this issue · 1 comments
Hi,
I get the following message from csscss when I try to analyze an sass file
csscss www/landbrugsavisen-dk/themes/lm/sass/screen.scss > report2.txt
www/landbrugsavisen-dk/themes/lm/sass/_tools.scss:118: Invalid US-ASCII character "\xC2" (Sass::SyntaxError)
from www/landbrugsavisen-dk/themes/lm/sass/screen.scss:1
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:1265:in rescue in block in find_encoding_error' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:1262:in
block in find_encoding_error'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:1261:in each' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:1261:in
each_with_index'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:1261:in find_encoding_error' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/util.rb:838:in
check_sass_encoding'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/engine.rb:423:in check_encoding!' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/engine.rb:379:in
_to_tree'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/engine.rb:299:in to_tree' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:306:in
block in visit_import'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:88:in block in with_import' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:115:in
with_frame'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:88:in with_import' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:305:in
visit_import'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in visit' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:152:in
block in visit'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:79:in block in with_base' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:115:in
with_frame'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/stack.rb:79:in with_base' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:152:in
visit'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in block in visit_children' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in
map'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:52:in visit_children' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:161:in
block in visit_children'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:173:in with_environment' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:160:in
visit_children'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in block in visit' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:180:in
visit_root'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/base.rb:36:in visit' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:151:in
visit'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/visitors/perform.rb:8:in visit' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/root_node.rb:36:in
css_tree'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/tree/root_node.rb:20:in render' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/sass-3.4.0/lib/sass/engine.rb:268:in
render'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:177:in load_sass_file' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:30:in
block in execute'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:24:in map' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:24:in
execute'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:17:in run' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/lib/csscss/cli.rb:200:in
run'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/gems/csscss-1.3.3/bin/csscss:4:in <top (required)>' from /home/brr/.rvm/rubies/ruby-2.0.0-p481/bin/csscss:23:in
load'
from /home/brr/.rvm/rubies/ruby-2.0.0-p481/bin/csscss:23:in <main>' from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/bin/ruby_executable_hooks:15:in
eval'
from /home/brr/.rvm/gems/ruby-2.0.0-p481@global/bin/ruby_executable_hooks:15:in `
However I am able, with 2.0 to compile using either compass or sass.
Thanks,
Bryan
@bryanrasmussen that looks like an error thrown from sass, not csscss.