sassdrupal-themingguardbreakpoint-sass

why am I getting breakpoint compilation errors


Regarding Drupal Omega subtheme creation. I have just installed a new sub theme and have run bundle install.

My theme is wanting the import the following libraries

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

When it comes to running either bundle exec guard or drush-ogrd I get the following compilation errors. I have done this before without problems and suspect a gem incompatibility somewhere but don't really know where to go from here. Any pointers?


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.

My config.rb file contains the following

##
## 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'

Solution

  • The latest dev version of Omega 4 seems to fix most of the problems with incompatible gems. Thanks for for help with this.