Compass compile results in undefined method `sub' for nil:NilClass - sass

When I try to run the compile command below for compass I get an error saying sub is undefined for nil:Nilclass.
Command
compass compile hack-stack/app/styles --relative-assets --sass-dir hack-stack/app/styles --output-style expanded --images-dir images --css-dir public
Error
compass-0.12.6/lib/compass/compiler.rb: undefined method `sub' for nil:NilClass
I'm running ruby version 2.0.0p0 and compass version 0.12.6.
What is wrong with the command I'm running?

You need the compass pre-release.
gem install compass --pre

Related

Ruby undefined local variable byebug

I'm executing the file app.rb in my rails project and trying to step through it using the byebug gem, but I get an error saying 'byebug' is an undefined local variable. I'm running the code using the command 'ruby app.rb'. Is there a different way to step through a ruby file when executing it this way via the command line?
$ bundle install
Fetching gem metadata from https://rubygems.org/.....
Resolving dependencies...
Using byebug 6.0.2
Installing pg 0.18.3
Using bundler 1.6.2
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ ruby app.rb
app.rb:17:in `block in <main>': undefined local variable or method `byebug' for main:Object (NameError)
from app.rb:15:in `glob'
from app.rb:15:in `<main>'
Looks like I just had to add require "byebug" at the top my app.rb file.
Another debugging option is the debugger gem:
require 'debugger'; debugger
https://github.com/cldwalker/debugger

"NoMethodError: undefined method `specificity' for [:not(.block-layered-nav)]:Array"

This is in addition to this post: Can't compile rwd skin SCSS in Magento CE 1.9
Windows 8.1 / PowerShell
Compass 1.0.1 (Polaris)
Sass 3.4.6 (Selective Steve)
ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32]
I removed the " from a:not(".button") > a:not(.button)
New error:
"NoMethodError: undefined method `specificity' for [:not(.block-layered-nav)]:Array";
Commented out the block then I get:
"NoMethodError: undefined method `specificity' for [:not(:last-child)]:Array"
This appears to be a known issue with Sass 3.4.6. You'll need to downgrade to 3.4.5 until this is fixed.

Sass --watch throwing the error "NameError: uninitialized constant Listen::Listener"

I'm running;
sass --watch --style compressed --sourcemap css/sass:css
And I'm getting;
NameError: uninitialized constant Listen::Listener
Running it with --trace gives me;
>>> Sass is watching for changes. Press Ctrl-C to stop.
/usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/plugin/compiler.rb:308:in `create_listener': uninitialized constant Listen::Listener (NameError)
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/plugin/compiler.rb:233:in `watch'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/plugin.rb:108:in `send'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/plugin.rb:108:in `method_missing'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/exec.rb:509:in `watch_or_update'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/exec.rb:346:in `process_result'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/exec.rb:43:in `parse'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/../lib/sass/exec.rb:22:in `parse!'
from /usr/lib64/ruby/gems/1.8/gems/sass-3.3.0.rc.3/bin/sass:13
from /usr/bin/sass:19:in `load'
from /usr/bin/sass:19
I'm having difficulty working out how to troubleshoot this; does it look to be an error within my SCSS files and how I combine them, or a problem with my sass gem / installation?
Edit: Version details
Sass 3.3.0.rc.3 (Maptastic Maple)
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
The issue seems to be a known problem with RC3 of Sass 3.3, which I'm trying to use for Sourcemaps support. I use an earlier RC on another box and it works correctly, so tried installing RC2 here and it solves the issue.
sudo gem uninstall sass
...
sudo gem install sass -v 3.3.0.rc.2

NoMethodError: undefined method 'perform' for nil:nilClass

NoMethodError: undefined method 'perform' for nil:nilClass
The message above is what I'm getting from my command line. This is after a type in my path and then the sass --watch input.scss:output.css then it returns the above error message.
SASS version: 3.2.14
Ruby version: 2.0.0 (The most recent version)
Windows 8
Using a localhost and a testing server.
I need help! :)
Hi this is "usually" a problem with your sass code and not with the compiler itself. Track back a few steps and see if you added any unusual code like IE filters etc.
You can refer here for more
Sass error on compilation NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace

undefined method `ruby' for #<Bundler::Dsl:0x007fc17c3fc6c8> (NoMethodError)

Just pulled latest code and now getting:
...my_app/Gemfile:2:in `evaluate':
undefined method `ruby' for #<Bundler::Dsl:0x007fc17c3fc6c8> (NoMethodError)
The ruby method that allows you to specify the version of Ruby your project should use was only added in Bundler 1.2. You’ve got a project with a Gemfile that uses this new ruby method, but have an old version of Bundler. You just need to get Bundler 1.2 with
gem install bundler
and you should be good to go.

Resources