question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Analyzer is running very slowly in IntelliJ

See original GitHub issue

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

✓] 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:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
devoncarewcommented, Nov 28, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code analysis is slow – IDEs Support (IntelliJ Platform)
To speed up the processing you can try enabling memory indicator ( File | Settings |Appearance & Behavior | Appearance | Show memory...
Read more >
Why is IntelliJ IDEA so slow? - Quora
First, try replacing your hard drive with SSD. If that doesn't work, try adding more memory on top of that. If that doesn't...
Read more >
Extremely slow in autocompletion & code analysis for Kotlin ...
Sometimes autocomplete was too slow to show anything, and we had to cancel the word and retyped it and waited. Same slowness occurs...
Read more >
Guide: Getting the most out of IntelliJ : r/rust - Reddit
... analysis and/or as a one-button Run configuration. Re-check step 1 with new heap usage patterns. If you think IntelliJ is too slow...
Read more >
Performance problem with running dotnet analysis
I have tried to install the SonarAnalyzer but it drastically affected a build performance. With the analyzer, build takes almost 10min and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found