Compass Config

7 views
Skip to first unread message

Brajeshwar

unread,
May 5, 2010, 3:51:13 AM5/5/10
to stati...@googlegroups.com
Hi Steve,

I can totally understand the time constraints to update the docs
regularly so, I won't push.

Can you please set some light on the configuration option for Compass
with the latest StaticMatic PRE.

Regards,
Brajeshwar
_____________________

--
You received this message because you are subscribed to the Google Groups "StaticMatic" group.
To post to this group, send email to stati...@googlegroups.com.
To unsubscribe from this group, send email to staticmatic...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/staticmatic?hl=en.

Lamnk

unread,
May 14, 2010, 3:50:07 AM5/14/10
to StaticMatic
I second this.

Was wrestling with compass integration for a couple of hours and
finally gave up ...

It was no big deal since i often code CSS without framework but it's
really frustating when the integration guide doesn't work as expected.

Stephen Bartholomew

unread,
May 14, 2010, 7:34:38 AM5/14/10
to StaticMatic
Pending updates I thought I'd best reply here. Compass integration is
experimental at the moment - hence the alpha prerelease rather than a
full release.

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.

There aren't any standardized integration instructions for 0.10.8 (non-
pre), but if you've read the compass wiki docs, they should work as
is.

Anyway - as I say, let me know what issues you're having. New docs
will be coming soon - thanks for your patience!

Cheers,

Steve

Charlie Tanksley

unread,
May 18, 2010, 7:08:47 PM5/18/10
to stati...@googlegroups.com
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

Ulises

unread,
May 29, 2010, 8:16:31 PM5/29/10
to StaticMatic
Did you install susy into your project via compass create myproject -r
susy -u susy?

Charlie Tanksley

unread,
May 30, 2010, 7:51:51 AM5/30/10
to stati...@googlegroups.com
On May 29, 2010, at 8:16 PM, Ulises wrote:

> Did you install susy into your project via compass create myproject -r
> susy -u susy?

Yes. I followed the updated Susy tutorial steps. I tried Compass + Susy on their own and had no problems. It was only when I tried to add StaticMatic in the mix that things fouled up (I should note that I just built a site using Compass, Blueprint, and StaticMatic and had no significant problems).

Charlie

Stephen Bartholomew

unread,
May 30, 2010, 1:32:33 PM5/30/10
to StaticMatic
Hey all,

The latest prerelease should fix these issues. Check out my previous
post for details.

Automatic Compass framework setup (i.e the susy initial files) is
coming very soon too.

Steve

On May 30, 12:51 pm, Charlie Tanksley <charlie.tanks...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages