Cannot resolve Symbol - Where i can change from Weak Warnung to Error ?!

Hello,

i use PHPStorm 2017.2.1 and my project contains javascript files (ES6)

if i use the import statement ... i get only an small underline to the objects if this not exists, but i need a big warning for this...

i want to change the Severity from "Weak Warnung" to "Error" but i cannot find this Property under Editor > Inspection ---

Can i change this Codehint in PHPStorm?

thx

0
3 comments

Hi there,

Were you able to locate that inspection in "Settings/Preferences | Editor | Inspections"?

If not -- try this:

  • Place caret on the warning/error
  • Use Alt+Enter to bring Quick Fix menu (also accessible via light bulb icon)
  • Find the right entry there and expand submenu for it (press "Arrow Right" key or click with mouse (click area can be quite small, depends on GUI Theme used))
  • Use "Edit inspection profile settings" entry -- it will take you directly top that inspection where you can change the severity

https://www.jetbrains.com/help/webstorm/suppressing-inspections.html (describes how to get that menu for suppressing inspections, which is just another entry in that submenu)

Alternatively -- use "Code | Inspect Code" and access the same though there.

Obviously, it may not do anything if this Weak Warning is reported by some another subsystem (that is not implemented as Inspection -- sorry, not a JS person here so cannot verify this before answering) that does not allow changing Severity (or if such severity is hardcoded)

1
Avatar
Permanently deleted user

... if i use Alt + Enter and now > "Edit inspection profile setting" he goto the Property:  "Unresolved JavaScript variable"

But this is not changing the Weak Warning "Cannot resolve symbol"  ...

:(

0

Please show how that quick fox menu looks like: maybe you just need another entry?

Same for actual Inspection -- maybe it has additional options?

On another hand -- it may be done like that on purpose -- to accommodate the possibility that such unknown object might be accessible by other means that IDE is unaware of (sorry, not a JS person so cannot make up some test code myself).

0

Please sign in to leave a comment.