Highlight never go away on Webstorm

Some parts of my Jade file is highlighted all the time and never go away. Highlighted parts are difficult to see as well, terribly irritating. See the following screen shot:

Screenshot from 2015-08-19 22:51:52.png



Attachment(s):
Screenshot from 2015-08-19 22:51:52.png
0
5 comments

Screenshot is missing. can you attach it?


0
Avatar
Permanently deleted user

I updated with attached screen shot. Thanks.

0

are any errors/warnings shown when you mouse hover over the highlighted text? Can you provide the full code snippet (as text) I can use to recreate the issue?

0
Avatar
Permanently deleted user

Thanks Elena Pogorelova, yes the heighlight indicates some defects / inefficiency in the code. When the specified line of code is changed as follows, the warning vanishes.

 
option(value="#{year}", selected=input.birthYear=="#{year}") #{year}
  
Thanks again.
  
0

I see:) The highlighting you can see just indicates inspection violation - in this case it is 'Redundunt conditional expression' (Settings/Editor/Inspections/JavaScript/Control Flow Issues).         This inspection reports any instances of JavaScript conditional      expressions of the form condition?true:false or condition?false:true.      These expressions may be safely simplified to condition or !condition , respectively.

You can either disable this inspection or simplify your expression to avoid seeing this warning - both actions are available on Alt+Enter

0

Please sign in to leave a comment.