`<module:Sprockets>': uninitialized constant Rails (NameError) #3

Closed
corroded opened this Issue Feb 1, 2012 · 22 comments

Comments

Projects
None yet
4 participants
@corroded

corroded commented Feb 1, 2012

In Rails 3.1.0

rails new compassrails
cd compassrails

add gem 'compass-rails' to assets as said in README, then run bundle

bundle exec compass init explodes

Stacktrace:

bundle exec compass init
/Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:7:in `<module:Sprockets>': uninitialized constant Rails (NameError)
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:1:in `<top (required)>'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails/railtie.rb:1:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails/railtie.rb:1:in `<top (required)>'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails.rb:8:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails.rb:8:in `<top (required)>'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass-rails.rb:1:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass-rails.rb:1:in `<top (required)>'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `each'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `each'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler.rb:120:in `require'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/compass-0.12.rc.0/bin/compass:25:in `<top (required)>'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/bin/compass:19:in `load'
    from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/bin/compass:19:in `<main>'
@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 1, 2012

Owner

Il look into this soon thanks for reporting

Owner

scottdavis commented Feb 1, 2012

Il look into this soon thanks for reporting

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 1, 2012

Owner

3.1.0 or 3.1.3?

Owner

scottdavis commented Feb 1, 2012

3.1.0 or 3.1.3?

@corroded

This comment has been minimized.

Show comment Hide comment
@corroded

corroded Feb 1, 2012

3.1.0. Should I have been using 3.1.3?

corroded commented Feb 1, 2012

3.1.0. Should I have been using 3.1.3?

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 1, 2012

Owner

im not having any issues in 3.1.3. 3.1.0 is know for having a bug that wasn't allowing the asset group to load rails if i remember correctly you may want to consider uping the version to 3.1.3

Owner

scottdavis commented Feb 1, 2012

im not having any issues in 3.1.3. 3.1.0 is know for having a bug that wasn't allowing the asset group to load rails if i remember correctly you may want to consider uping the version to 3.1.3

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 1, 2012

Owner

it was this commit maybe i need to make a special case for 3.1.0

rails/rails@d68884f

Owner

scottdavis commented Feb 1, 2012

it was this commit maybe i need to make a special case for 3.1.0

rails/rails@d68884f

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 1, 2012

Owner

this is a regression bug and im still trying to think how im going to deal with it

Owner

scottdavis commented Feb 1, 2012

this is a regression bug and im still trying to think how im going to deal with it

@corroded

This comment has been minimized.

Show comment Hide comment
@corroded

corroded Feb 2, 2012

This may be for another issue, but I have upgraded to 3.1.3 and successfully managed to do bundle exec compass init --syntax sass

Problem now is:

File to import not found or unreadable: compass/reset.

seems like an existing issue with Compass?

chriseppstein/compass#654

I am wondering though how this seems to work for most people(seeng there aren't any issues on this here yet).

corroded commented Feb 2, 2012

This may be for another issue, but I have upgraded to 3.1.3 and successfully managed to do bundle exec compass init --syntax sass

Problem now is:

File to import not found or unreadable: compass/reset.

seems like an existing issue with Compass?

chriseppstein/compass#654

I am wondering though how this seems to work for most people(seeng there aren't any issues on this here yet).

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 2, 2012

Owner

what OS?

Owner

scottdavis commented Feb 2, 2012

what OS?

@corroded

This comment has been minimized.

Show comment Hide comment
@corroded

corroded Feb 2, 2012

OSX Lion. I'm not sure but it suddenly worked when I modified the Gemfile and added the gem 'compass-rails' before loading sass-rails. Weird.

corroded commented Feb 2, 2012

OSX Lion. I'm not sure but it suddenly worked when I modified the Gemfile and added the gem 'compass-rails' before loading sass-rails. Weird.

@micahalcorn

This comment has been minimized.

Show comment Hide comment
@micahalcorn

micahalcorn Feb 8, 2012

Same problem here. I can confirm that the following setup works:

'rails', '3.1.0'
'sass-rails', '3.1.0'
'compass', '0.12.alpha.4'

Compass rc1 breaks it. I would move to rails 3.2.x, but there are dependency confusions with other gems.

Same problem here. I can confirm that the following setup works:

'rails', '3.1.0'
'sass-rails', '3.1.0'
'compass', '0.12.alpha.4'

Compass rc1 breaks it. I would move to rails 3.2.x, but there are dependency confusions with other gems.

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 8, 2012

Owner

How about 3.1.3?

Sent from my iPhone

On Feb 8, 2012, at 2:27 PM, Micah Alcornreply@reply.github.com wrote:

Same problem here. I can confirm that the following setup works:

'rails', '3.1.0'
'sass-rails', '3.1.0'
'compass', '0.12.alpha.4'

Compass rc1 breaks it. I would move to rails 3.2.x, but there are dependency confusions with other gems.


Reply to this email directly or view it on GitHub:
#3 (comment)

Owner

scottdavis commented Feb 8, 2012

How about 3.1.3?

Sent from my iPhone

On Feb 8, 2012, at 2:27 PM, Micah Alcornreply@reply.github.com wrote:

Same problem here. I can confirm that the following setup works:

'rails', '3.1.0'
'sass-rails', '3.1.0'
'compass', '0.12.alpha.4'

Compass rc1 breaks it. I would move to rails 3.2.x, but there are dependency confusions with other gems.


Reply to this email directly or view it on GitHub:
#3 (comment)

@micahalcorn

This comment has been minimized.

Show comment Hide comment
@micahalcorn

micahalcorn Feb 8, 2012

In Rails 3.1.3 I get "undefined method `sass_config'" regardless of whether it is compass alpha.4 or rc1.

In Rails 3.1.3 I get "undefined method `sass_config'" regardless of whether it is compass alpha.4 or rc1.

@scottdavis

This comment has been minimized.

Show comment Hide comment
@chriseppstein

This comment has been minimized.

Show comment Hide comment
@chriseppstein

chriseppstein Feb 26, 2012

Owner

What's the status here?

Owner

chriseppstein commented Feb 26, 2012

What's the status here?

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 26, 2012

Owner

Rails 3.1.0 had a bug in it they did a quick fix for 3.1.1

Owner

scottdavis commented Feb 26, 2012

Rails 3.1.0 had a bug in it they did a quick fix for 3.1.1

@chriseppstein

This comment has been minimized.

Show comment Hide comment
@chriseppstein

chriseppstein Feb 26, 2012

Owner

So We can close this bug? Or should we try to emit an error message?

Owner

chriseppstein commented Feb 26, 2012

So We can close this bug? Or should we try to emit an error message?

@scottdavis

This comment has been minimized.

Show comment Hide comment
@scottdavis

scottdavis Feb 26, 2012

Owner

I'm not sure tbh

Sent from my iPhone

On Feb 26, 2012, at 5:09 PM, Chris Eppsteinreply@reply.github.com wrote:

So We can close this bug? Or should we try to emit an error message?


Reply to this email directly or view it on GitHub:
#3 (comment)

Owner

scottdavis commented Feb 26, 2012

I'm not sure tbh

Sent from my iPhone

On Feb 26, 2012, at 5:09 PM, Chris Eppsteinreply@reply.github.com wrote:

So We can close this bug? Or should we try to emit an error message?


Reply to this email directly or view it on GitHub:
#3 (comment)

@corroded

This comment has been minimized.

Show comment Hide comment
@corroded

corroded Feb 27, 2012

I would suggest an error message at least to tell people to update or what compatible gem to use. Probably say that they need a specific rails, compass and/or compass-rails gem?

I just ran my app again and it can't import compass reset again. WIll have to try which of these gem combination versions work.

I would suggest an error message at least to tell people to update or what compatible gem to use. Probably say that they need a specific rails, compass and/or compass-rails gem?

I just ran my app again and it can't import compass reset again. WIll have to try which of these gem combination versions work.

@chriseppstein

This comment has been minimized.

Show comment Hide comment
@chriseppstein

chriseppstein Feb 27, 2012

Owner

@corroded The installation instructions should be quite clear: https://github.com/Compass/compass-rails/blob/stable/README.md Please read them and let me know how they work out.

Owner

chriseppstein commented Feb 27, 2012

@corroded The installation instructions should be quite clear: https://github.com/Compass/compass-rails/blob/stable/README.md Please read them and let me know how they work out.

@corroded

This comment has been minimized.

Show comment Hide comment
@corroded

corroded Feb 27, 2012

this is what i turne to when it didn't work last weekend, but i will try again and update.

this is what i turne to when it didn't work last weekend, but i will try again and update.

@chriseppstein

This comment has been minimized.

Show comment Hide comment
@chriseppstein

chriseppstein Feb 27, 2012

Owner

I've made a few updates to the readme to clarify the installation. hopefully they will help.

Owner

chriseppstein commented Feb 27, 2012

I've made a few updates to the readme to clarify the installation. hopefully they will help.

@chriseppstein

This comment has been minimized.

Show comment Hide comment
@chriseppstein

chriseppstein Feb 27, 2012

Owner

@corroded Thank you for your help!

Owner

chriseppstein commented Feb 27, 2012

@corroded Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment