Correct handling of debugging of py_binary
targets when there is a transition
#6600
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
product: Android Studio
Android Studio plugin
product: CLion
CLion plugin
product: GoLand
GoLand plugin
product: IntelliJ
IntelliJ plugin
product: PyCharm
PyCharm plugin
type: bug
Description of the bug:
Note: Please see associated PR here.
I have marked all IDEs because I assume they will all experience the same problem when handling Python targets but am only testing with Intelli-J.
When using a pinned Python interpreter, the expected behavior is that any
py_binary
targets that use the pinned interpreter will continue to be able to be debugged. The actual behavior is that thepy_binary
that uses the pinned interpreter is no longer able to use the debugger features in the IDE.This problem is happening because the Rule type comes through from the aspect as
_transition_py_binary
and the logic in the plugin does not recognize this as apy_binary
.Which category does this issue belong to?
Intellij, GoLand, CLion, PyCharm, Android Studio
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Please find attached an example project
handle-rule-transitions-example-20240729.tgz
.bazelisk run ":bin"
and observe the output textHeizung
.BUILD.bazel
and right click on thebin
target.run
It should be the case that this
py_binary
is able to be debugged.Which Intellij IDE are you using? Please provide the specific version.
Intelli-J 2024.1
What programming languages and tools are you using? Please provide specific versions.
Python 3.10
What Bazel plugin version are you using?
Recent
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Screenshot without the patch;
Screenshot with the patch noting that the debug is now enabled;
The text was updated successfully, but these errors were encountered: