JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs

Home Page:https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to troubleshoot PluginClassLoader issues?

jwren opened this issue · comments

What happened?

What is the best course of action to troubleshoot issues such as the following?

I tested "instrumented-flutter-idea-SNAPSHOT.jar" on Iguana. This crash occurs immediately after opening Android Studio. Didn't open my project yet.
com.intellij.diagnostic.PluginException: io.flutter.actions.FlutterNewProjectAction PluginClassLoader(plugin=PluginDescriptor(name=Flutter, id=io.flutter, descriptorPath=plugin.xml, path=~/Library/Application Support/Google/AndroidStudio2023.2/plugins/instrumented-flutter-idea-SNAPSHOT.jar, version=SNAPSHOT, package=null, isBundled=false), packagePrefix=null, state=active) at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1030) at 
...

From here: flutter/flutter-intellij#7103 (comment)

Are these issues stemming from incorrect from/to versions of dependencies?  Something else?  What is the best practice to test against creating rolls where users will encounter these issues?

The problem here is that I can successfully build with Gradle, but the dependencies are not resolved for all users, just a subset.

Relevant log output or stack trace

No response

Steps to reproduce

See issues from users, included above

Gradle IntelliJ Plugin version

233.13135.103

Gradle version

8.2.1

Operating System

None

Link to build, i.e. failing GitHub Action job

No response

For a start, make sure Plugin Verifier reports no problems on the relevant IDEs/versions https://plugins.jetbrains.com/docs/intellij/verifying-plugin-compatibility.html.

Please use Slack or the Forum for support regarding any issues not related to this Gradle plugin https://plugins.jetbrains.com/docs/intellij/getting-help.html#problems-with-code-support-issues