Skip to content
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

Support JetBrains IDEs 2024.1 #5960

Merged
merged 6 commits into from
Jan 23, 2024
Merged

Conversation

tpasternak
Copy link
Contributor

@tpasternak tpasternak commented Jan 18, 2024

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.

Discussion thread for this change

Issue number: <please reference the issue number or url here>

Description of this change

most of the files are just copies, you can compare them with:

diff -r sdkcompat/v2{33,41}
diff -r cpp/sdkcompat/v2{33,41}
diff -r testing/testcompat/v2{33,41}
diff intellij_platform_sdk/BUILD.idea2{33,41}
diff intellij_platform_sdk/BUILD.ue2{33,41}
diff intellij_platform_sdk/BUILD.clion2{33,41}

@tpasternak tpasternak changed the title wip wip: Support JetBarains IDEs 2024.1 Jan 18, 2024
@tpasternak tpasternak changed the title wip: Support JetBarains IDEs 2024.1 wip: Support JetBrains IDEs 2024.1 Jan 18, 2024
@tpasternak
Copy link
Contributor Author

@ujohnny i'm getting this for clion, if something comes to your mind rn, then plase share, otherwise I'll do it myself

ERROR: clwb/BUILD:58:13: Building clwb/libclwb_lib.jar (31 source files) failed: (Exit 1): java failed: error executing Javac command (from target //clwb:clwb_lib) external/remotejdk17_linux_aarch64/bin/java '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' ... (remaining 19 arguments skipped)
clwb/src/com/google/idea/blaze/clwb/run/GoogleTestUtilAdapter.java:35: error: cannot find symbol
    GoogleTestUtilAdapter adapter = EP_NAME.getPoint().extensions().findFirst().orElse(null);
                                                      ^
  symbol:   method extensions()
  location: interface ExtensionPoint<GoogleTestUtilAdapter>
Target //clwb:clwb_bazel_zip failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.659s, Critical Path: 2.16s
INFO: 4 processes: 4 internal.
ERROR: Build did NOT complete successfully

@tpasternak tpasternak force-pushed the bump-241-1 branch 4 times, most recently from 293e185 to f2698ab Compare January 19, 2024 15:11
@ahmedyarub
Copy link
Contributor

@ujohnny i'm getting this for clion, if something comes to your mind rn, then plase share, otherwise I'll do it myself

ERROR: clwb/BUILD:58:13: Building clwb/libclwb_lib.jar (31 source files) failed: (Exit 1): java failed: error executing Javac command (from target //clwb:clwb_lib) external/remotejdk17_linux_aarch64/bin/java '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' ... (remaining 19 arguments skipped)
clwb/src/com/google/idea/blaze/clwb/run/GoogleTestUtilAdapter.java:35: error: cannot find symbol
    GoogleTestUtilAdapter adapter = EP_NAME.getPoint().extensions().findFirst().orElse(null);
                                                      ^
  symbol:   method extensions()
  location: interface ExtensionPoint<GoogleTestUtilAdapter>
Target //clwb:clwb_bazel_zip failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.659s, Critical Path: 2.16s
INFO: 4 processes: 4 internal.
ERROR: Build did NOT complete successfully

Does this help?
ujohnny@eb472e4

@tpasternak tpasternak force-pushed the bump-241-1 branch 3 times, most recently from 18b94f5 to 6c31065 Compare January 19, 2024 20:56
@tpasternak
Copy link
Contributor Author

tpasternak commented Jan 19, 2024

So the CI is green, please just review #5968 separately, so I can rebase this branch

@tpasternak
Copy link
Contributor Author

tpasternak commented Jan 22, 2024

Ok, the PR is ready, I'm only blocked by #5968

@tpasternak tpasternak changed the title wip: Support JetBrains IDEs 2024.1 Support JetBrains IDEs 2024.1 Jan 22, 2024
@tpasternak tpasternak marked this pull request as ready for review January 22, 2024 14:08
@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Jan 22, 2024
@@ -601,7 +627,7 @@ config_setting(
config_setting(
name = "clion-2023.2-mac",
values = {
"cpu": "darwin_x86_64", #todo how about m1?
"cpu": "darwin_x86_64", #todo how about m1?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if you'd like to be in blame list for this line with this PR

Copy link
Collaborator

@ujohnny ujohnny left a comment

Choose a reason for hiding this comment

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

some nits, also reached you privately regarding copyrights. otherwise lgtm

sdkcompat/BUILD Outdated
@@ -15,6 +15,9 @@ java_library(
name = "sdkcompat",
visibility = SDK_COMPAT_VISIBILITY,
exports = select_for_plugin_api({
"clion-2024.1": ["//sdkcompat/v241"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we keep these sorted lexicographically?

@@ -22,6 +22,9 @@ java_library(
"intellij-ue-2023.2": ["@go_2023_2//:go"],
"intellij-2023.3": ["@go_2023_3//:go"],
"intellij-ue-2023.3": ["@go_2023_3//:go"],
"intellij-2024.1": ["@go_2024_1//:go"],
"intellij-ue-2024.1": ["@go_2024_1//:go"],

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: whitespace

java/BUILD Outdated
@@ -57,6 +57,7 @@ java_library(
"//sdkcompat",
"//shared",
"//third_party/auto_value",
"@error_prone_annotations//jar"
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add trailing comma

@@ -104,6 +104,23 @@ def _check_channel_map():
fail("Unexpected values in INDIRECT_PRODUCT_CHANNELS: %s" % unexpected)

DIRECT_IJ_PRODUCTS = {
"clion-2024.1": struct(
Copy link
Collaborator

Choose a reason for hiding this comment

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

same comment re lexicographic order

@tpasternak
Copy link
Contributor Author

some nits, also reached you privately regarding copyrights. otherwise lgtm

@mai93 How does this work? Can I/Should I just add "Copyright 2024 the Bazel Authors" notice to all the files I created or copied?

@tpasternak
Copy link
Contributor Author

Ok, formatting problems addressed and copytight headers added cc @ujohnny @mai93

Copy link
Collaborator

@mai93 mai93 left a comment

Choose a reason for hiding this comment

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

thanks @tpasternak. Left minor comments

common/settings/BUILD Outdated Show resolved Hide resolved
@@ -770,13 +807,15 @@ java_library(
"intellij-2023.1": ["@jsr305_annotations//jar"],
"intellij-2023.2": ["@jsr305_annotations//jar"],
"intellij-2023.3": ["@jsr305_annotations//jar"],
"intellij-2024.1": ["@jsr305_annotations//jar"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing for clion, should we make this always export @jsr305_annotations//jar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, but it seems that for clion we just don't need it. According to the comment above it's all about javax.annotation.Nullable class, which is included in CLion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Btw the last clion version here is 2022.3

third_party/javascript/BUILD Outdated Show resolved Hide resolved
]),
)

java_library(name = "jsr305") # not bundled
Copy link
Collaborator

Choose a reason for hiding this comment

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

here it is marked as unmarked, so should we link it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, you are right, so we reference an empty library here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so we could just add "clion-2024.1": [], to the select method and then remove java_library(name = "jsr305") # not bundled line - WDYT @mai93 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

SGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@tpasternak tpasternak linked an issue Jan 23, 2024 that may be closed by this pull request
@tpasternak tpasternak merged commit 6c40f3d into bazelbuild:master Jan 23, 2024
6 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Jan 23, 2024
@tpasternak tpasternak deleted the bump-241-1 branch January 23, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It's trivial to update to 2024.1 EAP
5 participants