-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information
1 parent
95b750b
commit 3c6e732
Showing
5 changed files
with
107 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# TEMPLATE-INCLUDE-BEGIN | ||
###if( $isPythonEnabled == "true" && $bazel8OrAbove == "true" ) | ||
##load("@rules_python//python:defs.bzl", "PyInfo") | ||
###end | ||
# TEMPLATE-INCLUDE-END | ||
|
||
def py_info_in_target(target): | ||
# TEMPLATE-IGNORE-BEGIN | ||
return PyInfo in target | ||
# TEMPLATE-IGNORE-END | ||
|
||
# TEMPLATE-INCLUDE-BEGIN | ||
## #if( $isPythonEnabled == "true" ) | ||
## return PyInfo in target | ||
## #else | ||
## return None | ||
## #end | ||
# TEMPLATE-INCLUDE-END | ||
|
||
def get_py_info(target): | ||
# TEMPLATE-IGNORE-BEGIN | ||
if PyInfo in target: | ||
return target[PyInfo] | ||
else: | ||
return None | ||
# TEMPLATE-IGNORE-END | ||
|
||
# TEMPLATE-INCLUDE-BEGIN | ||
## #if( $isPythonEnabled == "true" ) | ||
## if PyInfo in target: | ||
## return target[PyInfo] | ||
## else: | ||
## return None | ||
## #else | ||
## return None | ||
## #end | ||
# TEMPLATE-INCLUDE-END |
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