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

Kristina Petravičiūtė
Kristina Petravičiūtė
11,270 Points

Help 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:inremove_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:inmtime' 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:inblock 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:instylesheet_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:inblock 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:inupdate_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:inblock 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:inon_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:incall' 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:inblock in start_poller'

Alexandre Ferreira
Alexandre Ferreira
15,358 Points

Is everything correct with your CSS code inside sass-test-project/sass/style.scss?

Kristina Petravičiūtė
Kristina Petravičiūtė
11,270 Points

I don't know, I just typed:

p { color: red; }

for testing...

Alexandre Ferreira
Alexandre Ferreira
15,358 Points

Did 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ė
Kristina Petravičiūtė
11,270 Points

ruby -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ė
Kristina Petravičiūtė
11,270 Points

I 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