指南针手表:File:Class 的 ‘exists?’ 方法未定义

huangapple go评论79阅读模式
英文:

Compass watch: undefined method `exists?' for File:Class

问题

I have installed on my Ubuntu server 22.04, ruby 3.2.1, gem 3.4.10, sass 3.7.4, and compass 1.0.3 for a very small project. I followed a tutorial to get everything installed.

But when I run compass watch, I get this issue:

NoMethodError on line "89" of $HOME/.asdf/installs/ruby/3.2.1/lib/ruby/gems/3.2.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb: undefined method `exists?' for File:Class
Run with --trace to see the full backtrace

I checked my dear friend Google, but since I'm not familiar with that, I don't know where to look at... That's why I'm here ^^

Any idea to help me fix this?

Before being on Ubuntu 22.04, I was on 18.04, and it was working like a charm.

Thanks in advance.

英文:

(very not familiar with ruby/gem/sass/compass)

I have installed on my Ubuntu server 22.04, ruby 3.2.1, gem 3.4.10, sass 3.7.4 and compass 1.0.3 for a very small project. I followed a tuto to get everyting installed.

But when I run compass watch, I get this issue:

> NoMethodError on line ["89"] of $HOME/.asdf/installs/ruby/3.2.1/lib/ruby/gems/3.2.0/gems/compass-1.0.3/lib/compass/configuration/helpers.rb: undefined method `exists?' for File:Class
Run with --trace to see the full backtrace

I checked my dear friend Google, but since I'm not familiar with that, I don't know where to look at... That's why I'm here ^^

Any idea to help me to fix this?

Before being on Ubuntu 22.04, I was on 18.04 and it was working like a charm.

Thanks in advance.

答案1

得分: 7

Whatever tutorial you are following that is telling you to use compass is so incredibly out of date that I do not recommend you continue following it.

If you absolutely must continue using compass then downgrade your version of Ruby from 3.2 to 3.1 or earlier.

英文:

Whatever tutorial you are following that is telling you to use compass is so incredibly out of date that I do not recommend you continue following it.

If you absolutely must continue using compass then downgrade your version of Ruby from 3.2 to 3.1 or earlier.

huangapple
  • 本文由 发表于 2023年4月4日 04:32:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/75923557.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定