SASS referencing/autocomplete bug?

Basically, if i have:

//imports.css.scss

$var: #FDA;

.someClass { font-size: 10px; }


//controller.css.scss

@import 'imports';

#content { color: $var; }


//application.css.scss

@import 'controller';

The autocomplete works great and the color shows on the left. But if I refactor to:

//imports.css.scss

$var: #FDA;

.someClass { font-size: 10px; }


//controller.css.scss

#content { color: $var; }


//application.css.scss

@import 'imports';

@import 'controller';

The reason why I don't like the first version is because:

.someClass { font-size: 10px; }

gets repeated in the css compilation for every @import 'imports';, I have.

But, the autocomplete/referencing just breaks down and I get warnings everywhere for the second version. Is there anything I can do to fix this? Or can you make a ticket for the next version?

Thanks!

2 comments

Hi Steven,

It is known problem. There is the issue about it: http://youtrack.jetbrains.com/issue/WEB-5816

The solution of this problem described here http://youtrack.jetbrains.com/issue/WEB-5855 and will be available in RubyMine 6 (or in EAP).

0

Ah... okay. Thanks for getting back!

0

Please sign in to leave a comment.