-
Notifications
You must be signed in to change notification settings - Fork 40
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
Verify compatibility with K2 mode for Kotlin-dependent plugins #1150
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YannCebron
reviewed
Sep 11, 2024
...e/structure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/IdeMode.kt
Outdated
Show resolved
Hide resolved
...ure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/problems/MinorWarnings.kt
Outdated
Show resolved
Hide resolved
...ure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/problems/MinorWarnings.kt
Show resolved
Hide resolved
...ure-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/problems/MinorWarnings.kt
Outdated
Show resolved
Hide resolved
.../com/jetbrains/pluginverifier/results/problems/UndeclaredKotlinK2CompatibilityModeProblem.kt
Outdated
Show resolved
Hide resolved
YannCebron
approved these changes
Sep 11, 2024
...re-intellij/src/main/java/com/jetbrains/plugin/structure/intellij/plugin/KotlinPluginMode.kt
Outdated
Show resolved
Hide resolved
...ugin-verifier/verifier-intellij/src/main/java/com/jetbrains/pluginverifier/PluginVerifier.kt
Show resolved
Hide resolved
YannCebron
reviewed
Sep 17, 2024
...ij/src/main/java/com/jetbrains/plugin/structure/intellij/problems/InvalidDescriptorErrors.kt
Outdated
Show resolved
Hide resolved
LChernigovskaya
approved these changes
Sep 17, 2024
470e660
to
42952c2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Plugin that depends on the Kotlin plugin and does not declare compatibility will emit a Compatibility Problem.
KotlinPluginMode
property in plugins that indicates the K1/K2 compatibility level. UseImplicit
for missing value in existing plugins. UseInvalid
for plugins that declare no compatibility with both K1 and K2 compatibility levels.UndeclaredKotlinK2CompatibilityMode
plugin problem with Warning level for any plugin. The actual plugin problem severity depends on the Platform version:CompatibilityProblem
reported by the Plugin Verifier. More specifically, it is an instance ofUndeclaredKotlinK2CompatibilityModeProblem
in the Plugin Verifier.KotlinCompatibilityModeProblemResolver
class. Thestructure
library is unaware of the IDE version, hence the decision is deferred to the Plugin Verifier.KotlinCompatibilityModeProblemResolver
will remove all instances ofUndeclaredKotlinK2CompatibilityMode
plugin structure warnings after remapping, as not to cause duplicate compatibility problems.InvalidKotlinPluginMode
plugin problem with Error level for any plugin. This happens when bothsupportsK1
andsupportsK2
are set tofalse
.See MP-6825