You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if it's because of Experiment 'pythonPromptNewFormatterExt' is active. I'd very much rather be out of any experiments before they’re 100% stable.
No longer gives an error after installing "Black" (why didn't it say anywhere that I should do this?), but still no formatting is happening, or so it seems (see screencast).
Formatting features are removed from python extension and moved to independent extensions. as you have identified you need to install Black Formatter or Autopep8 extension. There are 3rd party extensions such as Yapf and Ruff that also support formatting.
Open the logs for Python > Black Formatter and see what it says when you trigger formatting. Please file a bug on the black formatter repo if it is not formatting. Note that stable release of black formatter extension does not support formatting selection. That feature was added recently to black and is being worked on in the extension.
These changes were announced for months and we have been talking about these changes in our blogs. This is now in stable. The prompt experiment is to guide people to use these formatter and is not an experiment for the formatting feature itself.
Type: Bug
Behaviour
Expected vs. Actual
Expected: Cmd+Shift+P > "Format document" formats the document
Actual: "There is no formatter for 'python' files installed."
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.21.13331008
VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z)
OS version: Darwin arm64 22.3.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: