Webstorm can't resolve JSX component, and freezes with auto-suggest.
I have a specific React component where trying to add a prop causes the IDE to hang indefinitely, with spinning beach ball, when the autosuggest popup would normally appear.
Visiting the component's file itself doesn't seem to show any issues.
Trying to CMD-click the component name in the JSX shows a Resolving Reference..." popup that never stops. CMD-clicking the same component outside of any JSX code works normally.
All other React components in my project seem to work normally. This specific component has existed for a long time and worked in the past.
I've tried invalidating caches to no avail. Everything works fine while it's indexing and starts freezing again when it completes.
Here the build I'm using:
WebStorm 2018.1.3
Build #WS-181.4892.44, built on May 8, 2018
Please sign in to leave a comment.
I uploaded a set of thread dumps with the name:
threadDumps-freeze-20180517-123137-WS-181.4892.44.zip
I can't enable the CPU profiler, I get a popup message with the following:
"Can't attach profiler agent dynamically. Please try to enable it persistent."
Do you use styled components? Looks similar to https://youtrack.jetbrains.com/issue/WEB-32700, fixed in the next update
Yes, and the lagging components do use css mixins as described in the issue.
I'm happy to hear a fix was issued, for now I have rolled back to 2017.3 until the update is released.
Thanks for the prompt reply!