AtomLinter / linter-scss-lint

Linter plugin for SCSS, using scss-lint
36 stars 21 forks source link

Umlauts in file path caused an error #82

Open thykka opened 9 years ago

thykka commented 9 years ago

I'm copying this from scss-lint as per @trotzig's suggestion:

scss-lint was throwing this error within atom:

TypeError: "\xCC" from ASCII-8BIT to UTF-8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:in encode' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:ingenerate' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:in pretty_generate' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/reporter/json_reporter.rb:13:inreport_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:142:in block in report_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:141:ineach' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:141:in report_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:55:inscan_for_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:48:in act_on_options' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:27:inrun' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/bin/scss-lint:6:in <top (required)>' /usr/bin/scss-lint:23:inload' /usr/bin/scss-lint:23:in `

' Report this bug at https://github.com/brigade/scss-lint/issues TypeError: "\xCC" from ASCII-8BIT to UTF-8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:in encode' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:ingenerate' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:286:in pretty_generate' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/reporter/json_reporter.rb:13:inreport_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:142:in block in report_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:141:ineach' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:141:in report_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:55:inscan_for_lints' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:48:in act_on_options' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/lib/scss_lint/cli.rb:27:inrun' /Library/Ruby/Gems/2.0.0/gems/scss-lint-0.38.0/bin/scss-lint:6:in <top (required)>' /usr/bin/scss-lint:23:inload' /usr/bin/scss-lint:23:in `

' Report this bug at https://github.com/brigade/scss-lint/issues at /Users/thykka/.atom/packages/linter-scss-lint/lib/init.coffee:46:21 at process._tickCallback (node.js:367:9)

Turns out it was caused by umlauts (ä, ö) in the scss file's path. I renamed the folder and the error disappeared.

I ran a search for this, but couldn't find anything useful. Thought I'd post this here in case someone else has the same issue.

SpainTrain commented 9 years ago

Intriguing! Will check this out.