Compass error: File to import not found or unreadable: breakpoint

Compass error: File to import not found or unreadable: breakpoint

由于未知原因,我的 Drupal Omega 4 子主题开发环境突然停止工作。我已将问题缩小为指南针问题:

 % compass watch
>>> Compass is watching for changes. Press Ctrl-C to Stop.
    error sass/layouts/sidebar/sidebar.layout.scss (Line 3: File to import not found or unreadable: breakpoint.
Load paths:
  Compass::SpriteImporter
  /home/<myproject>/public_html/sites/all/themes/<myproject-theme>/sass
  /usr/share/rvm/gems/ruby-2.2.1@omega.<myproject-theme>/gems/compass-core-1.0.3/stylesheets
  /usr/share/rvm/gems/ruby-2.2.1@omega.<myproject-theme>/gems/compass-normalize-1.5/stylesheets
  /usr/share/rvm/gems/ruby-2.2.1@omega.<myproject-theme>/gems/susy-2.2.5/sass)
    error sass/layouts/sidebar/<myproject>-sidebar.layout.scss (Line 4: File to import not found or unreadable: breakpoint.

Guard 运行 没有错误,但未根据 scss 文件更改进行编译。

% guard start -i
07:25:07 - INFO - Guard is now watching at '/home/<myproject>/public_html/sites/all/themes/<myproject-theme>'

我尝试用

清空宝石组

rvm gemset empty

并使用 Bundler 重新安装所有内容

bundle install

我已使用此处的说明设置我的环境:

https://www.drupal.org/node/1936970

我的项目文件夹中有一个 .ruby-version 文件指定版本 2.2.1。

非常感谢大家的帮助。

问题是缺少 config.rb Compass 编译 Sass 文件所需的文件。

现在 Compass 报告已准备好采取行动:

 % guard start -i

07:27:21 - INFO - Guard::Compass is waiting to compile your stylesheets.
07:27:21 - INFO - Guard is now watching at '/home/<myproject>/public_html/sites/all/themes/<myproject-theme>'

我一定是误删了它 - 因为它包含在我的 .gitignore 中,所以我无法知道这一点。

经验教训:不要在 .gitignore!

中排除 config.rb