jez / hpstr-theme

A Medium-like Octopress theme based on the HPSTR Jekyll theme.
GNU General Public License v3.0
63 stars 15 forks source link

uninitialized constant Sass::Script (NameError) #21

Closed yang2012 closed 7 years ago

yang2012 commented 7 years ago

Hi, when I add gem "compass" into my Gemfile, I will get an error like

.rvm/gems/ruby-2.2.4/gems/compass-core-1.0.3/lib/compass/core/sass_extensions.rb:2:in `<top (required)>': uninitialized constant Sass::Script (NameError)

Here is my Gemfile

source "https://rubygems.org"

group :development do
  gem 'rake', '~> 10.0'
  gem 'jekyll', '~> 0.12'
  gem 'rdiscount', '~> 2.0.7'
  gem 'pygments.rb', '~> 0.3.4'
  gem 'RedCloth', '~> 4.2.9'
  gem 'haml', '~> 3.1.7'
  gem 'sass', '~> 3.3'
  gem 'sass-rails', '5.0.3'
  gem 'sass-globbing', '~> 1.0.0'
  gem 'rubypants', '~> 0.2.0'
  gem 'rb-fsevent', '~> 0.9'
  gem 'stringex', '~> 1.4.0'
  gem 'liquid', '~> 2.3.0'
  gem 'directory_watcher', '1.4.1'
  gem "compass"
end

gem 'sinatra', '~> 1.4.2'

I can't figure it out what's wrong, can you help me to fix it?

jez commented 7 years ago

Hmm, the best I can really do is to show you what's in my Gemfile:

source "https://rubygems.org"

group :development do
  gem 'rake', '~> 10.0'
  gem 'jekyll', '~> 2.0'
  gem 'octopress-hooks', '~> 2.2'
  gem 'octopress-date-format', '~> 2.0'
  gem 'jekyll-sitemap'
  gem 'rdiscount', '~> 2.0'
  gem 'RedCloth', '~> 4.2.9'
  gem 'haml', '~> 4.0'
  gem 'compass', '~> 1.0.1'
  gem 'sass-globbing', '~> 1.0.0'
  gem 'rubypants', '~> 0.2.0'
  gem 'rb-fsevent', '~> 0.9'
  gem 'stringex', '~> 1.4.0'
end

gem 'sinatra', '~> 1.4.2'

There are a couple differences between yours and mine; I'm not quite if using this one is possible for you, or even if it will fix the issue. If you end up figuring it out, I'm curious to hear the solution.