Analyzer is running very slowly in IntelliJ
See original GitHub issueSteps 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
✓] Flutter (Channel add_macos_platform, v1.10.15-pre.240, on Linux, locale en_US.UTF-8)
• Flutter version 1.10.15-pre.240 at [redacted]
• Framework revision 5a512e325c (2 hours ago), 2019-10-24 08:46:54 -0700
• Engine revision f56623d65e
• Dart version 2.6.0 (build 2.6.0-dev.8.1 d43cd7e909)
[✓] IntelliJ IDEA Community Edition (version 2019.2)
• IntelliJ at /opt/my-intellij-ce-current
• Flutter plugin version 40.2.4
• Dart plugin version 192.7402
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (8 by maintainers)
Top GitHub Comments
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.
https://youtrack.jetbrains.com/issue/WEB-42685