英文:
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
File.exists?
andDir.exists?
were removed from Ruby 3.2- The compass gem hasn't been updated in 9 years and is no longer actively maintained
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.
英文:
File.exists?
andDir.exists?
were removed from Ruby 3.2- The compass gem hasn't been updated in 9 years and is no longer actively maintained
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论