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

1
9 comments

works fine for me

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

upgraded to 2017.2 and problem fixed :)

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

Hello,

I'm still having this problem, but in PHPStorm.

 

I have a very simple scss file with some variables at the beginning of the file and when I try to use them later on the same file, it says that the variable isn't recognized. 

 

Any ideas?

0

Please share a file that shows up the issue plus screenshots illustrating it

0
Avatar
Permanently deleted user

Elena, I was compilig the information you asked and noticed that I had the sass folder marked as resource and excluded.

I removed the excluded and it started working.

 

 

1

Please sign in to leave a comment.