簡體   English   中英

為什么我會收到斷點編譯錯誤

[英]why am I getting breakpoint compilation errors

關於 Drupal Omega 子主題創建。 我剛剛安裝了一個新的子主題並運行了 bundle install。

我的主題是想要導入以下庫

// Import external libraries.
@import "compass";
@import "breakpoint";
@import "singularitygs";
@import "toolkit-no-css";
@import "toolkit";

在運行 bundle exec guard 或 drush-ogrd 時,我收到以下編譯錯誤。 我以前做過這個沒有問題,並懷疑某個地方的 gem 不兼容,但真的不知道從哪里開始。 任何指針?


Pauls-MacBook-Pro:ambient pauldriver$ bundle exec guard
]    error sass/ambient.no-query.scss (Line 3 of sass/ambient.styles.scss: File to import not found or unreadable: breakpoint.
Load paths:
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  Compass::SpriteImporter
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/compass-core-1.0.0/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/susy-2.1.3/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-normalize-1.5/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-rgbapng-0.2.1/lib/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/toolkit-2.5.2/stylesheets
  Sass::Globbing::Importer)
    error sass/ambient.normalize.scss (Line 8: File to import not found or unreadable: toolkit/border-box.
Load paths:
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  Compass::SpriteImporter
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/compass-core-1.0.0/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/susy-2.1.3/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-normalize-1.5/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-rgbapng-0.2.1/lib/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/toolkit-2.5.2/stylesheets
  Sass::Globbing::Importer)
    error sass/ambient.styles.scss (Line 3: File to import not found or unreadable: breakpoint.
Load paths:
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  Compass::SpriteImporter
  /Users/pauldriver/Sites/ambientair/sites/all/themes/ambient/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/compass-core-1.0.0/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/susy-2.1.3/sass
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-normalize-1.5/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@global/gems/compass-rgbapng-0.2.1/lib/stylesheets
  /Users/pauldriver/.rvm/gems/ruby-1.9.3-p547@omega.ambient/gems/toolkit-2.5.2/stylesheets
  Sass::Globbing::Importer)
Compilation failed in 3 files.

我的 config.rb 文件包含以下內容

##
## This file is only needed for Compass/Sass integration. If you are not using
## Compass, you may safely ignore or delete this file.
##
## If you'd like to learn more about Sass and Compass, see the sass/README.txt
## file for more information.
##

# Default to development if environment is not set.
saved = environment
if (environment.nil?)
  environment = :development
else
  environment = saved
end

# Location of the theme's resources.
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
generated_images_dir = images_dir + "/generated"
javascripts_dir = "js"

# Require any additional compass plugins installed on your system.
require 'compass-normalize'
require 'rgbapng'
require 'toolkit'
require 'susy'
require 'sass-globbing'

##
## You probably don't need to edit anything below this.
##

# You can select your preferred output style here (:expanded, :nested, :compact
# or :compressed).
output_style = (environment == :production) ? :expanded : :nested

# To enable relative paths to assets via compass helper functions. Since Drupal
# themes can be installed in multiple locations, we don't need to worry about
# the absolute path to the theme from the server omega.
relative_assets = true

# Conditionally enable line comments when in development mode.
line_comments = (environment == :production) ? false : true

# Output debugging info in development mode.
sass_options = (environment == :production) ? {} : {:debug_info => true}

# Add the 'sass' directory itself as an import path to ease imports.
add_import_path 'sass'

Omega 4 的最新開發版本似乎解決了大多數不兼容 gem 的問題。 感謝您的幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM