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

Running compass unpack bootstrap fails #70

Closed
bburton opened this issue Feb 20, 2012 · 1 comment
Closed

Running compass unpack bootstrap fails #70

bburton opened this issue Feb 20, 2012 · 1 comment

Comments

@bburton
Copy link

bburton commented Feb 20, 2012

Running compass unpack bootstrap should unpack all files into ./extensions/bootstrap under the compass project root.

Steps to Reproduce

  1. gem install bootstrap-sass
  2. Add: require 'bootstrap-sass' to top of config.rb
  3. mkdir extensions
  4. Run compass frameworks to ensure bootstrap is listed
  5. Attempt to unpack: compass unpack bootstrap

Expected Result

All bootstrap files extracted into ./extensions/bootstrap.

Actual Result

$ compass unpack bootstrap --trace

NoMethodError on line ["47"] of c: undefined method 'size' for nil:NilClass
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/commands/unpack_extension.rb:45:in 'each'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/commands/unpack_extension.rb:45:in 'perform'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/commands/base.rb:18:in 'execute'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/commands/project_base.rb:19:in 'execute'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/exec/sub_command_ui.rb:43:in 'perform!'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/lib/compass/exec/sub_command_ui.rb:15:in 'run!'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/bin/compass:25:in 'block in <top (required)>'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/bin/compass:39:in 'call'
  c:/Ruby192/lib/ruby/gems/1.9.1/gems/compass-0.11.7/bin/compass:39:in '<top (required)>'
  c:/Ruby192/bin/compass:19:in 'load'
  c:/Ruby192/bin/compass:19:in '<main>'

Environment

  • Msys Git on Windows 7
  • ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
  • sass 3.1.15
  • compass 0.11.7
@JohnAlbin
Copy link
Contributor

I was getting this same error on my own Compass extension. The Compass docs for "Stylesheet and Template Locations" are not entirely correct: http://compass-style.org/help/tutorials/extensions/

The fix was to add :path to the Compass registration function. (i.e. add :path in addition to :stylesheets_directory and :templates_directory).

trisweb added a commit that referenced this issue Feb 20, 2013
Fix compass unpack error. Fixes #70
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

No branches or pull requests

3 participants