-
Notifications
You must be signed in to change notification settings - Fork 314
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
Conversation
@ujohnny i'm getting this for clion, if something comes to your mind rn, then plase share, otherwise I'll do it myself
|
293e185
to
f2698ab
Compare
Does this help? |
18b94f5
to
6c31065
Compare
282278d
to
f08b77d
Compare
So the CI is green, please just review #5968 separately, so I can rebase this branch |
cfba67b
to
77b719c
Compare
Ok, the PR is ready, I'm only blocked by #5968 |
77b719c
to
4603287
Compare
4603287
to
f816ce1
Compare
intellij_platform_sdk/BUILD
Outdated
@@ -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? |
There was a problem hiding this comment.
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
There was a problem hiding this 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"], |
There was a problem hiding this comment.
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?
third_party/go/BUILD
Outdated
@@ -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"], | |||
|
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add trailing comma
intellij_platform_sdk/build_defs.bzl
Outdated
@@ -104,6 +104,23 @@ def _check_channel_map(): | |||
fail("Unexpected values in INDIRECT_PRODUCT_CHANNELS: %s" % unexpected) | |||
|
|||
DIRECT_IJ_PRODUCTS = { | |||
"clion-2024.1": struct( |
There was a problem hiding this comment.
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
@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? |
There was a problem hiding this 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
@@ -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"], |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
intellij_platform_sdk/BUILD.clion241
Outdated
]), | ||
) | ||
|
||
java_library(name = "jsr305") # not bundled |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Checklist
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: