Skip to content

No python formatter installed - Local new setup or Github codespace with python extension + formatter installed #22897

Open

Description

There are issues with formatting Python files in Codespaces due to deprecated settings.

If the user has the python extension installed with pylance and pylint and expected default installed formatters (with Microsoft Python related extensions), then they should be able to instantly format python files.

See #22363 #18743 #22412 also just open ANYTHING in a new vscode or ideally github codespace and try to format a python file. It offers to install a python formatter, like this extension, then after install continues to not have an installed available python formatter, purely because configuring settings in VS Code is painful.

Originally I was using this locally, but after realizing it's probably easier in a Github codespace I then found that's beyond help too.
Maybe try automatically migrating or remove incompatible settings, and merge in new defaults if required (like the default python formatter once installed as part of the Microsoft Python/Pylance extensions).

Recreation steps:

Create a new github codespace, pointing to repo tyeth/Adafruit_CircuitPython_PyCamera
Branch: wifi-qrsetup
Then goto examples/qrio-update-wifi/code.py and try to format the file.
Install top suggested extension for python formatters (Microsoft Python extension). Reload window.
Try to format file again, find there is still no formatter installed in theory.

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

Metadata

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions