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

Philip Rurka
Philip Rurka
8,633 Points

[SOLVED] I am getting "write" and not "overwrite".

I am getting "write" and not "overwrite".

Hello. I was able to successfully acquire sass on my mac using Terminal. However, when I try to sass --watch . it comes up much like the one in the video. The only difference is is that I get a "write" instead of a "overwrite". I believe that might be why it wont update from .css to .scss .

11 Answers

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Hi,

have you try to see if apply the changes from the .scss to your .css file?

Maybe it is because your version is different from that used in the video and simply change what is printed on your terminal!

Philip Rurka
Philip Rurka
8,633 Points

Sorry, I don't understand. :c

If I leave my terminal, start it up again then " sass --watch . " then it will upload it but it simply wont overwrite.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Are you on Mac, Windows or Linux enviroment?

Have checked that you are in the right folder in the terminal to let sass watch your changes? If not I try to guide you!

Philip Rurka
Philip Rurka
8,633 Points

Mac Version: Sass 3.4.21 (Selective Steve)

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Ok perfectly!

the folder of the project you are working on where is on your mac? ex. in Documents, in Desktop, etc.

Philip Rurka
Philip Rurka
8,633 Points

Its on my Desktop. This is what I see.

Last login: Wed Mar 2 14:19:31 on ttys000

Philips-MBP:~ DefFreeman$ sass -v

Sass 3.4.21 (Selective Steve)

Philips-MBP:~ DefFreeman$ sass --watch .

Sass is watching for changes. Press Ctrl-C to stop.

  write ./Desktop/test.css

  write ./Desktop/test.css.map

[Listen warning]:

Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Ok,

the .scss file that your are changing is directly on your desktop or in a subfolder? and it call test.scss?

Philip Rurka
Philip Rurka
8,633 Points

Exactly, Its directly on my desktop and called test.scss

Philip Rurka
Philip Rurka
8,633 Points

Once I "sass --watch ." I then have "test.scss","test.css" and "test.css.map" all on my desktop.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Ok, seems everything is ok with your file.

Open test.scss and test.css with text editor like sublime or atom. Have you tried to see if making change on your test.scss file, while sass is running in your terminal, apply the change on your test.css file?

Philip Rurka
Philip Rurka
8,633 Points

Yah. I have tried that a few times now, it doesn't change anything.

There are a few things I have noticed, on the video, Instead of it indicating "write" it indicates "overwrite". As well as then I change something in "test.scss" in Sublime then save it, It doesn't indicate that there are changes done in my terminal. In the video, as soon as he made a change and saved the changes, there was something that came up on the terminal informing that there was some changes done.

Philip Rurka
Philip Rurka
8,633 Points

I hope I am making sense. This is all new to me.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

ok, try typing crtl + c to exit from sass, then type sass --watch test.scss:test.css

let's see if this work!

Philip Rurka
Philip Rurka
8,633 Points

I am trying it out. It always takes a long time for results to show. Also, I installed "fseven watch", I don't know if thats good or bad. Some one had recomended it.

Philip Rurka
Philip Rurka
8,633 Points

Is it normal that it takes a long time for sass --watch to load?

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Ok try to reinstall sass by typing sass unistall gem and then sass install gem

Then try to see if works!

Philip Rurka
Philip Rurka
8,633 Points

I am getting this when I try to uninstall it.

Philips-MBP:~ DefFreeman$ gem uninstall sass

Remove executables:

sass, sass-convert, scss

in addition to the gem? [Yn] Y

ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions for the /usr/bin directory.

Philips-MBP:~ DefFreeman$

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Then to reinstall sudo sass install gem

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Try to see if now works properly, always in yuor terminal, type

"cd Desktop"

And then

"sass --watch ."

(All without quotes, sorry but I'm on mobile now and I can't use the markdown reference)

Philip Rurka
Philip Rurka
8,633 Points

I tried to ---watch a gain and now its stuck here

Philips-MBP:~ DefFreeman$ sudo gem install sass

Fetching: sass-3.4.21.gem (100%)

Successfully installed sass-3.4.21

Parsing documentation for sass-3.4.21

Installing ri documentation for sass-3.4.21

1 gem installed

Philips-MBP:~ DefFreeman$ sass --watch .

Sass is watching for changes. Press Ctrl-C to stop.

Gianmarco Mazzoran
Gianmarco Mazzoran
22,076 Points

Try to type

cd Desktop

before type sass --watch .

Philip Rurka
Philip Rurka
8,633 Points

I tried that. It freezes now.

Philip Rurka
Philip Rurka
8,633 Points

Wish I could show you.

Philip Rurka
Philip Rurka
8,633 Points

My brother showed me something on "appear.in". Could you show me on that. You could check out my screen and run me through. Would it be possible.