我正在使用IntelliJ 13.0.2作为我的样式表使用Compass的Web项目。 SCSS编辑器不会解析Compass mixins,变量等,以进行自动完成和语法检查。 (问题纯粹是编辑器:使用File Watcher插件自动编译SCSS到CSS工作正常。)
似乎Compass二进制文件发现Compass库很好但是IntelliJ没有,我也看不出我怎么能告诉IntelliJ他们住在哪里。 我确信这一切都归结为帮助IntelliJ超越@import声明。 这些下划线为红色,带有一个工具提示,表示无法解析导入 :
@import "compass/reset"; @import "compass/css3";
通常情况下,我认为答案是建立一个绝对路径,但Compass正在寻找事情,那么有一种类似于SCS的搜索路径,IntelliJ会理解吗?
I'm using IntelliJ 13.0.2 for a web project using Compass for my style sheets. The SCSS editor won't resolve Compass mixins, variables, etc. for auto-completion and syntax checking. (And the issue is purely the editor: the automatic compilation of SCSS to CSS works just fine using the File Watcher plugin.)
It seems that the Compass binary finds the Compass libraries just fine but IntelliJ doesn't and I don't see how I can tell IntelliJ where they live. I'm sure this all boils down to helping IntelliJ get past the @import statement. These are underlined in red with a tool-tip that says Cannot resolve import:
@import "compass/reset"; @import "compass/css3";
Normally, I'd think the answer is to put an absolute path but Compass is finding things so is there a thing like a search path for SCSS that IntelliJ will understand?
最满意答案
有了完美的时机,我在IntelliJ 13.1发布的那天就问了这个问题。 出于某种原因,我确实必须在项目首选项中重新启用Compass支持。
With perfect timing, I asked this on the day IntelliJ 13.1 was released which fixes the problem. I did have to reenable Compass support in my project preferences for some reason.
更多推荐
发布评论