zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.

Home Page:http://zmoazeni.github.io/csscss/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csscss has problems with unicode even when ruby version is 2.0

bryanrasmussen opened this issue · 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:inblock 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:ineach_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:incheck_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:inblock 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:inwith_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:invisit_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:inblock 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:inwith_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:invisit'
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:inmap'
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:inblock 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:invisit_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:invisit_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:invisit'
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:incss_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:inrender'
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:inblock 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:inexecute'
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:inrun'
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:inload'
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:ineval'
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.