On May 14, 2010, at 7:34 AM, Stephen Bartholomew wrote:
>
> Compass mixins etc should just work out of the box with the pre-
> release - if not, there could be a bug so let me know what issues
> you're having.
Hi Steve,
I don't know if anyone ever followed up on this, but I'm having a problem with the integration. Hopefully I can be specific enough to be helpful.
I am trying to use the compass-susy-plugin with Compass and StaticMatic, but I can't get it to work. (Oddly, I can get it to work with Blueprint.) Everything seems to be in the right directories, from what I can tell (though I am very new to Compass, and fairly new to StaticMatic).
I'm not sure what the problem is, so I'm going to throw a lot of information at you. Please tell me if I gave you the wrong stuff.
I'll include (1) the terminal error message, (2) the result from processing my stylesheet, and (3) my computer information.
(1) The terminal:
When I load my page using `staticmatic preview mysite` I get the following error in the terminal:
StaticMatic Preview Server Starting...
WARNING: Neither susy/susy.sass nor .scss found. Using susy/susy.css instead.
This behavior is deprecated and will be removed in a future version.
If you really need susy/susy.css, import it explicitly.
WARNING: Neither susy/reset.sass nor .scss found. Using susy/reset.css instead.
This behavior is deprecated and will be removed in a future version.
If you really need susy/reset.css, import it explicitly.
(NOTE: I get a similar message when using the compass blueprint framework, though I don't get the problem I describe next.)
(2) When I go to localhost:3000/stylesheets/screen.css I get the following:
<html>
<head>
<style type='text/css'>
body { font-family: helvetica, verdana, arial; font-size: 10pt;}
</style>
</head>
<body>
<h1>
StaticMatic::TemplateError
in
./src/stylesheets/screen.sass
</h1>
<p>Undefined mixin 'leader'.</p>
1: @import defaults<br/>2: <br/>3: /* @group STRUCTURE<br/>4: <br/>
<h2>Backtrace</h2>
././src/stylesheets/./_defaults.sass:71:in `leader'<br/>././src/stylesheets/./_defaults.sass:71<br/>(sass):1<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/mixin_node.rb:72:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:301:in `_perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:209:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `map'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:313:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/rule_node.rb:188:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:301:in `_perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:209:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `map'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/import_node.rb:76:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:301:in `_perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/import_node.rb:64:in `_perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:209:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/root_node.rb:37:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `map'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:322:in `perform_children'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:313:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/root_node.rb:59:in `perform!'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:301:in `_perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/node.rb:209:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/root_node.rb:37:in `perform'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/tree/root_node.rb:29:in `render'<br/>/Library/Ruby/Gems/1.8/gems/haml-3.0.4/lib/sass/engine.rb:159:in `to_css'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/mixins/render.rb:88:in `generate_css'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/server.rb:31:in `call'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:77:in `call'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in `call'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:67:in `process'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'<br/>/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'<br/>/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:38:in `run'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/server.rb:52:in `start'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/mixins/server.rb:4:in `preview'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/base.rb:48:in `send'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/../lib/staticmatic/base.rb:48:in `run'<br/>/Library/Ruby/Gems/1.8/gems/staticmatic-0.11.0.alpha.4/bin/staticmatic:33<br/>/usr/bin/staticmatic:19:in `load'<br/>/usr/bin/staticmatic:19
</body>
</html>
(3) My system:
I've installed the most recent version of StaticMatic (Alpha 4), as well as compass-susy-plugin (0.7.0.pre8) and compass (0.10.0). I'm running ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0] on OS X 10.6.3.
I can *find* the files it says it wants, and I've tried playing around with the mysite/config.rb to see if the problem is the path to the stylesheets, but nothing there seems to work.
Any thoughts?
Thanks in advance. Best,
Charlie Tanksley