6

我喜欢 CodeKit,但由于某种原因,它停止“监视”我放置在其中的文件夹中文件的更改。我仔细检查了项目配置以确保输出路径正确,但是当我对正在监视的任何文件进行更改时,CodeKit 什么都不做——没有缩小、语法检查、将 .scss 文件编译为 .css。

正如开发人员建议“刷新” CodeKit 一样,我在按住 shift 的同时启动了该应用程序,并且确定 CodeKit 打开时没有任何项目。所以我重新添加了项目,但它仍然没有在看文件。有人用 CodeKit 遇到过这种情况吗?

4

2 回答 2

1

我之前遇到过类似的问题,这是因为在 codekit 项目中我包含了 images 文件夹,并且生成了大量的 .png 图像。每次运行 codekit 时,它都会挂起处理试图压缩它们的 png。

尝试将您的 images 文件夹放在您的 codekit 项目目录之外,看看是否有帮助。

于 2014-05-10T20:25:22.683 回答
0

I've been having the same problem lately (Version 2.1.9). I haven't managed to figure out the root cause as yet, but I have figured out a way to solve this issue every time it occurs.

Rename your parent folder that contains all of your CodeKit projects. E.g. my HTDocs equivalent folder is called "Sites". In Terminal do this:

mv sites sites_temp
mv sites_temp sites

The first line will rename your sites folder to sites_temp, and then the second line will do the opposite.

For some reason this works every time for me.

I've written a short blog post on this matter here, but to be honest the above is my go-to solution whenever this problem occurs: http://www.joetannorella.com/codekit-mac-auto-compiling-compass-upon-file-change/

于 2015-01-03T00:24:47.913 回答