2

所以我刚刚升级到 Mavericks,现在我的 Codekit Compass 项目之一没有正确编译。我在 Codekit(最新版本)中收到以下错误:

Compass was unable to compile one or more files in the project: 

Encoding::CompatibilityError on line ["28"] of /Applications/CodeKit.app/Contents/Resources/engines/scss/lib/sass/tree/visitors/to_css.rb: incompatible character encodings: ASCII-8BIT and UTF-8
Run with --trace to see the full backtrace

(This action was triggered by a change to lks.scss)

有什么想法吗?有点卡住了。

4

2 回答 2

0

我也看到了这个问题。打开有问题的文件并转到第 28 行,我看到了这个:

result << child_str + (node.style == :compressed ? '' : "\n")

因此,它与升级后错误地读取您的 Compass 设置或 CSS 输出设置有关。将您的输出设置切换为未压缩,保存,然后切换回来并再次保存,它应该会自动更正。

于 2013-12-05T16:56:27.413 回答
0

有这个问题。为我解决的问题是编辑项目的 config.rb 文件,并添加以下行:

encoding = "utf-8"

保存,然后退出并重新启动 CodeKit。

于 2014-10-21T13:24:45.570 回答