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!
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

Kristina Petravičiūtė
11,270 PointsHelp with SASS. How to get automatic updates from .scss to .css????
What is this? :o and how can I fix this?
I have folder named "sass-test-project" on may desktop and two other folder in "sass-test-project" named "sass" and "stylesheets", inside sass folder is file named "style.scss".
No changes in style.scss is visible in style.css :/
C:\Users\Kristutė\Desktop\sass-test-project>sass sass/style.scss p { color: red; }
C:\Users\Kristutė\Desktop\sass-test-project>sass --watch sass/style.scss:stylesheets/style.css
Sass is watching for changes. Press Ctrl-C to stop. Encoding::CompatibilityError: incompatible character encodings: IBM775 and UTF-8
Use --trace for backtrace.
C:\Users\Kristutė\Desktop\sass-test-project>sass --watch sass:stylesheets
Sass is watching for changes. Press Ctrl-C to stop. write stylesheets/style.css write stylesheets/style.css.map
Change detected to: ../../../Kristutė/Desktop/sass-test-project/sass/style.scss
[Listen warning]: Change block raise an execption: incompatible character encodi
ngs: IBM775 and UTF-8
Backtrace:
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/importers/fil
esystem.rb:86:in index'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/importers/fil
esystem.rb:86:in
remove_root'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/importers/fil
esystem.rb:145:in find_real_file'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/importers/fil
esystem.rb:31:in
mtime'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/stalen
ess_checker.rb:134:in mtime'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/stalen
ess_checker.rb:163:in
block in dependency_updated?'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/stalen
ess_checker.rb:81:in call'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/stalen
ess_checker.rb:81:in
stylesheet_modified_since?'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/stalen
ess_checker.rb:69:in stylesheet_needs_update?'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/compil
er.rb:210:in
block in update_stylesheets'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/compil
er.rb:208:in each'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/compil
er.rb:208:in
update_stylesheets'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/compil
er.rb:464:in on_file_changed'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/lib/sass/plugin/compil
er.rb:324:in
block in watch'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/listener.rb:252:in call'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/listener.rb:252:in
on_change'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/listener.rb:290:in block in initialize_adapter'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/adapters/polling.rb:48:in
call'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/adapters/polling.rb:48:in poll_changed_directories'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sass-3.4.0/vendor/listen/lib/list
en/adapter.rb:299:in
block in start_poller'

Kristina Petravičiūtė
11,270 PointsI don't know, I just typed:
p { color: red; }
for testing...

Alexandre Ferreira
15,358 PointsDid you copy and paste any text into the sass files?
That error seams to point to some character/keyboard issue with your files or installation.

Kristina Petravičiūtė
11,270 Pointsruby -e 'puts Encoding::default_external'
IBM775
ruby -e 'puts Encoding::defaul_internal'
null
So, I think that external encoding might be the problem, because it's IBM775, not UTF-8? What do you think?

Kristina Petravičiūtė
11,270 PointsI figured out that my problem cause my PC name, because it was written in Lithuanian language, so I create a new account and now everything is working! :) Thanks for helping

Alexandre Ferreira
15,358 PointsGlad to have helped. :)
Alexandre Ferreira
15,358 PointsAlexandre Ferreira
15,358 PointsIs everything correct with your CSS code inside sass-test-project/sass/style.scss?