Home Download Buy Blog Forum Support

Sublime/Compass Build stylesheet empty

Sublime/Compass Build stylesheet empty

Postby Melissa on Thu May 02, 2013 5:37 pm

Hi there! I just downloaded Sublime yesterday and, after watching the TutsPlus videos about all the cool things it can do, am kicking the tires to see if I can finally say goodbye to Dreamweaver.

I may be going overly package-happy.

I downloaded a package for SASS, the build system for Compass, and created a simple .scss file as a test:

Code: Select all
//this is just a test.

@import "compass";
@import "compass/layout";
@import "partials/blankwork";

$mycolor: #ff0000;

@mixin foo($color1, $color2) {
   background-color: $color1;
   border-color: $color2   
}


I attempted a build, and it created a stylesheets folder with styles.css inside, but styles.css is empty. I'm not receiving an error of any sort (which I do when I add a mistake on purpose.) Any idea where I may be going awry? Thanks!
Melissa
 
Posts: 2
Joined: Thu May 02, 2013 5:04 pm

Re: Sublime/Compass Build stylesheet empty

Postby FichteFoll on Thu May 02, 2013 5:49 pm

Check the console (ctrl+`, "View -> Show Console") for errors.
FichteFoll
 
Posts: 400
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Sublime/Compass Build stylesheet empty

Postby Melissa on Thu May 02, 2013 7:45 pm

Thank you! But could you explain a bit how to go about doing that? When I bring up the console after creating the build it's empty, if I try to leave it open while the build happens it closes, and if I try to run "compass compile C:\Users\Melissa\Sites\_Sublime test" from the command line I get a "SyntaxError: invalid syntax" message. (Though I pulled that command from the docs at http://compass-style.org/help/tutorials/command-line/ and it might not be what needs to be done in Sublime.)

When I ran it from the computer's command prompt I got no errors and was told "identical stylesheets/styles.css" which, I figure is since it had already (theoretically) been compiled.
Melissa
 
Posts: 2
Joined: Thu May 02, 2013 5:04 pm

Re: Sublime/Compass Build stylesheet empty

Postby FichteFoll on Thu May 02, 2013 9:08 pm

The console should at no time be empty since there will always be information about the Python Path and stuff at the top. Furthermore, this is a Python console, not a terminal.

Which package did you install for the build system? https://github.com/WhatWeDo/Sublime-Tex ... ild-System ? Since this one runs an enitrely different command. You could try creating your own build command if everything else fails, see here for documentation: http://docs.sublimetext.info/en/latest/ ... stems.html
FichteFoll
 
Posts: 400
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 36 guests