Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Kotlin: Support Kotlin 2.3.0-Beta2#20965

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
andersfugmann wants to merge6 commits intomain
base:main
Choose a base branch
Loading
fromandersfugmann/kotlin_2.3.0-beta2

Conversation

@andersfugmann
Copy link
Contributor

This PR add support for Kotlin 2.3.0-Beta2.

To support Kotlin 2.3.0-Beta2, and update of therules_kotlin bazel package needs to be updated to 2.2.0. Unfortunatly that drops support for Kotlin 1.6.x and 1.7.x.

HunterSherms reacted with hooray emoji
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR adds support for Kotlin 2.3.0-Beta2 by updating therules_kotlin Bazel package from version 2.1.3-codeql.1 to 2.2.0-codeql.1. This update necessarily drops support for Kotlin versions 1.6.x and 1.7.x.

Key Changes:

  • Updatedrules_kotlin from 2.1.3-codeql.1 to 2.2.0-codeql.1 with updated dependencies and patches
  • Added support for Kotlin 2.3.0-Beta2 with version-specific compatibility files
  • Removed support for Kotlin 1.6.0, 1.6.20, 1.7.0, and 1.7.20 (dependencies and version-specific files)

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
misc/bazel/registry/modules/rules_kotlin/metadata.jsonUpdated to reference only the new 2.2.0-codeql.1 version
misc/bazel/registry/modules/rules_kotlin/2.2.0-codeql.1/source.jsonNew source configuration for rules_kotlin 2.2.0 with patch references
misc/bazel/registry/modules/rules_kotlin/2.2.0-codeql.1/patches/*.patchUpdated patch files for the new rules_kotlin version
misc/bazel/registry/modules/rules_kotlin/2.2.0-codeql.1/MODULE.bazelNew MODULE.bazel with updated dependencies (rules_android 0.6.4, protobuf 29.0, etc.)
misc/bazel/registry/modules/rules_kotlin/2.1.3-codeql.1/source.jsonRemoved old version configuration
java/kotlin-extractor/versions.bzlRemoved 1.6.x and 1.7.x versions, added 2.3.0-Beta2
java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_3_0-Beta2/*.ktAdded version-specific compatibility files for Kotlin 2.3.0-Beta2
java/kotlin-extractor/src/main/kotlin/utils/TypeSubstitution.ktAdded@Suppress("REDUNDANT_ELSE_IN_WHEN") annotations for Kotlin 2.3 compatibility
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.ktRemoved TODO comment and added suppression annotation
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.ktAdded suppression annotations, explicit return type, and workaround for nullable delegate property
java/kotlin-extractor/deps/*.jarRemoved 1.6.x and 1.7.x dependency JARs, added 2.3.0-Beta2 JARs
java/kotlin-extractor/BUILD.bazelRemovedresource_strip_prefix configuration
MODULE.bazelUpdated rules_kotlin dependency and repository references
Comments suppressed due to low confidence (1)

misc/bazel/registry/modules/rules_kotlin/2.2.0-codeql.1/MODULE.bazel:10

  • There is a commented-out duplicate declaration ofbazel_dep(name = "rules_java", version = "7.2.0") on line 10, with an active identical declaration on line 11. This commented line should be removed unless there's a specific reason to keep it.

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

@andersfugmannandersfugmann marked this pull request as draftDecember 5, 2025 10:06
@igfoo
Copy link
Contributor

If we're removing support for 1.6 and 1.7, then we should move (intov_1_8_0) or delete all the files inutils/versions/v_1_{6,7}*

}

returnnull
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Isn't this identical to thev_2_2_20-Beta2 file? Why do we need it?

@@ -0,0 +1,13 @@
// For ComponentRegistrar
@file:Suppress("DEPRECATION","DEPRECATION_ERROR")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can we just add the newDEPRECATION_ERROR suppression to thev_1_9_0-Beta? Or was it not supported back then?

@Suppress("USELESS_CAST")
val delegate= (s.delegateasIrVariable?)?:run {
logger.errorElement("Local delegated property is missing delegate", s)
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Don't we want to just skip the next few lines, continuing at// Getter:, rather than returning?

tw.writeStmts_block(blockId, parent, idx, callable)
tw.writeHasLocation(blockId, locId)
extractVariable(s.delegate, callable, blockId,0)
// For Kotlin < 2.3, s.delegate is not-nullable. Cast to a be nullable,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Removea inCast to a be nullable?

// For Kotlin < 2.3, s.delegate is not-nullable. Cast to a be nullable,
// as a workaround to silence warnings for kotlin < 2.3 about the elvis
// operator being redundant.
// For Kotlin >= 2.3, the cast is redundant, so we need to silence that warning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Do you know why it is now nullable? Is that actually an error?

@hfhbd
Copy link

BTW Kotlin 2.3.0 is released, so you can update 2.3.0-Beta2 to 2.3.0

MathisGuillet1 reacted with thumbs up emojiHunterSherms reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@igfooigfooigfoo left review comments

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@andersfugmann@igfoo@hfhbd

[8]ページ先頭

©2009-2025 Movatter.jp