由于未知原因,我的Drupal Omega 4 subtheme开发环境突然停止工作。我已将问题缩小到指南针问题:
% 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>'
我尝试用
清空gemset rvm gemset empty
并使用Bundler重新安装所有内容
bundle install
我已使用此处的说明来设置我的环境:
https://www.drupal.org/node/1936970
我的项目文件夹中有一个.ruby-version
文件,指定版本2.2.1。
非常感谢所有人的帮助。
答案 0 :(得分:0)
问题是Compass需要编译Sass文件时缺少config.rb
文件。
现在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中,我无法知道这一点。
获得的经验:不要在config.rb
中排除.gitignore
!