Skip to content

${command:python.interpreterPath} incorrect substitution in pythonDeprecatePythonPath experiment #17076

Closed

Description

@Artalus

Per suggestion from Brett Cannon (@brettcannon), I create a new issue, even though I am positive it is the same one as #16568

VS Code:

Version: 1.59.0 (system setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.17763

Python extension:

Name: Python
Id: ms-python.python
Description: IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit tests, and more.
Version: 2021.8.1105858891
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

tasks.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "doit",
            "type": "process",
            "command": "${command:python.interpreterPath}",
            "args": [
                "py.py"
            ],
            "problemMatcher": []
        }
    ]
}

Default interpreter:
image

Task output:

> Executing task: R:\py\C:\Python\39\python.exe py.py <
The terminal process failed to launch: Path to shell executable "R:\py\C:\Python\39\python.exe" does not exist.

Here R:\py is the folder currentrly opened in vscode.

Initially I got the same issue in the folder where I had virtualenv in a subfolder:

> Executing task: S:\git\Jenot\s:\git\Jenot\venv\Scripts\python.exe -m doit <
The terminal process failed to launch: Path to shell executable "S:\git\Jenot\s:\git\Jenot\venv\Scripts\python.exe" does not exist.

VS Code in there uses a relative path ro interpreter for some reason:
image

Activity

  1. added
    bug
    triage-needed
    on Aug 23, 2021
  2. added
    area-editor-*
    and removed
    triage-needed
    on Aug 24, 2021
  3. paulacamargo25 commented on Sep 2, 2021

    @paulacamargo25

    Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.

  4. locked as resolved and limited conversation to collaborators on Dec 9, 2021
  5. karrtikr commented on Jun 8, 2022

    @karrtikr

    Why was this closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-editor-*bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions