IntelliJ freezes because of Scala caches and PSI (CPU above 800% on Mac)

已回答

I am using a MacBook Pro (M1) with MacOS 12.5 and when I updated to 2022.2.1 for a Scala project, the IDE becomes unresponsive, with CPU above 800%. I am able to load the activity monitor (if I click quickly after loadding the IDE). Any thoughts on how to improve this? 

The project is small and this was never an issue before upgrading.

Edit: Downgrading to Scala Plugin 2022.2.8 fixes this, alongside downgrading Intellij. But this in turn causes some import issues, and of course it's probably good to be able to use the latest versions.

 

Versions:

- Intellij 2022.2.1, Build #IU-222.3739.54

- Scala plugin: 2022.2.672

- OS: MacOS 12.5

 

```

 %CPU  Subsystem

866.0  <Process total CPU usage>
316.8  Plugin Scala: scala.caches (in org.jetbrains.plugins)
212.7  Plugin Scala: scala.lang.psi.types (in org.jetbrains.plugins)
175.4  Plugin Scala: scala.lang.psi.types.api.designator (in org.jetbrains.plugins)
 97.5  Plugin Scala: scala.runtime
 19.8  <JIT compiler>
 19.6  Plugin Scala: scala.lang.psi.impl.base.patterns (in org.jetbrains.plugins)
  6.4  <unidentified: UI t

```

 

0

Is it reproducible with some sample project that you could provide for investigation?

0

Yes, I'll add it in the ticket.

0

Thanks!

0

请先登录再写评论。