Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在PhpStorm中编译Sass_Css_Ruby_Sass_Phpstorm - Fatal编程技术网

Css 在PhpStorm中编译Sass

Css 在PhpStorm中编译Sass,css,ruby,sass,phpstorm,Css,Ruby,Sass,Phpstorm,我需要帮助。我安装了ruby和Sass。安装后,我在PhpStorm中的scss文件中添加了watcher。我写了一些代码,PhpStorm自动将其编译成css文件。一切都很完美,但在我更改了scss文件后,PhpStorm编写了错误消息 cmd.exe /D /C C:/Ruby22-x64/bin/scss.bat --no-cache --update style.scss:style.css Encoding::CompatibilityError: incompatible chara

我需要帮助。我安装了ruby和Sass。安装后,我在PhpStorm中的scss文件中添加了watcher。我写了一些代码,PhpStorm自动将其编译成css文件。一切都很完美,但在我更改了scss文件后,PhpStorm编写了错误消息

cmd.exe /D /C C:/Ruby22-x64/bin/scss.bat --no-cache --update style.scss:style.css
Encoding::CompatibilityError: incompatible character encodings: CP852 and UTF-8
  Use --trace for backtrace.

Process finished with exit code 1
和scss文件尚未编译

如果我从PhpStorm中删除了watcher并添加了新的watcher,同样,第一个compile可以完美地工作,但另一个不行


有人知道为什么编译不起作用吗?

显示该文件监视程序设置的屏幕截图。我不明白你为什么在那里使用
cmd.exe/D/C
——你不需要它。看看它应该是什么样子(根据需要调整路径/参数):Thnx。对我来说没问题。根据一条消息,我可能只会说,出于某种原因,编码之间存在不兼容——编译器预期为UTF-8,但给出/检测到CP852——不确定这意味着什么以及为什么会发生。我可能只建议在这里检查internet和其他答案,查看是否存在不兼容的字符编码:CP852和UTF-8——这必须与系统中的默认编码有关。对我来说,有趣的是,第一个编译工作正常,但另一个不工作。查找问题我已经尝试过了,但我没有找到我要使用的任何东西。真的不知道——对我来说,这更像是一个Ruby问题。在任何情况下:请随时向JB的支持部门提交问题: