0

这是终端吐回的所有内容,带有--trace-

Errno::ENOENT on line ["670"] of /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb: No such file or directory - /Users/aristidesstaffieri/sass
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb:670:in `realpath'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/util.rb:670:in `realpath'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/importers/filesystem.rb:16:in `initialize'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:192:in `new'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:192:in `block in normalize_options'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:190:in `map'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/engine.rb:190:in `normalize_options'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/staleness_checker.rb:52:in `initialize'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:203:in `new'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:203:in `update_stylesheets'
  /Library/Ruby/Gems/2.0.0/gems/sass-3.4.2/lib/sass/plugin/compiler.rb:294:in `watch'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_compiler.rb:46:in `watch!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/watch_project.rb:41:in `perform'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/base.rb:18:in `execute'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands/project_base.rb:19:in `execute'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec/sub_command_ui.rb:15:in `run!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:30:in `block in <top (required)>'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `call'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/bin/compass:44:in `<top (required)>'
  /usr/bin/compass:23:in `load'
  /usr/bin/compass:23:in `<main>'

这仅在我更新后才开始发生,并且我的所有宝石都已更新。我已经尝试卸载并重新安装 compass/sass。有什么建议么?

4

2 回答 2

1

我相信您遇到的问题是 gem 的新更新。通过此修改,您可以返回到以前的版本。

我修改了 Gemfile。我添加了这一行gem 'compass','0.12.6'

这是我在 Gemfile 的第一行

    来源“http://rubygems.org”
    红宝石'1.9.3'

    gem 'rails', '~> 3.2.15'

    组:资产做
      宝石'sass-rails'
      宝石“指南针导轨”
      宝石'指南针','0.12.6'
      宝石“twitter-bootstrap-rails”
      宝石“丑化者”
    结尾

我认为这是您想要的,但如果不是,请根据需要多次告诉我。

于 2014-09-02T18:57:58.593 回答
1

截至 9 月 4 日的最新版本的 Sass ( 3.4.3 ) 似乎解决了这个问题(通过 Ruby 2.0.0 和 Compass 1.0.1 确认)。

您可以尝试运行gem update sass,看看它是否能解决您的问题。

于 2014-09-08T13:11:52.427 回答