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

Cant get Sass to overwrite when "watching"

Im on the Sass course at the first part where we use the "watch" command and it works for whatever is currently in my test.scss file but when I save my file it does not say "change detected... overwrite ./test.css. I had to use the command sass --watch test.scss because just using a period didnt seem to be working either, but this is not working as well; any ideas? As you can see the test, then the 1st test works ok then once I do the watch is when I get all the errors. Here is the log:

C:\Users\Matt\Desktop>sass --version Sass 3.3.12 (Maptastic Maple)

C:\Users\Matt\Desktop>sass test.scss

C:\Users\Matt\Desktop>sass test.scss p { color: blue; }

C:\Users\Matt\Desktop>sass --watch .

Sass is watching for changes. Press Ctrl-C to stop. error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/fixtures/te st_staleness_check_across_importers.scss (Line 1: File to import not found or un readable: apple. Load path: C:/Users/Matt/Desktop) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/more_templa tes/more1.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/more_templa tes/more_import.sass (Line 6: File to import not found or unreadable: importee. Load path: C:/Users/Matt/Desktop) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/a lt.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b asic.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork1.sass (Line 2: Undefined variable: "$bork".) error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork2.sass (Line 2: Invalid property: ":bork: bork;".) error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork3.sass (Line 2: Invalid property: "bork:" (no value).) error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork4.sass (Line 2: Properties are only allowed within rules, directives, mixin i ncludes, or other properties.) error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork5.sass (Line 3: Undefined variable: "$bork".) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/c ached_import_option.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/c ompact.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/c omplex.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/c ompressed.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/d ouble_import_loop1.sass (Line 1: An @import loop has been found: ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/double_im port_loop1.sass imports Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\t emplates_double_import_loop2.sass Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\templates_double_imp ort_loop2.sass imports ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/ templates/double_import_loop1.sass ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/double_im port_loop1.sass imports Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\t emplates_double_import_loop2.sass) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/e xpanded.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/f ilename_fn.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i f.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i mport.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i mport_charset.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i mport_charset_1_8.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i mport_charset_ibm866.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/i mport_content.css error Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\templates\imp ortee.sass (Line 7: Undefined variable: "$preconst".) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/l ine_numbers.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/m ixin_bork.sass (Line 2: Undefined mixin 'error-mixin'.) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/m ixins.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/m ultiline.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/n ested.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork1.sass (Line 2: Undefined variable: "$bork".) error Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\templates\bor k2.sass (Line 2: Invalid property: ":bork: bork;".) error Ruby193\lib\ruby\gems\1.9.1\gems\sass-3.3.12\test\sass\templates\bor k3.sass (Line 2: Invalid property: "bork:" (no value).) error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/b ork4.sass (Line 2: Properties are only allowed within rules, directives, mixin i ncludes, or other properties.) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/n ested_import.css error ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/n ested_mixin_bork.sass (Line 4: 1em*px isn't a valid CSS value.) write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/o ptions.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/p arent_ref.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/s ame_name_different_ext.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/s ame_name_different_partiality.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/s cript.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/s css_import.css write ./Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.3.12/test/sass/templates/s css_importee.css SystemStackError: stack level too deep Use --trace for backtrace.

C:\Users\Matt\Desktop>

2 Answers

I'd double check that the flag has been pointed to the correct directory where your .scss files are kept.

- sass --watch C:/this/points/to/the/css/directory/where/the/scss/files/are

I'm having the same problem. I've tried all sorts, no joy.