Skip to content

Python linter/formatter extensions don't support virtual workspaces #21459

@Pokeylooted

Description

@Pokeylooted

Issue:
Some extensions are failing to start, below is an example of Ruff.

Error message:

Name: Ruff
Module: ruff
Python extension loading
Waiting for interpreter from python extension.
Python extension loaded
Server Command [RUN]: c:\Users\pokey\AppData\Local\Microsoft\WindowsApps\python3.11.exe c:\Users\pokey\.vscode\extensions\charliermarsh.ruff-2023.20.0-win32-x64\bundled\tool\server.py
Server Command [DEBUG]: c:\Users\pokey\AppData\Local\Microsoft\WindowsApps\python3.11.exe c:\Users\pokey\.vscode\extensions\charliermarsh.ruff-2023.20.0-win32-x64\bundled\tool\_debug_server.py
[Error - 12:29:32 AM] Starting client failed
Launching server using command c:\Users\pokey\AppData\Local\Microsoft\WindowsApps\python3.11.exe failed.

Steps to reproduce:

  1. Have some of the extensions failing to start enabled
  2. Install the Github Repositories Extension.
  3. Click the blue/green button in the bottom left corner and select “Open remote repository”.
  4. Select the desired repository.
  5. Upon loading, an error message will appear in the bottom right corner.

Note:
The Black Formatter and iSort extensions also exhibit the same issues.

iSort console output

I can reproduce this on macOS. Note as an additional step I had to add the repository's directory to my "trusted" directories.

Name: Ruff
Module: ruff
Python extension loading
Waiting for interpreter from python extension.
Python extension loaded
Server Command [RUN]: /opt/homebrew/bin/python3 /Users/mz/.vscode/extensions/charliermarsh.ruff-2023.20.0-darwin-arm64/bundled/tool/server.py
Server Command [DEBUG]: /opt/homebrew/bin/python3 /Users/mz/.vscode/extensions/charliermarsh.ruff-2023.20.0-darwin-arm64/bundled/tool/_debug_server.py
[Error - 10:03:42 AM] Starting client failed
Launching server using command /opt/homebrew/bin/python3 failed.
isort also failed to load

Name: isort
Module: isort
Python extension loading
Waiting for interpreter from python extension.
Python extension loaded
[Error - 10:03:42 AM] Starting client failed
Launching server using command /opt/homebrew/bin/python3 failed.

Version - v0.58.0
Link to Ruff ruff issue about this

Metadata

Metadata

Assignees

Labels

importantIssue identified as high-priorityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions