vhyza / sass-rails-source-maps

DEPRECATED: Rails gem for generating sass source maps
MIT License
85 stars 21 forks source link

Bundler could not find compatible versions for gem "sass" #3

Closed jmuheim closed 10 years ago

jmuheim commented 10 years ago

I'm getting this when trying to install:

Bundler could not find compatible versions for gem "sass":
  In Gemfile:
    sass-rails-source-maps (>= 0) ruby depends on
      sass (>= 3.3.0.alpha.88) ruby

    compass-rails (~> 2.0.alpha.0) ruby depends on
      sass (3.2.12)

Any way to solve this?

vhyza commented 10 years ago

Hello,

what is your settings please? (version of Rails, Gemfile etc)

When I create new rails application, add in Gemfile

group :development do
  gem 'sass-rails-source-maps'
end

and run bundle install I get same error. But when I run bundle update it completes successfully.

vhyza commented 10 years ago

I tried your https://github.com/jmuheim/transition. When I freezed compass gem in your Gemfile to:

gem 'compass', '0.13.alpha.12'

I was able to run the application, but no source maps were generated for *.sass files. After quick look I figured out, that is probably because of compass-rails gem, which is overwriting SassTemplate#evaluate method. This method is overwritten by sass-rails-source-maps to generate source maps. You can take a look here:

https://github.com/Compass/compass-rails/blob/master/lib/compass-rails/patches/sass_importer.rb#L3

https://github.com/vhyza/sass-rails-source-maps/blob/master/lib/sass-rails-source-maps/sass_template.rb#L15-L54

jmuheim commented 10 years ago

Thanks, I will take a look at this soon! :+1:

vhyza commented 10 years ago

You are welcome. Closing issue for now.