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

Unable to get Python Debugger to work for pytest targets #5146

Open
vinnybod opened this issue Jul 25, 2023 · 5 comments
Open

Unable to get Python Debugger to work for pytest targets #5146

vinnybod opened this issue Jul 25, 2023 · 5 comments
Labels
lang: python Python rules integration P3 We're not considering working on this, but happy to review a PR. (No assignee) product: PyCharm PyCharm plugin topic: debugging Issues related to debugging

Comments

@vinnybod
Copy link

Description of the bug:

I am unable to get the PyCharm debugger working for any Python tests with Bazel using the common rules_python rules or with some of the other implementations. In all of these cases I can still "Run" the tests successfully inside the IDE. But using "Debug" does not.

In rules_python, the debugger hangs. With the others, I get errors from_pydev_execfile.py.
I'm not sure which, if any, are related to the plugin. But given some of the errors come from the PyCharm code itself, I figured it makes sense to start here.

I put the errors alongside the reproduction steps in the README of my example repo.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

I created a minimal reproduction in this repo: https://github.com/vinnybod/bazel_py_example

The README has instructions for reproducing the errors in each submodule.

Which Intellij IDE are you using? Please provide the specific version.

PyCharm 2023.1.4

What programming languages and tools are you using? Please provide specific versions.

Python

What Bazel plugin version are you using?

2023.07.04.0.1-api-version-231

Have you found anything relevant by searching the web?

I tried implementing #4745 , but it made no difference. I don't think its the same issue.
I also saw #2093 but it seems to be a different problem.

Any other information, logs, or outputs that you want to share?

I put steps to reproduce and the errors I was seeing in the example repo: https://github.com/vinnybod/bazel_py_example

@Pavank1992 Pavank1992 added lang: python Python rules integration topic: debugging Issues related to debugging awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin and removed awaiting-maintainer Awaiting review from Bazel team on issues labels Jul 25, 2023
@mai93 mai93 added P3 We're not considering working on this, but happy to review a PR. (No assignee) and removed awaiting-maintainer Awaiting review from Bazel team on issues labels Jul 25, 2023
@mai93 mai93 removed their assignment Jul 25, 2023
@sgowroji sgowroji added product: PyCharm PyCharm plugin and removed product: IntelliJ IntelliJ plugin labels Aug 1, 2023
Copy link

github-actions bot commented Feb 1, 2024

Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Feb 1, 2024
Copy link

This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post @bazelbuild/triage in a comment here and we'll take a look. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
@vinnybod
Copy link
Author

@bazelbuild/triage

@sgowroji sgowroji reopened this Feb 17, 2024
@github-actions github-actions bot removed the stale Issues or PRs that are stale (no activity for 30 days) label Feb 18, 2024
@jackwellsxyz
Copy link

jackwellsxyz commented Aug 5, 2024

@sgowroji I saw you labeled this as a Pycharm issue, but it's actually an IntelliJ issue as far as I can tell, since only IntelliJ supports the Bazel plugin. It's still an issue for us, unfortunately..

@tpasternak
Copy link
Collaborator

@jackwellsxyz could you please try PyCharm 2024.2.2 and newest rules_python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: python Python rules integration P3 We're not considering working on this, but happy to review a PR. (No assignee) product: PyCharm PyCharm plugin topic: debugging Issues related to debugging
Projects
Status: Untriaged
Development

No branches or pull requests

6 participants