-
Notifications
You must be signed in to change notification settings - Fork 325
Analyzer is running very slowly in IntelliJ #4012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CPU snapshot would definitely help. Also, logs and auto-collected thread dumps (Help -> Compress Logs...) |
OK, can I email them to you instead of posting them here? (I have your jetbrains email). |
@gspencergoog Yes, you can send it directly to me. Even better, open an issue on YouTrack (Project: Web, Subsystem: Dart) and attach your snapshot and logs to the issue. To keep files private you should mark attachments as visible to |
OK, the issue is https://youtrack.jetbrains.com/issue/WEB-42137 |
Also, there are millions of log entries like this:
Use |
@alexander-doroshko, thanks for the investigation! @gspencergoog - I see the plugin version in your initial comment ( |
Yes, that's what I see on the Plugins page: |
Yes, from looking at the code we're re-parsing the pubspec file on each query (we have some caching for this, but this particular code path is effectively bypassing the cache). |
Moved the 2nd issue to #4036. |
I believe this issue should be reopened. The analyzer is still running very slowly in IntelliJ, for large projects. |
I believe the fix here should address the issue. It was committed after the last release and will go out as part of the next one, expected in early December. |
Steps to Reproduce
As I edit the Flutter repo code, the responsiveness of the analyzer integration in IntelliJ seems to get worse and worse. It helps some to "clear caches and restart", but only for a little while. My memory limit for IntelliJ are boosted (
-Xms512m -Xmx6144m -XX:ReservedCodeCacheSize=512m
), so I don't think that's the issue, or if it is, it's using an awful lot of memory...It's slow enough that as I edit code, I can watch the syntax highlighting update about once every two to 15 seconds, which is far to slow to be useful. The suggestions dialog takes 3-4 seconds to show up, and another second or two to populate, sometimes showing the little in-menu spinner for ten seconds before showing any information, and sometimes it just gives up after 20 seconds or so with "No Suggestions" when I know for sure that there are valid suggestions to make.
Is there any information I can collect for you that will help you fix this? It's really hampering my productivity.
I captured a CPU profiling snapshot while this was happening, if that helps.
Version info
The text was updated successfully, but these errors were encountered: