Javascript showing wrong definitions

I don't know how to solve this and why it is happening.

See screenshot:



Two separate files, both on top closure have "use strict"

The left side does not highlight that the variable product is not defined. Instead, it is showing to a completely different file, a property as its source definition.

I've set in storm settings, but that does not help:

Has anyone solved this? Makes refactoring hard and annoying.

 

3 comments
Comment actions Permalink

Sorry, but your screenshots give no clue. It is not clear why 'product' should be undefined in the left screenshot, and what definition it's resolved to. Please provide files or self-containing code snippets (as text!) that can be used to recreate the issue

0
Comment actions Permalink

I managed to reproduce in a small block.

Take this code for example. You can see, that alert(counter) does not show any errors about variable counter not being defined

https://gist.github.com/briedis/ddc76d0a50f549dd616d08fefe8d04ff

0
Comment actions Permalink

Thank you! Known issue, please follow https://youtrack.jetbrains.com/issue/WEB-22568 for updates

0

Please sign in to leave a comment.