Solucionado (ver solução)
Solucionado
(ver solução)
5
respostas

erro no --watch

Alguém pode me ajudar com esse erro?

C:\Users\Silas>sass --watch sass estilos.scss:estilos.css

Sass is watching for changes. Press Ctrl-C to stop. error No such file or directory @ rb_sysopen - sass error No such file or directory @ rb_sysopen - estilos.scss ** ERROR: directory is already being watched! **

    Directory: C:/Users/Silas/Meus Documentos

    is already being watched through: C:/Users/Silas/Documents

    MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
    ** ERROR: directory is already being watched! **

    Directory: C:/Users/Silas/AppData/Local

    is already being watched through: C:/Users/Silas/AppData/Local

    MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
    ** ERROR: directory is already being watched! **
5 respostas

Continuação do erro

E, [2018-08-19T08:34:59.834419 #2952] ERROR -- : run() in thread failed: Permission denied @ dir_initialize - C:/Users/Silas/AppData/Local/ElevatedDiagnostics:\n C:/Ruby24-x64/lib/ruby/2.4.0/pathname.rb:442:in open' C:/Ruby24-x64/lib/ruby/2.4.0/pathname.rb:442:inforeach' C:/Ruby24-x64/lib/ruby/2.4.0/pathname.rb:442:in children' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:77:inchildren' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:15:in scan' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/change.rb:56:ininvalidate' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:67:in `change' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:27:in block in scan' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:ineach_key' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:in each' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:24:inscan' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/change.rb:56:in invalidate' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:67:inchange' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:27:in block in scan' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:ineachkey' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:in each' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:24:inscan' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/change.rb:56:in invalidate' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:67:inchange' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:27:in block in scan' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:ineachkey' C:/Ruby24-x64/lib/ruby/2.4.0/set.rb:324:in each' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/directory.rb:24:inscan' C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-listen-4.0.0/lib/sass-listen/change.rb:56:in `invalidate'

O monitoramento já está ativo, tente parar o processo anterior ou reiniciar o PC.

Bom dia Miguel, já fiz isso varias vezes e não resolveu o problema.

Ainda não consegui entender o que é preciso fazer para corrigir o problema, já verifiquei outras soluções do proprio forum mais nenhuma resolveu esse problema alguém pode me ajudar por favor?

C:\Users\Silas\Documents\Cursos Programação\Sass_Compass\site-apeperia\css>sass --trace --watch estilos.scss:estilos.css

Sass is watching for changes. Press Ctrl-C to stop. C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/importers/filesystem.rb:87:in index': incompatible character encodings: CP850 and UTF-8 (Encoding::CompatibilityError) from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/importers/filesystem.rb:87:inremove_root' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/importers/filesystem.rb:146:in find_real_file' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/importers/filesystem.rb:32:inmtime' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/staleness_checker.rb:134:in mtime' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/staleness_checker.rb:163:inblock in dependency_updated?' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/staleness_checker.rb:81:in stylesheet_modified_since?' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/staleness_checker.rb:69:instylesheet_needs_update?' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/compiler.rb:211:in block in update_stylesheets' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/compiler.rb:209:ineach' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/compiler.rb:209:in update_stylesheets' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin/compiler.rb:294:inwatch' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/plugin.rb:109:in method_missing' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/exec/sass_scss.rb:358:inwatch_or_update' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/exec/sass_scss.rb:51:in process_result' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/exec/base.rb:50:inparse' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/lib/sass/exec/base.rb:18:in parse!' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sass-3.5.7/bin/sass:13:in<top (required)>' from C:/Ruby24-x64/bin/sass:23:in load' from C:/Ruby24-x64/bin/sass:23:in

'
solução!

Resolvido aqui, vi no forum a solução da (Patricia Raposo https://cursos.alura.com.br/forum/topico-comando-watch-23464), e aparentemente funcionou.

Obrigado

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software