-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin Verifier should verify against the bundled JBR #1611
Comments
Those are valid points — passing the Still, the case when the picked IDE has no JBR bundled is possible. @novotnyr Can we introduce a As I see, currently we use provided Runtime, then check for the bundled one: |
Describe the need of your request
When the Plugin Verifier verifies the compatibility of a plugin with a given IDE, it should also verify the compatibility of the plugin against the JBR that comes with the given IDE.
Proposed solution
Remove the
-runtime-dir
command line argument given to the plugin verifier.intellij-platform-gradle-plugin/src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/VerifyPluginTask.kt
Line 239 in 0c6867a
From the README.md of the Plugin Verifier:
As far as I am aware, the IDE distributions downloaded for the Plugin Verifier should usually have a bundled JBR. Also note that in contrast to all the other usages of
RuntimeAware
, the JBR is not actually used as a runtime in this context. The PluginVerifier uses the JBR directory to resolve classes used by the plugin, so it can verify whether the used classes, methods, and fields exist in the given IDE/JBR.Alternatives you've considered
It might make sense to provide an explicit option to use a different JBR as the one bundled with the IDE. I am also not sure if we can really assume that all IDEs downloaded for the Plugin Verifier have a bundled JBR. So, it might also make sense to test whether they have one, and fallback to the JBR used by the other tasks.
Additional context
No response
The text was updated successfully, but these errors were encountered: