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

Erro se fizer @import "compass/utilities";

Nesta aula, o professor pede para utilizar o border radius contido em http://compass-style.org/examples/compass/css3/border_radius/

Pede para incluir

@import "compass/utilities";

Entretanto, sempre que utilizo essa linha de código, o meu CSS "morre". Meu arquivo estilos.css fica com o seguinte código (código muito grande, cortado no final para comportar o limite de caracteres do fórum):

/*
Errno::ENOENT: No such file or directory @ rb_sysopen - C:/Users/mauri/Documents/Alura/Front End/Sass e Compass/site-apeperia/.sass-cache/75fcaf1b4852ceb732871195e41567cc2a7d8997/C%058/Ruby25-x64/lib/ruby/gems/2.5.0/gems/compass-core-1.0.3/stylesheets/compass/typography/lists/_horizontal-list.scssc20190201-13736-d79cgu

Backtrace:
C:/Ruby25-x64/lib/ruby/2.5.0/tempfile.rb:133:in `initialize'
C:/Ruby25-x64/lib/ruby/2.5.0/tempfile.rb:133:in `open'
C:/Ruby25-x64/lib/ruby/2.5.0/tempfile.rb:133:in `block in initialize'
C:/Ruby25-x64/lib/ruby/2.5.0/tmpdir.rb:128:in `create'
C:/Ruby25-x64/lib/ruby/2.5.0/tempfile.rb:131:in `initialize'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/util.rb:1253:in `new'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/util.rb:1253:in `atomic_create_and_write_file'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb:39:in `_store'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb:51:in `store'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb:19:in `block in store'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb:19:in `each'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb:19:in `store'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb:420:in `_to_tree'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb:315:in `to_tree'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:327:in `block in visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:88:in `block in with_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:115:in `with_frame'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:88:in `with_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:326:in `visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb:36:in `visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:79:in `block in with_base'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:115:in `with_frame'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:79:in `with_base'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:162:in `visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:329:in `block (2 levels) in visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:329:in `map'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:329:in `block in visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:88:in `block in with_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:115:in `with_frame'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:88:in `with_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:326:in `visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb:36:in `visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:79:in `block in with_base'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:115:in `with_frame'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb:79:in `with_base'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:162:in `visit'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:329:in `block (2 levels) in visit_import'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb:329:in `map'

Já no prompt de comando, o seguinte erro:

error css/estilos.scss (C:/Ruby25-x64/lib/ruby/2.5.0/tempfile.rb:133:in `initialize': No such file or directory @ rb_sysopen - C:/Users/mauri/Documents/Alura/Front End/Sass e Compass/site-apeperia/.sass-cache/75fcaf1b4852ceb732871195e41567cc2a7d8997/C%058/Ruby25-x64/lib/ruby/gems/2.5.0/gems/compass-core-1.0.3/stylesheets/compass/typography/lists/_horizontal-list.scssc20190201-13736-d79cgu)

5 respostas

Oi Maurício, não sei se é obrigatório, mas no link da documentação ele sempre importa o compass/css3 antes, no seu código, você o importa também?

Se eu colocar essa importação, dá erro.

Mas eu segui o curso sem a importação e aparentemente não houve alteração no resultado.

Maurício, pelo que andei testando, existe uma incompatibilidade do sass mais recente com o compass. Então acho que isso deve estar acontecendo com você e os erros não estão ajudando muito.

Você instalou o Sass e o Compass separadamente?

No prompt, dei o comando gem install sass e depois de instalado, gem install compass.

solução!

Deve ser isso, eu testei desinstalar os dois, depois instalar apenas o compass, ele já instala uma versão do sass compatível. Tenta fazer isso pra ver se funciona pra você também por favor?

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