PhpStorm 9和指南针:无效选项--no-cache [英] PhpStorm 9 and Compass: invalid option --no-cache
问题描述
- 我已将系统PATH变量更新为包含
C:/Ruby193/bin/
- 我已经在设置中选中了启用指南针支持
- 我已将 Compass可执行文件设置为
C:\Ruby193\bin\compass
- 我已将 Config path 设置为项目的
config.rb
文件.
- I have updated my system PATH variable to include
C:/Ruby193/bin/
- I have checked Enable Compass Support in the settings
- I have set Compass executable file to
C:\Ruby193\bin\compass
- I have set Config path to my project's
config.rb
file.
当我在任何.scss文件中保存更改时,Compass尝试运行,并且我得到了:
When I save a change in any .scss files, Compass tries to run, and I get this:
cmd.exe /D /C call C:/Ruby193/bin/compass.bat --no-cache --update example.scss:example.css
Error: invalid option: --no-cache
Process finished with exit code 1
我不确定--no-cache
的来源或问题所在.
I'm not sure where --no-cache
is coming from, or what the issue is.
在Windows 8上运行Compass 1.0.3和PhpStorm 9.0.2
Running Compass 1.0.3 and PhpStorm 9.0.2 on Windows 8
推荐答案
您正在使用Sass命令行选项运行Compass,因此出现了问题.创建观察者时,请确保选择指南针SCSS",而不是"SCSS".或者,相应地更改您的观察者设置,例如
You are running Compass with Sass command line options - thus the problem. When creating a watcher, please make sure to choose 'Compass SCSS', not 'SCSS'. Or, change your watcher settings accordingly, like
Program: C:/Ruby193/bin/compass.bat
Arguments: compile
Working directory: $ProjectFileDir$
Output paths to refresh: $ProjectFileDir$/stylesheets
上面的设置假设您将 config.rb 位于项目根文件夹中,并且css_dir = "stylesheets"
Settings above assume that you have your config.rb located in project root folder, and css_dir = "stylesheets"
这篇关于PhpStorm 9和指南针:无效选项--no-cache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!