-
Notifications
You must be signed in to change notification settings - Fork 344
Debugger crashes with Python 3 project #402
Copy link
Copy link
Closed as not planned
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)lang: pythonPython rules integrationPython rules integrationproduct: IntelliJIntelliJ pluginIntelliJ pluginstaleIssues or PRs that are stale (no activity for 30 days)Issues or PRs that are stale (no activity for 30 days)topic: debuggingIssues related to debuggingIssues related to debuggingtype: bug
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)lang: pythonPython rules integrationPython rules integrationproduct: IntelliJIntelliJ pluginIntelliJ pluginstaleIssues or PRs that are stale (no activity for 30 days)Issues or PRs that are stale (no activity for 30 days)topic: debuggingIssues related to debuggingIssues related to debuggingtype: bug
Type
Projects
Status
Done
Summary
We are unable to debug python3 bazel applications when the project sdk is setup to python 3, the debugger will crash with the following error before even executing the application:
If we don't switch the project sdk to python 3, import resolution by intellij will be done using the wrong libs and may be showing unexpected errors.
Steps to reproduce
Clone code example from rules_python repo: https://github.com/bazelbuild/rules_python
Create a venv with python 3, I used 3.6.5 and use the following .bazelproject file:
Debugging will now work if the project sdk is python2, but if you change it to the venv, it will crash.
To change the project sdk, go to
File -> Project Structure -> Project