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
Please sign in to leave a comment.
Hi there,
Were you able to locate that inspection in "Settings/Preferences | Editor | Inspections"?
If not -- try this:
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)
... 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" ...
:(
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).