Hello there! In my kotlin project IDEA extrimly sl...
# announcements
m
Hello there! In my kotlin project IDEA extrimly slow. Syntax highlighting of 500 lines file takes up to minute. How can I help JB team improve performance of syntax highlighting?
Copy code
/0                                       bus            Z270 PC MATE (MS-7A72)
/0/0                                     memory         64KiB BIOS
/0/3c                                    memory         32GiB Системная память
/0/3c/0                                  memory         Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2015-01-21 09:55+0000Last-Translator: Aleksey Kabanov <Unknown>Language-Team: Russian <ru@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-
/0/3c/1                                  memory         16GiB DIMM DDR4 Синхронная 2133 MHz (0,5 ns)
/0/3c/2                                  memory         Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2015-01-21 09:55+0000Last-Translator: Aleksey Kabanov <Unknown>Language-Team: Russian <ru@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-
/0/3c/3                                  memory         16GiB DIMM DDR4 Синхронная 2133 MHz (0,5 ns)
/0/42                                    memory         256KiB L1 кэш
/0/43                                    memory         1MiB L2 кэш
/0/44                                    memory         8MiB L3 кэш
/0/45                                    processor      Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
c
If it’s a notebook, it could be the power or just a restart issue. In my Macbook, sometimes, AS gets very slow. Some times is just a connecting it to a power source solution, some times is a restart
m
It's PC.
c
is it connected to a power source? 🙂 It is funny though that I run similar configurations on a macbook pro and it runs just fine
b
IDEA + Kotlin = Resource hog. So best advice to speed it up - free as much resources as you can
Make sure you don;t have unnecessary background processes running
m
htop while IDEA perform analyze
It does not use all CPU. I set memory limit to 9gb.
b
Might be stuck somewhere, then. Try doing a clean reinstall of your IDE to the latest version (removing all leftover caches, data before installing again)
m
Same issue on PC ryzen 3900x 48gb RAM.
b
Had this myself few times and clean reinstall helped a lot
m
@Big Chungus already did it. Last idea, and last EAP Idea same behavior.
On clean ubuntu.
b
I'm out of ideas then 😕
Did you disable gradle autosync? That froze my idea too many times when editing build.gradle.kts
m
No, I didn't. But issue relates to simple kt files, not kts.
Screenshot20201124150528.jpg
j
it is a "known issue" that the syntax highlighting is working too slow in some kotlin files and I think it is on the roadmap to get it working with the same speed that java files
☝️ 1
k
I don't see the version of idea you are using?