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

Add workaround for bug in pythonExtension.getExecutionDetails() method #1514

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

arnaudsjs
Copy link
Contributor

@arnaudsjs arnaudsjs commented Dec 12, 2023

This bug in the Python extension causes the this.pythonApi.settings.getExecutionDetails().execCommand[0] to return the path to the root of the venv instead of the path to the python binary in that venv. This PR applies a workaround for this issue until it's fix in the python extension.

Closes #1508

@@ -40,7 +40,7 @@ async function main() {

const vscodeExecutablePath = await downloadAndUnzipVSCode('stable');
const cliPath = resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, "linux-x64");
cp.spawnSync(cliPath, ['--install-extension', 'ms-python.python'], {
cp.spawnSync(cliPath, ['--install-extension', 'ms-python.python', '--force'], {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work without this anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag makes sure that we always check whether there is a newer version of the extensions available and upgrade to it if there is one. It should just make sure that we get faster feedback when there is a breaking change. So to answer your question: without this flag the tests should also work.

@arnaudsjs arnaudsjs merged commit b2dcce4 into master Dec 13, 2023
@arnaudsjs arnaudsjs deleted the issue/add-workaround-for-bug branch December 13, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new python extension release breaks our tests
3 participants