I am a newb to the command line. The furthest I have taken it was to install the sass version of Foundation successfully. I want to try out Susy to see if it suites my needs better. I was following the 11 videos series on Susy Tutorials on Level Up Tuts by Scott Tolinski. I followed him step by step during the installation process all the way up until the "compass watch" command within my root folder. I was then thrown this error:
NoMethodError on line ["31"] of /Users/bradgabel/.rvm/gems/ruby-2.0.0-p247/gems/compass-1.0.0.rc.0/lib/compass/sass_compiler.rb: undefined method `on_compilation_starting' for #Sass::Plugin::Compiler:0x007fe4a41def80>
Run with --trace to see the full backtrace
The gems I have installed are:
compass (1.0.0.rc.0, 0.12.7)
compass-core (1.0.0.rc.0)
compass-import-once (1.0.4)
sass (3.4.0.rc.2, 3.2.19)
susy (2.1.3)
Try to put this on your sass file.
#import "susyone";
hope can solve your problem.
I am also having issues using compass watch from the command line but mine was after I updated my susy / sass gems. I have found that using preros was much easier and you can configure it to use the same config.rb file + your system ruby gems without having to navigate the command line. Best of luck.
Related
I am starting a new project using materializecss. I wanted to use the Sass setup but when I run: gem 'materialize-sass' I get the following error.
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command materialize-sass
I have ruby installed as I use Sass on a daily basis so I am not exactly sure what the issue is here.
Any help would be greatly appreciated.
I have a similar issue, but not quite the same.
It looks like you need the gem installed first.
Run
gem install materialize-sass
-to install seperately, as per https://github.com/mkhairi/materialize-sass
I'm trying to get Susy 2 to work on my computer. I have tried several ways of installing but none of them seem to completely work.
First attempt:
Installed compass, susy and sass manually through a gem install compass etc. I then created a project (compass create) and included the #import 'susy'. All seemed well but then the span mixin would not work.
Second attempt:
Uninstalled compass, sass and susy. Installed the gem compass-susy-plugin. Created a compass project with -r susy -u susy. This time span worked but the susy-grid-background mixin was undefined.
Third attempt:
Uninstalled compass susy plugin, compass and sass. Installed sass, susy and the gem compass --pre. Now the span mixin works but the susy-grid-background mixin is undefined. We are really not getting this. It is supposed to be really easy but something is going terribly wrong here.
I now have this Gem list:
Compass (1.0.0.alpha.19),
Sass (3.3.8, 3.2.19),
Susy (2.1.2)
I have tested this on two different computers (mac and windows). Same results.
My screen.scss has a include of base and in the base there is an include of susy. Config.rb has the require susy in it. There is no package.json file.
I hope someone has some pointers.
If it's just the grid that's the problem, I use:
#include container(show);
or
#include container(show overlay);
Have you looked up the documentation on http://susy.readthedocs.org/en/latest/ ?
I am having a small issue using Susy in that it seems to be using the old syntax.
I have the latest version of SASS (3.3.6). I have the latest version of SUSY (2.1.2). I have the latest version of Codekit (1.9.3).
I have included this in my global.rb file:
require "susy";
I have also imported this as below:
#import 'susy';
So everything should be fine. Using standard variables for the setup I have added the following code to a simple div block:
#include span(5);
Which should span the block 5 columns out of 10. Simple enough but I get an error:
Undefined mixin 'span'
Correct me if I am wrong but is this not the new syntax, as shown here:
http://susydocs.oddbird.net/en/latest/install/
If I use this:
#include span-columns(5 omega);
Everything is fine. But this is using the old syntax for Susy One. Am I missing the obvious here? I would appreciate any direction.
After lots of uinstalling gems and reinstalling gems I was able to get things working.
I used the following:
sudo gem uninstall compass
sudo gem install compass --pre
This seems to have fixed the problem for me.
So these are the gems I have installed:
Compass (1.0.0.alpha.19)
Sass (3.3.8, 3.2.19)
Susy (2.1.2)
I've been using Sass 3.2.13.
I want to try out the sourcemap generation in 3.3, so I installed 3.3.
'gem list | grep sass' returns
sass (3.3.0.rc.5, 3.2.14)
I would like to invoke sass 3.3 from the commandline. I'm not using sass from a within a ruby project.
I discovered that format should work:
gem_name __versionNum__ --opts
So, I've tried this:
sass _3.3.0.rc.5_ --watch --sourcemap sass/site.sass: css/site2.css
The resulting stack trace returns
"Could not find sass (= 3.3.0.rc.5)..."
I've tried variations, like 3.3.0, 3.3, but these return stack traces with the same message about not being able to find the specified version.
Turns out that I was calling the wrong 'sass' binary.
Instead of using my rbenv gem, I was using 'sass' from '/usr/local/bin'.
I've deleted system sass. Now when I call 'sass' I get the version offered by the gem I installed via rbenv.
Yes, I know I shouldn't be deleting system binaries. It's a dirty, dirty thing to do. In the desperate case of removing system ruby from ubuntu, I think the measure is justifiable.
I am having problems when creating a new compass project (Windows 7). I get this:
C:\>compass create a
create config.rb
Errno::EACCES on line ["891"] of C: Permission denied - (C:/a/config.rb20140321-6828-1g0ytlc, C:/a/config.rb)
Run with --trace to see the full backtrace
I have tried to start cmd with "Run as administrator", I have tried to delete compass, sass and ruby, and reinstalled without any luck. Anyone else having problems or know a solution to this irritating problem?
I was using the latest version (21.03.2014) of compass v.0.12.4...
Downgraded to v.0.12.2 everything worked fine!
Looks like a bug?
To downgrade:
$ gem uninstall compass
$ gem uninstall sass
$ gem install compass -v 0.12.2
$ gem install sass -v <rev>
Please update to Sass 3.2.18 and let me know if that fixes it.
Is this linked to
Compass/Sass writing files with "No Access" permissions for Everyone group on OSX?
If so, updating to 3.2.18 hasn't made a difference.
This has been resolved in Compass version 0.12.5
https://github.com/chriseppstein/compass/issues/1618