File Structure takes ~5 seconds before it registers keystrokes
Hey guys,
One of the features I use on a regular basis is the File Structure view, which allows me to jump quickly to a method in the file. However, some time ago it started lagging a lot when narrowing down the list while typing. I think it's not lagging because it's filtering the list, but rather keystrokes are not being registered at all in the first few seconds, since I can't close it with Escape either.
Here's how it goes:
Cmd + O -> opens FIle Structure view immediatelly.
I type "get" and in ~5 seconds, the list if filtered and I can also close the window with the escape button. Before that I can click around the list and it works instantenously, but I can't filter the list or close the window with the keyboard.
This behavior renders the File Structure view useless unfortunatelly. I'm wondering if any of you has any idea why this happens and it there's a way to make it work properly.
I'm using WebStorm 7.0.3 #WS-133.434 from Dec 26 on MacOS 10.9.1.
Happy to provide any other needed information.
Best regards,
Petar
请先登录再写评论。
Hello!
is this behavior specific to certain file(s)/project? How large are the JS files in your project? Can you check if the problem persists after invalidating caches?
If yes (likely:(), please try taking CPU snapshots as described in https://intellij-support.jetbrains.com/entries/29983118-Reporting-performance-problems
Hello!
Thanks for the reply!
I just tried it with a new project and it does not occur there. So it seems that it's specific to my main project. The TypeScript files are of decent size, but nothing really too humongous (< 500 lines each), so that shouldn't be an issue.
invalidating caches unforutnatelly did not fix the issue. Should I try re-creating the project or is there anything else I should try?
Thanks!
Petar
Please can you attach your idea.log? Hope it gives me a clue...
Sorry for the dumb question, but where can I find the idea.log file?
Usually in ~/Library/Logs/WebStorm7. See https://jetbrains.zendesk.com/entries/23352446 for information about log files location
Thanks! Logs are attached.
Attachment(s):
idea.log.zip
seems your problem is related to multiple NullPointerException errors I can see in your log. Can you provide other logs as well (idea.log.1, idea.log.2, ... ) located in the same folder as idea.log? Also, your issue may be caused by certain project misconfiguration (MyJSNamedItem.getProject() returns null)
Can you check if the problem can be recreated after creating a fresh new project and copying your source files there?
Re-creating the project seems to solve the problem. For completeness, I'm attaching the rest of the logs.
Attachment(s):
idea.log.4.zip
idea.log.3.zip
idea.log.2.zip
idea.log.1.zip
Hi Elena!
Creating a new project fixed the issue for a while, but eventually it relapsed and now I can't use the feature anymore. Attaching the logs in case they can help.
Best regards,
Petar
Attachment(s):
idea.log.4.zip
idea.log.3.zip
idea.log.2.zip
idea.log.1.zip
idea.log.zip
Hello!
still lots of nullpointerExceptions - nearly on every action... But logs are again incomplete - I'd like to see all logs created since the last session has been started. And, of course, your project would give me a clue... As the issue is clearly specific to your configuration/sources
Hello!
I archived/deleted all current logs and restarted the app to get a clean log file for one session.
I started WebStorm,waited till the project is loaded, pressed Cmd+O and started typing. The log file for this session is attached.
What's the best way to give you more info about the project? Should I just share all files in the .idea directory or do you need something more specific?
Thanks!
Best regards,
Petar
Attachment(s):
idea.log.zip
Thanks... Unfortunately it seems that I need the whole project (not just .idea folder, but the source files as well)
Of course, this forum is not the appropriate place for sharing the code. I'd suggest creating a support ticket for this