Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8044583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:16:32+00:00 2026-06-05T05:16:32+00:00

Rails 3.0.9. In Gemfile: gem ‘compass-rails’ (1.0.1) gem ‘sass’ (3.0.19) … group :development, :test

  • 0

Rails 3.0.9.

In Gemfile:

gem 'compass-rails' (1.0.1)
gem 'sass' (3.0.19)
...

group :development, :test do
  gem 'guard' (1.0.3)
  gem 'guard-sass' (0.6.0)
  ...
end

In this configuration the error is:

ERROR: Sass > Syntax error: File to import not found or unreadable: compass.
              Load paths:
                /var/www/inbox/public
                /var/www/inbox/public/images
                /var/www/inbox/public/images/intro
                ...

(generally I can see that the path to compass is missing (i.e. ...ruby-1.9.3-p194-perf/gems/compass-0.12.1/frameworks/compass/stylesheets is not there), so somehow compass is not being loaded and I don’t know what to do to make it load.

When I trade guard-sass for guard-compass the error is:

ERROR: Rails.root is nil! (RuntimeError)
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/util.rb:370:in `rails_root'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin/rails.rb:11:in `default_options'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin/configuration.rb:33:in `options'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin/compiler.rb:38:in `initialize'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin.rb:63:in `new'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin.rb:63:in `compiler'
/home/jkl/.rvm/gems/ruby-1.9.3-p194-perf/gems/sass-3.1.19/lib/sass/plugin.rb:120:in `options'
...

I want this for guard-livereload to work properly whenever I update a .sass file.

Note, that normally compass works properly. Upon page refresh new CSS is being generated from SASS files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:16:33+00:00Added an answer on June 5, 2026 at 5:16 am

    This happens because guard-sass hardcodes SASS import paths only to subdirectories of the current directory (see https://github.com/hawx/guard-sass/blob/ac65c06fb0ea237713197730196d30ac47840bbf/lib/guard/sass.rb#L20 in the latest version 0.6.0) thus importing SASS from Compass is impossible (compass paths are not in the load paths of SASS).

    The workaround for that is to override the :load_paths setting. Here’s how I do it:

      guard 'sass', 
        :input => 'app/assets/stylesheets', 
        :output => 'public/stylesheets', 
        :load_paths => Dir.glob(File.join(Gem.dir, "gems", "compass*", "frameworks/blueprint/stylesheets")) + Dir.glob(File.join(Gem.dir, "gems", "compass*", "frameworks/compass/stylesheets"))
    

    Or just upgrade to version 0.7+, where the above should be no longer necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my Gemfile gem 'rails', '3.0.0' ... gem 'haml-rails' gem 'jquery-rails' group :test
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem
I want to use the last version of rails, in my Gemfile: gem 'rails',
I using rails 3.0.9. My Gemfile: gem 'ajaxful_rating', :git => 'git://github.com/edgarjs/ajaxful-rating.git', :branch => rails3
Here is my gemfile: source 'https://rubygems.org' gem 'rails', '3.2.2' # Bundle edge Rails instead:
I'm trying to set up cucumber for rails. I included this in my Gemfile
I want to write a gem that, once bundled to a Rails 3.1 Gemfile,
I have the following in my Gemfile : gem 'rspec-rails', '2.8.1' Is there a
In app with (Gemfile ): gem devise, >= 2.1.2 gem 'rails', '3.2.8' gem 'jquery_mobile_rails'
I add this to Gemfile: gem 'omniauth-facebook' Then I run bundle update . No

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.