SASS - problem with windows 8.1
I have problems with SASS. After updating the file, the .scss
file .css
will not be updated.
Let's say this is my folder structure:
-scss
-style.scss
-css
-style.css
index.html
And I am using this command from the project root in cmd:
sass --watch scss/style.scss:css/style.css --style compressed
It compiles it for the first time, but when I make some changes to the file .scss
it doesn't update.
I use:
win 8.1 64bit
ruby 2.0.0p481 64bit
Sass 3.4.2
How do I get him to follow the updates? Or am I doing something wrong?
thank
Update : Tested the same on ubuntu 14.04 and it works just fine (however on ubuntu I installed the latest ruby - ruby 2.1.2p95 )
Update 2 : GitHub issue
source to share
This was a bug in Sass 3.4.2: https://github.com/sass/sass/issues/1409
This was fixed in Sass 3.4.3: http://sass-lang.com/documentation/file.SASS_CHANGELOG.html#343_4_september_2014
If you are using Bundler, make sure your Sass version is not restricted 3.4.2
in yours Gemfile
. Recommended string gem 'sass', '~> 3.4.3'
. Run bundle update
at the root of your project.
If you are not using Bundler, just run gem update sass
.
source to share
I had the same problem and didn't help the solution. It looks like ruby on windows 8 has a problem with WDM (Windows Directory Monitor) and the command --watch
is not working correctly.
I solved the problem this way:
- Downloaded and installed Installed Ruby 1.9.3p550 - Download Link
- Downloaded and installed development kit (which is required to install WDM) for Ruby 1.9.3 - DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe
- Extract DevKit to path C: \ Ruby193 \ DevKit
- Execute
cd C:\Ruby193\DevKit
- Run
ruby dk.rb init
- Run
ruby dk.rb review
- Run
ruby dk.rb install
- Then run
gem install wdm
And after that the command --watch
works correctly.
Hope this helps someone.
source to share