3
respostas

watch com erro

Olá, quando eu faço qualquer alteração no arquivo usando watch pelo terminal. ele me acusa um erro dizendo: "

[Listen warning]: Change block raise an execption: incompatible character encodings: CP850 and UTF-8 Backtrace: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb:87:in index' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb:87:inremove_root' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb:146:in find_real_file' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb:32:inmtime' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb:134:in mtime' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb:163:inblock in dependency_updated?' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb:81:in call' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb:81:instylesheet_modified_since?' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb:69:in stylesheet_needs_update?' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:211:inblock in update_stylesheets' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:in each' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:inupdate_stylesheets' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:473:in on_file_changed' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:331:inblock in watch' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb:252:in call' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb:252:inon_change' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb:290:in block in initialize_adapter' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb:48:incall' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb:48:in poll_changed_directories' C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb:299:inblock in start_poller'

" e se eu tentar dar watch novamente ele me retorna: "

Encoding::CompatibilityError: incompatible character encodings: CP850 and UTF-8 Use --trace for backtrace. " Poderia me ajudar por favor.

Uso windows 10 Pro; Editor de Texto: Sublime;

Versão ruby : ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32] Versão sass: Sass 3.4.22 (Selective Steve) Versão compass: Compass 1.0.3 (Polaris)

Obrigado

3 respostas

Oi Marcos, tudo certo?

Tenta adicionar a linha `@charset "UTF-8" no seu arquivo.scss para ver se vai? Na primeira linha.

Abcs!

Marcos,

Caso não funcione, dê uma olhada nesse tópico. Outra aluna conseguiu achar a solução, mexendo em um arquivo de configuração do Sass.

Abcs!

Marcos,

Conseguiu resolver?