PhpStorm 9 and Compass: invalid option --no-cache

怎甘沉沦 提交于 2019-12-25 10:01:29

问题


  • 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.

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

I'm not sure where --no-cache is coming from, or what the issue is.

Running Compass 1.0.3 and PhpStorm 9.0.2 on Windows 8


回答1:


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

Settings above assume that you have your config.rb located in project root folder, and css_dir = "stylesheets"



来源:https://stackoverflow.com/questions/32235412/phpstorm-9-and-compass-invalid-option-no-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!