IntelliJ 13无法解析Compass SASS库(IntelliJ 13 won't resolve Compass SASS libraries)

编程入门 行业动态 更新时间:2024-10-25 16:17:19
IntelliJ 13无法解析Compass SASS库(IntelliJ 13 won't resolve Compass SASS libraries)

我正在使用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.

更多推荐

本文发布于:2023-08-07 14:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464892.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Compass   IntelliJ   libraries   resolve   SASS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!