Skip to content

Formatting/linting doesn't work with Python on a remote #18250

@chrissype

Description

@chrissype

Issue Type: Bug

  1. Create a python environment on the remote with required formatting tools (black in this case) by using poetry, with the environment outside of the project root
  2. Save the file, or run 'Format Document'
  3. No formatting applied (black), or timeout when formatter can't be found (isort)

I've tried toggling just about every python/formatting setting in both the remote and local settings but I cannot get vscode to find black or isort. Both local and remote are on most recent insiders.

VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:37:28.172Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
Remote OS version: Linux x64 5.11.0-40-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 1, 2, 2
Memory (System) 16.00GB (1.40GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: -.-.-.-
OS Linux x64 5.11.0-40-generic
CPUs Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2900)
Memory (System) 31.07GB (2.11GB free)
VM 0%
Extensions (29)
Extension Author (truncated) Version
Nix bbe 1.0.1
clipboard-manager Edg 1.4.2
vscode-drawio hed 1.6.3
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.209.6
remote-ssh ms- 0.70.0
remote-ssh-edit ms- 0.70.0
sublime-keybindings ms- 4.0.10
fish-vscode sky 0.2.1
githistory don 0.6.19
gitlens eam 11.7.0
vscode-test-explorer hbe 2.21.1
plantuml jeb 2.17.0
svg joc 1.4.15
vsc-python-indent Kev 1.14.2
vscode-python-test-adapter lit 0.7.0
fish-ide lun 0.4.0
rainbow-csv mec 2.0.0
python-path mge 0.0.11
vscode-docker ms- 1.18.0
python ms- 2022.0.1656400781-dev
vscode-pylance ms- 2022.1.1-pre.1
jupyter ms- 2021.11.1001550889
live-server ms- 0.2.11
test-adapter-converter ms- 0.1.5
autodocstring njp 0.5.4
vscode-subword-navigation ow 1.2.0
fish-vscode sky 0.2.1
org-mode too 0.5.0

Metadata

Metadata

Assignees

Labels

area-lintingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinvestigatingWe are looking into the cause of the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions