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

fix: Properly support non-Java Bazel 8 projects in IntelliJ #7006

Merged

Conversation

tpasternak
Copy link
Contributor

Previously, the condition to load rules_java was based on the "additional languages" field, which led to issues as Java is always present in IntelliJ (unlike PyCharm). This change modifies the condition to explicitly check if rules_java is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.

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

Previously, the condition to load rules_java was based on the "additional languages" field,
which led to issues as Java is always present in IntelliJ (unlike PyCharm).
This change modifies the condition to explicitly check if rules_java
is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.
@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 Nov 19, 2024
@tpasternak tpasternak merged commit 373eb7a into bazelbuild:master Nov 19, 2024
8 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Nov 19, 2024
@tpasternak tpasternak deleted the aspect-templating-non-java-case branch November 19, 2024 11:01
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this pull request Nov 25, 2024
…ld#7006)

Previously, the condition to load rules_java was based on the "additional languages" field,
which led to issues as Java is always present in IntelliJ (unlike PyCharm).
This change modifies the condition to explicitly check if rules_java
is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this pull request Nov 25, 2024
…ld#7006)

Previously, the condition to load rules_java was based on the "additional languages" field,
which led to issues as Java is always present in IntelliJ (unlike PyCharm).
This change modifies the condition to explicitly check if rules_java
is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.
tpasternak pushed a commit to tpasternak/bazel-intellij that referenced this pull request Nov 25, 2024
…ld#7006)

Previously, the condition to load rules_java was based on the "additional languages" field,
which led to issues as Java is always present in IntelliJ (unlike PyCharm).
This change modifies the condition to explicitly check if rules_java
is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.
mai93 added a commit that referenced this pull request Nov 25, 2024
* Fixed Java enabled condition in SyncAspectTemplateProvider (#6987)

Removed the check for GENERIC language class when determining if Java is enabled. This change ensures that only the presence of JAVA language class sets the "isJavaEnabled" flag to true.

* fix: Properly support non-Java Bazel 8 projects in IntelliJ (#7006)

Previously, the condition to load rules_java was based on the "additional languages" field,
which led to issues as Java is always present in IntelliJ (unlike PyCharm).
This change modifies the condition to explicitly check if rules_java
is actually loaded in the project, ensuring proper handling of non-Java projects in IntelliJ.

* support aspect template for Python (#7011)

* fix issues with aspect templates not available in query sync mode (#7048)

* fix issues with aspect templates not available in query sync mode

* revise based on review

* fix: Don't require rules_java and rules_python for bazel 7 and older (#7052)

* doc: Update changelog

* Update CHANGELOG

---------

Co-authored-by: Daniel Brauner <daniel.brauner@jetbrains.com>
Co-authored-by: Jason Trinh <xuanson.trinh@jetbrains.com>
Co-authored-by: Mai Hussien <70515749+mai93@users.noreply.github.com>
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
Development

Successfully merging this pull request may close these issues.

4 participants