Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
David Jarrin
Courses Plus Student 11,182 PointsContinuous Sass to CSS compiling problems
So I am having trouble compiling my Sass files to CSS continuously. Basically what I have to do is type this command into the command prompt
sass --watch style.scss:style.css
the style.scss file compiles into style.css, which is great but if I make a new change to style.scss the change isn't reflected in the style.css until I type that command in again. Is there anyway to have style.scss compile into style.css every time I make a change to style.scss without having to go through this process every time? I am working in a local development environment if that makes a difference.
David Jarrin
Courses Plus Student 11,182 PointsHaha, ya I am saving. I have a suspicion that it might have something to do with my local environment. Its xampp but I have to manually start SQL (not just push the start button) for example....sorta buggy I guess.

Ryan Duchene
Courses Plus Student 46,022 PointsWhat version of Sass are you using (run sass -v
in the terminal to find out), and what operating system (Windows, Mac) are you using?
1 Answer

Colin Marshall
32,861 PointsI have experienced similar issues with Sass and the issues were usually resolved by updating Sass to a newer version, or rolling back to a previous version if the newest version was not working properly.
Find out what version you have by typing sass -v into the terminal (as Ryan Duchene already mentioned) and compare it to the latest version # from the Sass Changelog
If you don't have the lastest version, run the command sudo gem update sass in terminal to update Sass and see if that solves the problem.

Ryan Duchene
Courses Plus Student 46,022 PointsColin Marshall is probably right. I recall hearing that sass --watch
had a few issues on Windows recently, and I was checking to see if you were using that particular version. :)
David Jarrin
Courses Plus Student 11,182 PointsProblem fixed, many thanks!
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi David,
That command is correct - so I just have a silly question to ask, are you saving the scss file? That's what triggers the "change event" by the sass watcher.
If you are saving your scss file upon changes, and sass watch is running from the same directory, then I have no idea what could be causing that. That's really head-scratching bizarre.