指南针手表编译一次,无法注意到进一步的变化 [英] compass watch compiles once, fails to notice further changes

查看:88
本文介绍了指南针手表编译一次,无法注意到进一步的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上使用SASS + Compass。我最近将SASS从3.2.10升级到了3.4.2,并将Compass从0.12.2升级到了1.0.1。我通过卸载旧版本进行了升级,并在命令提示符下使用gem uninstall / install安装了新版本。

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 install the new versions using gem uninstall/install in the command prompt.

现在,当我在运行指南针监视后对SCSS文件进行更改时,仅注意到并编译了第一组更改。之后,该指南针手表看起来就像是在监视变化,但实际上,在第一次变化之后,没有其他变化。我必须终止(Ctrl + C)并重新运行指南针手表。在命令中添加--poll似乎无济于事。

Now when I make changes to an SCSS file after running compass watch, only the first set of changes is noticed and compiled. After that compass watch just looks like it's watching for changes but in reality no other changes after the first are noticed. I have to terminate (Ctrl+C) and rerun compass watch. Adding --poll to the command doesn't seem to help.

在升级之前并没有发生这种奇怪的行为。

This strange behavior wasn't happening before the upgrade.

我该如何解决?

推荐答案

原来是最新版的Compass是元凶。我卸载了它并安装了1.0.0 alpha 13版本(我离开了Sass,最新版本为3.4.2)。

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 ,但编译一次并以 C的行['53']上的LoadError终止自身:无法加载该文件-wdm ...

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

我改用 compass watch --poll ,现在一切恢复正常-指南针手表,编译,手表,编译...

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

这篇关于指南针手表编译一次,无法注意到进一步的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆