Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extremely slow in autocompletion & code analysis for Kotlin projects in Intellij IDEA

Tags:

We have a project on IDEA that consists of a couple med sized Java packages and one very small Kotlin package (5 files). I noticed performance is fine with any Java packages, but it's 10x slower in autocompletion, code analysis and compilation for the very small Kotlin package. Autocompletion occasionally was so slow to a point where the popover couldn't load all the methods and it had to load a couple API incrementally. Every time our developer types a word and wait for autocomplete, it takes about 2-5 seconds for the expected autocomplete to show up. Sometimes autocomplete was too slow to show anything, and we had to cancel the word and retyped it and waited. Same slowness occurs in code analysis. This is significantly impacting my team's productivity. From our research, it appears this is a well-known long lasting issue. This also happens for our another small project. I was wondering what we can do to fix this? Thanks.

Kotlin plugin is latest, Version: 1.1.3-release-IJ2017.2-2 Intellij is also on latest version, 2017 2.1 (built on July 31 2017)

like image 228
Kelvin Avatar asked Aug 09 '17 03:08

Kelvin


People also ask

Why is my Visual Studio code so slow?

You might have extensions installed that slow Visual Studio down. For help on managing extensions to improve performance, see Change extension settings to improve performance. Similarly, you might have tool windows that slow Visual Studio down.

Why is C++ Intellisense slow?

When creating a class it auto includes header files in the classes header file. Those included headers also include other headers and so on. So when VSCode recalculates header file Intellisense it's very slow.

How can I make intellisense faster in Visual Studio?

1) Visual settings, 2) re-scan interval and 3) deletion of project cache made limited (if any for 1,2) effects in my case. Then I start playing with Automatic Precompiled Header Cache Quota (Tools > Options > Text Editor > C/C++ > Advanced).

Which feature in VS 2022 enables autocompletion of code?

In Visual Studio 2022 Preview 1 you can automatically complete code, up to a whole line at a time!


1 Answers

The problem visible in your snapshot is resolved in Kotlin 1.1.4. As of this writing, it's available as an EAP (Early Access Preview) release; the final version will be released soon (and bundled with IntelliJ IDEA 2017.2.2).

like image 78
yole Avatar answered Sep 20 '22 12:09

yole