Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails 4 compass init trouble #117

Closed
idoo opened this issue Dec 11, 2013 · 23 comments
Closed

rails 4 compass init trouble #117

idoo opened this issue Dec 11, 2013 · 23 comments
Milestone

Comments

@idoo
Copy link

idoo commented Dec 11, 2013

bundle exec compass init --trace
NoMethodError on line ["223"] of /Users/ivan/.rvm/gems/ruby-2.0.0-p247/gems/compass-rails-1.1.2/lib/compass-rails.rb: undefined method config' for nil:NilClass /Users/ivan/.rvm/gems/ruby-2.0.0-p247/gems/compass-rails-1.1.2/lib/compass-rails.rb:129:inconfiguration'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:44:in configuration_for' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:22:inadd_configuration'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:107:in add_project_configuration' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:inadd_project_configuration'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/commands/installer_command.rb:9:in configure!' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:ininitialize'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/commands/stamp_pattern.rb:69:in initialize' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:innew'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in perform!' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:inrun!'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/bin/compass:30:in block in <top (required)>' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/bin/compass:44:incall'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/gems/compass-0.12.2/bin/compass:44:in <top (required)>' /Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/bin/compass:23:inload'
/Users/ivan/.rvm/gems/ruby-2.0.0-p247@global/bin/compass:23:in `

'

@idoo
Copy link
Author

idoo commented Dec 11, 2013

compass-rails (1.1.2)
  compass (>= 0.12.2)
sass-rails (4.0.1)

@craigmcnamara
Copy link
Member

Do you have a patch?

@idoo
Copy link
Author

idoo commented Dec 12, 2013

no(

@craigmcnamara
Copy link
Member

No worries, compass init is an optional step. I'll get a patch together for this in the next few days.

@idoo
Copy link
Author

idoo commented Dec 13, 2013

ok 👍

@aaronjensen
Copy link

also seeing this, it seems like it thinks rails is loaded even though it isn't.

@Edward1992
Copy link

The same problem comes to me too.
edward@edward:~/github/AngularJS-Frontend$ compass init rails . --trace
NoMethodError on line ["220"] of /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-rails-1.1.3/lib/compass-rails.rb: undefined method config' for nil:NilClass /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-rails-1.1.3/lib/compass-rails.rb:127:inconfiguration'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:44:in configuration_for' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:22:inadd_configuration'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:107:in add_project_configuration' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:inadd_project_configuration'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/installer_command.rb:9:in configure!' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:ininitialize'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/stamp_pattern.rb:69:in initialize' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:innew'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in perform!' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:inrun!'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:30:in block in <top (required)>' /home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:44:incall'
/home/edward/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:44:in <top (required)>' /home/edward/.rvm/gems/ruby-2.0.0-p353/bin/compass:23:inload'
/home/edward/.rvm/gems/ruby-2.0.0-p353/bin/compass:23:in <main>' /home/edward/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:ineval'
/home/edward/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `

'

@knightq
Copy link

knightq commented Jan 8, 2014

Same problem, but on Rails 3.2.16 on ruby 2.1.0 :-( 👍

NoMethodError on line ["220"] of /Users/andreasalicetti/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-rails-1.1.3/lib/compass-rails.rb: undefined method `config' for nil:NilClass

As @aaronjensen commented, it's like it thinks rails is loaded even though it isn't.

@webchi
Copy link

webchi commented Jan 9, 2014

Same error. Tested on ruby 1.9.3p484, rails 4.0.2, 3.2.6. Debian x86_64 GNU/Linux

bundle exec compass init rails --trace
NoMethodError on line ["220"] of /home/user/.rvm/gems/ruby-1.9.3-p484@r3/bundler/gems/compass-rails-30ca43b72a1a/lib/compass-rails.rb: undefined method config' for nil:NilClass /home/user/.rvm/gems/ruby-1.9.3-p484@r3/bundler/gems/compass-rails-30ca43b72a1a/lib/compass-rails.rb:127:inconfiguration'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:44:in configuration_for' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:22:inadd_configuration'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:107:in add_project_configuration' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:inadd_project_configuration'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/commands/installer_command.rb:9:in configure!' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:ininitialize'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/commands/stamp_pattern.rb:69:in initialize' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:innew'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in perform!' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:inrun!'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/bin/compass:30:in block in <top (required)>' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/bin/compass:44:incall'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/gems/compass-0.12.2/bin/compass:44:in <top (required)>' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/bin/compass:23:inload'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/bin/compass:23:in <main>' /home/user/.rvm/gems/ruby-1.9.3-p484@r3/bin/ruby_executable_hooks:15:ineval'
/home/user/.rvm/gems/ruby-1.9.3-p484@r3/bin/ruby_executable_hooks:15:in `

'

@squallstar
Copy link

Same error with ruby 2.0 and rails 4:

$ bundle exec compass init --trace

NoMethodError on line ["220"] of /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-rails-1.1.3/lib/compass-rails.rb: undefined method config' for nil:NilClass /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-rails-1.1.3/lib/compass-rails.rb:127:inconfiguration'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:44:in configuration_for' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:22:inadd_configuration'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:107:in add_project_configuration' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:inadd_project_configuration'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/installer_command.rb:9:in configure!' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:ininitialize'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/commands/stamp_pattern.rb:69:in initialize' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:innew'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in perform!' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:inrun!'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:30:in block in <top (required)>' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:44:incall'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/gems/compass-0.12.2/bin/compass:44:in <top (required)>' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/bin/compass:23:inload'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/bin/compass:23:in <main>' /Users/nicholas/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:ineval'
/Users/nicholas/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `

'

@kcm
Copy link

kcm commented Jan 14, 2014

Same with 3.2.16 and Ruby 2.0p353.

@JohnMorales
Copy link

pull request sent.

@idoo
Copy link
Author

idoo commented Jan 16, 2014

👍

@squallstar
Copy link

:+1

@webchi
Copy link

webchi commented Jan 17, 2014

Solve this problem by getting out compass-rails gem from :assets group. Now works fine.

@baxang
Copy link

baxang commented Jan 20, 2014

@Nahy That eliminates the error, however for me it now complains:

bundle exec compass watch
No application integration exists for rails

It seems that compass-rails is not loaded.
Rails 3.2.16 & Ruby 2.0.0-p247.

@dvdplm
Copy link

dvdplm commented Feb 10, 2014

@baxang seeing the same issue on Rails 4.0.2. :/

@dustineichler
Copy link

I had to roll back to -v="1.0.3" in order to get this to work with either Rails -v="3.2.8" and also saw this error in 4.0.2

@craigmcnamara
Copy link
Member

Rails 4 support should be solid, you can use 1.1.7 or the master branch which supports rials 3.2 and Rails 4.+

@zd-dalibor
Copy link

In rails 4.1.1 I got those errors with 'bundle exec compass init rails' command:
when compass-rails gem is not in assets group

No application integration exists for rails

when compass-rails gem is in assets group

.../lib/compass-rails.rb: undefined method `config' for nil:NilClass

I cannot install 2.0.0 alpha version because it's removed so I use latest 1.1.7 version.
http://rubygems.org/gems/compass-rails/versions/2.0.alpha.0

@Fudoshiki
Copy link

rails 4.1.6, compass-rails master
bundle exec compass init rails
No application integration exists for rails

bundle exec compass watch --trace

Compass is watching for changes. Press Ctrl-C to Stop.
LoadError on line ["1281"] of /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/sass-b330e158ea44/lib/sass/util.rb: cannot load such file -- listen
Run "gem install listen --version '~> 2.7'" to get it.
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/sass-b330e158ea44/lib/sass/util.rb:1281:in rescue in load_listen!' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/sass-b330e158ea44/lib/sass/util.rb:1274:inload_listen!'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/sass-b330e158ea44/lib/sass/plugin/compiler.rb:388:in create_listener' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/sass-b330e158ea44/lib/sass/plugin/compiler.rb:327:inwatch'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/sass_compiler.rb:46:in watch!' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/commands/watch_project.rb:41:inperform'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/commands/base.rb:18:in execute' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/commands/project_base.rb:19:inexecute'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/exec/sub_command_ui.rb:43:in perform!' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/lib/compass/exec/sub_command_ui.rb:15:inrun!'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/bin/compass:30:in block in <top (required)>' /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/bin/compass:44:incall'
/usr/local/rvm/gems/ruby-2.1.3/bundler/gems/compass-81b782c2cc14/cli/bin/compass:44:in <top (required)>' /usr/local/rvm/gems/ruby-2.1.3/bin/compass:23:inload'
/usr/local/rvm/gems/ruby-2.1.3/bin/compass:23:in <main>' /usr/local/rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:ineval'
/usr/local/rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `

'

@phyllisstein
Copy link

Hey gang! I'm still seeing this issue, with Edge Rails (currently 4.2.0.beta4), Ruby 2.1.5, and the master branch of this repo. The only appreciable difference is that I can't even get it to raise an exception: whether it's in the :assets group or the main Gemfile, bundle exec compass init rails --syntax sass returns "No application integration exists for rails." I honestly don't even know where to start debugging, and would welcome any suggestions!

@deivid-rodriguez
Copy link

Same error here, with rails 4.2.6, ruby 2.3.0 and latest compass-rails. Can we reopen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.