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

Use python3 as the Python path within containers #2476

Merged
merged 16 commits into from
Nov 23, 2020

Conversation

bwateratmsft
Copy link
Collaborator

@bwateratmsft bwateratmsft commented Nov 10, 2020

According to this comment, this should be the changes needed on the Docker side to fix #2455.

@int19h, if I understand the flow correctly, I think that the Python extension handles debugAdapterPython and debugLauncherPython. The debugLauncherPython Python interpreter will start our "launcher", which then unconditionally uses python3 to start the real debugpy launcher inside the container: https://github.com/microsoft/vscode-docker/blob/master/resources/python/launcher.py#L17

Then, using the "python": "python3" option in this PR, the launcher inside the container uses python3 to launch the app, which is what is desired.

Does all this sound right?

@bwateratmsft bwateratmsft added this to the 1.8.0 milestone Nov 10, 2020
@bwateratmsft bwateratmsft requested a review from a team as a code owner November 10, 2020 14:25
@bwateratmsft bwateratmsft modified the milestones: 1.8.0, 1.8.1 Nov 10, 2020
@int19h
Copy link

int19h commented Nov 10, 2020

Yep, once we merge microsoft/vscode-python#14676 and microsoft/debugpy#467, this change should do the trick for you.

@bwateratmsft bwateratmsft linked an issue Nov 17, 2020 that may be closed by this pull request
@int19h
Copy link

int19h commented Nov 17, 2020

Here's the extension build with the requisite change:
https://github.com/microsoft/vscode-python/releases/tag/2020.11.367453362

@bwateratmsft bwateratmsft merged commit 31956c8 into master Nov 23, 2020
@bwateratmsft bwateratmsft deleted the bmw/pythonlauncher branch November 23, 2020 14:56
Dmarch28 pushed a commit to Dmarch28/vscode-docker that referenced this pull request Mar 4, 2021
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants