compass watch compiles once, fails to notice further changes

后端 未结 6 918
别那么骄傲
别那么骄傲 2021-02-14 10:48

I work with SASS + Compass on Windows 7. I recently upgraded SASS from 3.2.10 to 3.4.2 and Compass from 0.12.2 to 1.0.1. I did the upgrade by uninstalling the old versions and i

相关标签:
6条回答
  • 2021-02-14 11:09

    In my case, i was Using winscp for file transfer.
    Compass watch didnot detect any changes in modified.

    Did all the above mentioned changes but still did not work.
    After hours of debugging found that winscp was preserving the file timestamp and that was causing the issue.

    To fix that :
    1) In your WinSCP go to Option -> Preferences -> Transfer
    2) Edit the preset you are using 3) Uncheck the preserve timestamp option.

    That's it!! And compass started detecting changes and writing them.

    0 讨论(0)
  • 2021-02-14 11:15

    In my case running compass clean helped.

    Edit: Managed to completely remove the issue by cd-ing to the working folder (containing the config.rb) and running compass watch from there, rather than giving the compass watch the path as an argument.

    cd /path/to/project-dirs
    compass watch
    
    0 讨论(0)
  • 2021-02-14 11:22

    I've had exactly same problem. Fastest solution, try to downgrade your compass. It works fine for me. I'm using this version https://rubygems.org/gems/compass/versions/1.0.0.alpha.13. Remember to uninstall your gems first (gem uninstall compass). If "compass watch" command will not work, try compass watch --poll

    0 讨论(0)
  • 2021-02-14 11:22

    One thing that fixed it for me was to put all my default styles in screen.scss and delete style.scss and style.css.

    0 讨论(0)
  • 2021-02-14 11:26

    Uninstall both sass & compass:

    gem uninstall sass
    gem uninstall compass
    

    Install - sass version 3.4.0

    gem install sass -v 3.4.0
    

    Install - compass version 1.0.1

    gem install compass
    

    Now you can run

    compass watch 
    

    without --poll

    0 讨论(0)
  • 2021-02-14 11:30

    Turns out the latest version of Compass was the culprit. I uninstalled it and installed version 1.0.0 alpha 13 (I left Sass as is - latest version 3.4.2).

    Ran compass watch but that compiled once and terminated itself with a "LoadError on line ['53'] of C: cannot load such file -- wdm..."

    I switched to compass watch --poll and now everything is back to normal - Compass watches, compiles, watches, compiles...

    0 讨论(0)
提交回复
热议问题