scss variables not recognized

Hi, I'm new to webstorm and have run into an scss problem - my variables are not being recognized.

 

What am i doing wrong?

I have the sass plugin (which i assume includes scss support) enabled.

webstorm 2017.1.4 on KDE neon 16.04

thanks

6 comments

works fine for me

please try invalidating caches (File | Invalidate caches, Invalidate and restart) - does the problem persist?

0

If I am not mistaken, I believe it was added in 2017.2.

0

no, this is a standard SCSS variables syntax, and it works in the same way in previous versions

0

upgraded to 2017.2 and problem fixed :)

0

I am using 2017.2 on OSX, and I am having this same problem. It doesn't detect dollar-sign variables as valid syntax. Also it's complaining about other SASS syntax, such as &-selectors.

Sass support 172.3968.27 plugin is enabled. Our project is using NPM&React so I would not want to install any Ruby-related tooling as instructed Jetbrains website documentation.

 

0

Or taking that back, once again copying my IntelliJ IDEA configuration to WebStorm, caused *.scss file-mapping to be removed. I added it back and works like a charm!

0

Please sign in to leave a comment.