manifold-systems / manifold-ij

IntelliJ plugin for Manifold
Other
17 stars 5 forks source link

IntelliJ freezes on "Gradle: Importing maven repository data" after sync #21

Open martinbonnin opened 4 months ago

martinbonnin commented 4 months ago

Follow up from https://youtrack.jetbrains.com/issue/KTIJ-19271/IntelliJ-freezes-on-Gradle-Importing-maven-repository-data-after-sync. After a Gradle Sync, IntelliJ stays stuck on "Importing maven repository data" for several seconds/minutes.

It turns out it seems to be stuck in ManLibraryChecker.getManifoldJarsInProject (thread dump)

Environment:

IntelliJ IDEA 2023.3.5 (Community Edition)
Build #IC-233.14808.21, built on March 12, 2024
Runtime version: 17.0.10+1-b1087.21 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
  debugger.mayBringFrameToFrontOnBreakpoint=false
  debugger.new.tool.window.layout=true
  ide.experimental.ui=true
Non-Bundled Plugins:
  org.intellij.plugins.hcl (233.13135.65)
  idea.plugin.protoeditor (233.14808.14)
  manifold.ij (2023.3.20)
  com.intellij.lang.jsgraphql (233.14808.14)
  org.jetbrains.amper (233.14475.9)
  org.asciidoctor.intellij.asciidoc (0.41.9)
  kotest-plugin-intellij (1.3.74-IC-2023.3)
  org.jetbrains.android (233.14808.21)
  mobi.hsz.idea.gitignore (4.5.2)
Kotlin: 233.14808.21-IJ
rsmckinney commented 4 months ago

Hi @martinbonnin. Is IJ freezing/hanging with this? Manifold is calling an IJ API that should not hang. Is this happening consistently? Is there any way I can access your project to debug this? Thanks!

martinbonnin commented 4 months ago

It's freezing for several seconds. I've seen up to a couple of minutes on my laptop. I don't have a minimal reproducer unfortunately but it happened quite consistently with https://github.com/apollographql/apollo-kotlin/ and https://github.com/ktorio/ktor.