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

CSS Sass Basics (retired) Getting Started with Sass Installing and Using Sass

When I write --sass watch it does write a duplicate css file; when I add additional changes; the css file is the same?

Is it a bug issue or a windows 8 issue? Thanks

6 Answers

no. The only way to update the code is to terminate the watch and then retype the sass --watch code each time. I had tried to uninstall and then reinstall to no avail. - Michelle

Arthur Longbottom
Arthur Longbottom
13,110 Points

I'm having the same issue... I did install the Ruby 1.9.3(?) because I am still pretty new, I'm not sure if I need to be in Ruby 2.0 or +

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Pepe;

Can you show the exact command you are using along with the directory from which you are running the command?

For example if my scss/css folders are inside a folder called public I personally run the sass --watch scss:css command from inside the public folder.

Thanks,

Ken

Both of my sass & css file are in the desktop directory. In the CMD
it's C:\Users\rpepe1>Desktop sass --watch style.scss:style.css Sass is watching for changes ctrl c to stop write style.css write style.css map Then after that I would had for example h3 { color:blue;} h4 {color:green;) and the style.css would not pick up the h3 and h4 code.

Ken Alger
Ken Alger
Treehouse Teacher

Pepe;

In the terminal window (command line window) after you make changes to your .scss file do you get notified that a change was detected and that it has written to style.css?

Ken

Thomas Weld
Thomas Weld
12,293 Points

I'm having the same issue on a mac and I am not getting notified of any changes detected in my terminal window ?

Any ideas?

OK, I'm having the same issue on an iMac running Yosemite, using Sublime 2. When I type the --watch . command into the terminal, I get:

Sass is watching for changes. Press Ctrl-C to stop. write ./main.css write ./main.css.map [Listen warning]: Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.

I'm running the html and main.scss from the desktop.

When I open the main.css file it is commented with:

/*# sourceMappingURL=main.css.map */

and nothing I write in the .scss file is copied to it.

What am I missing, please?

Dot

I had the same issue where I entered the command correctly but it only updated the CSS file initially. I had to keep terminating and re-entering the command for it to update my CSS file, which was annoying. So I ended up downloading the Scout App that was recommended from the course. It works perfectly and updates the changes I make in my SASS file immediately into my CSS file. It was easy to set-up as well.

Arthur Longbottom
Arthur Longbottom
13,110 Points

I ended up using Scout App too while I was waiting for my Macbook Pro to come in, now I can do all these courses no problem.