I am using Sass and Ruby (newest version) on a Windows 7 64-bit machine, and I am working on a shared folder on my home server. (But, I have to admit the problem itself occurs on the server as well, since I tried to install Ruby and -watch
the files on the server directly).
The problem is as follows: if I save for the first time, a change is detected and my style.css
gets overwritten directly. After that, I always need to save up to 7 times in order to get the style.css
overwritten. Every time, there is a change detected but nothing is compiled. Here's a screen:
>>> Sass is watching for changes. Press Ctrl-C to stop.
overwrite style.css
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
>>> Change detected to: E:/Websites/xxx/wp-content/themes/xxx/sass/default-styles.sass
overwrite style.css
Here is glance at my base.sass
, which imports all the partials:
// Core variables and mixins
@import variables
// Default HTML Formatting
@import default-styles
// Grid
@import grid
// Header and Menus
@import header
// Blog
@import blog
Has anyone had a similar issue on Windows?
This question was answered in the comments. The issue was caused by server-client time differences, so that the server wouldn't initiate the update until the timestamp exceeded the time difference.
I am posting this answer so that the question will be correctly marked as answered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With