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 trialCraig Watson
27,930 PointsSass watch command in console not working?
Hi everyone :)
I used the same command I used a couple of days ago, unless I have lost the plot and now not working.
Command was$ sass --watch scss:css
I get some strange ruby gem error or something ?
I have emailed help@treehouse but they pointed me to the forum which would make me think im making a silly error somewhere :S
Any suggestions welcome :)
3 Answers
Hayley Swimelar
7,124 PointsYou need to specify a file names, like this:
was$ sass --watch style.scss:style.css
Here's the documentation.
Hayley Swimelar
7,124 PointsI don't think I can reply to your comment directly, but thanks for the screenshot of your console's output.
The message you're getting seems to indicate that sass isn't available, see if workspaces will let you install it.
Ryan Duchene
Courses Plus Student 46,022 PointsFrom the error, it appears as if Sass isn't installed on your system. Run gem install sass
and then try running your watch command again.
Craig Watson
27,930 PointsHi Ryan,
I was just doing as you and Hayley had suggested by trying to install the gem and it is all smiles now :)
I did not even relize we could install gems like that on the workspace console....
So can we install any gem ?
Craig Watson
27,930 PointsOh dear.....
"Listen will be polling for changes"
What on earth is going on here hahaa :)
Ryan Duchene
Courses Plus Student 46,022 PointsI'd assume so. Not all of them will work as intended, of course (Rails, for instance), but you should be able to install them, unless Treehouse did something fancy.
Ryan Duchene
Courses Plus Student 46,022 PointsHaha, it's just fancy language for saying that it will be watching your Sass files for changes, and when they change, it will recompile them.
Craig Watson
27,930 PointsThanks Ryan :)
Have I missed an update that happened to workspaces :S
I spent a day on a little project on codepen came back and all hell broke loose lol...
There is the slight change of updating to windows 10, but im still on chrome and workspace console has nothing to do with my pc anyway right ? :S
Ryan Duchene
Courses Plus Student 46,022 PointsI don't use Workspaces very much; can you explain what happened?
Craig Watson
27,930 PointsUsually you just open a new workspace and if you want to use Sass, when you click to launch a new workspace you select a Sass environment.
From there you just run your sass command in the console no problems.
I'm hoping treehouse will follow my suggestion and get workspaces linked to GitHub repo's which would make it more useable in every day workings:)
Ryan Duchene
Courses Plus Student 46,022 PointsI think you can take snapshots of your Workspace and share them with other people.
Craig Watson
27,930 PointsCraig Watson
27,930 PointsHi Hayley,
That is what is strange I have used the command I mentioned before it is the command Guil says to use too :S
Below is what pops up in the console which made me think it was not a command error but I shall have a quick try of your suggestion :)
Craig
Craig Watson
27,930 PointsCraig Watson
27,930 PointsBad news :(
I got the same error as above :S