PhpStorm 9和指南针:无效选项--no-cache [英] PhpStorm 9 and Compass: invalid option --no-cache

查看:97
本文介绍了PhpStorm 9和指南针:无效选项--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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆