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

Salih Efe Topcu
Salih Efe Topcu
7,609 Points

[SOLVED] Please help with sass directory finding error in windows

I have installed ruby, then "gem install sass". When I type in "sass --watch style.scss:style.css", it says " Sass is watching for changes. Press Ctrl-C to stop" then"error No such file or directory @ rb_sysopen - style.scss". I have made sure path to folder is correct in cmd prompt which is C:\users\me\documents\sass and i have style.scss file in that folder which is basicly notepad file with .scss extension. After I command watch, it creates style.css file in same folder but cannot recognize .scss file. Am I doing it wrong when creating .scss file at first place?

1 Answer

Salih Efe Topcu
Salih Efe Topcu
7,609 Points

I found my own solution. In windows 10, the file extensions are hidden by default so i was creating style.scss.txt file without knowing. To fix it, go to control panel/file explorer options, select view tab, then uncheck hide extensions for known file types then change .txt to .scss.

Hi Salih, spotted your question as unanswered in the community so I have switched your solution to a best answer and hopefully will help some other users out :)

Also nice to see another user on a windows pc, there are not many of us on here!

Happy Coding