PhpStorm:SCSS文件监视程序设置 [英] PhpStorm: SCSS File Watcher Settings

查看:184
本文介绍了PhpStorm:SCSS文件监视程序设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在PhpStorm中设置我的SCSS文件监视程序的帮助.我在Ubuntu上,我有PhpStorm 6,我有带Ruby 1.9.3p194和Sass 3.2.5的RVM.我在设置" >>文件观察器"中设置了文件观察器"选项,如下所示:

I need help setting up my SCSS file watcher in PhpStorm. I'm on Ubuntu, I have PhpStorm 6, I have RVM with Ruby 1.9.3p194 and Sass 3.2.5. I've set my File Watcher options in, Settings >> File Watcher as follows:

完成此操作后,我更改了 .SCSS 文件中的某些内容,但出现了此错误.

Once I had done that, I changed something in my .SCSS file but I got this error.

...-1.9.3-p194/bin/sass --no-cache --update style_update.scss:style_update.css
/usr/bin/env: ruby: No such file or directory

(我在第一行的开头添加了三个点以使该行更短)那么可能是什么问题?

(I added three dots at the begin of the first line to make the line shorter) So what might be the problem?

推荐答案

问题是IDE无法在PATH中找到ruby.请注意,在终端和从Ubuntu启动板启动的应用程序中,可能有所不同.

The problem is that IDE is not able to find ruby in the PATH. Note that it may be different in terminal and in applications that you start from Ubuntu launchpad.

使用文件监视程序配置中的环境变量选项,以包含包含所需可执行文件的目录来指定自定义PATH值.

Use the Environment variables option in the file watcher configuration to specify custom PATH value with a directory containing the required executables.

这篇关于PhpStorm:SCSS文件监视程序设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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