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 trialPhilip 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
22,076 PointsHi,
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
8,633 PointsMac Version: Sass 3.4.21 (Selective Steve)
Gianmarco Mazzoran
22,076 PointsOk perfectly!
the folder of the project you are working on where is on your mac? ex. in Documents, in Desktop, etc.
Philip Rurka
8,633 PointsIts 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
22,076 PointsOk,
the .scss file that your are changing is directly on your desktop or in a subfolder? and it call test.scss?
Philip Rurka
8,633 PointsExactly, Its directly on my desktop and called test.scss
Philip Rurka
8,633 PointsOnce I "sass --watch ." I then have "test.scss","test.css" and "test.css.map" all on my desktop.
Gianmarco Mazzoran
22,076 PointsOk, 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
8,633 PointsYah. 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
8,633 PointsI hope I am making sense. This is all new to me.
Gianmarco Mazzoran
22,076 Pointsok, try typing crtl + c to exit from sass, then type sass --watch test.scss:test.css
let's see if this work!
Philip Rurka
8,633 PointsI 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
8,633 PointsIs it normal that it takes a long time for sass --watch to load?
Gianmarco Mazzoran
22,076 PointsOk try to reinstall sass by typing sass unistall gem
and then sass install gem
Then try to see if works!
Philip Rurka
8,633 PointsI 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
22,076 PointsType sudo sass unistall gem
Gianmarco Mazzoran
22,076 PointsThen to reinstall sudo sass install gem
Gianmarco Mazzoran
22,076 PointsTry 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
8,633 PointsI 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
22,076 PointsTry to type
cd Desktop
before type sass --watch .
Philip Rurka
8,633 PointsI tried that. It freezes now.
Philip Rurka
8,633 PointsWish I could show you.
Philip Rurka
8,633 PointsMy 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.
Gianmarco Mazzoran
22,076 PointsLets try, here's my e-mail gianmarco.mazzoran@gmail.com for the invite
Philip Rurka
8,633 PointsPhilip Rurka
8,633 PointsSorry, 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
22,076 PointsGianmarco Mazzoran
22,076 PointsAre 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!