Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSC cannot detects .black-formatter #531

Closed
rocke2020 opened this issue Aug 10, 2024 · 2 comments
Closed

VSC cannot detects .black-formatter #531

rocke2020 opened this issue Aug 10, 2024 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue is not triaged.

Comments

@rocke2020
Copy link

rocke2020 commented Aug 10, 2024

Diagnostic Data

Python 3.10.14
Black Formatter v2024.2.0 which the lastest version my vscode "Extensions"
VS Code, Version: 1.92.1 (user setup)
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

"[python]": {
    "editor.defaultFormatter": "ms-python.black-formatter",

VSC access ubuntu 22.04.4 LTS (Jammy Jellyfish) by SSH

Behaviour

Expected Behavior

VSC detects black formatter

Actual Behavior

VSC doesn't detects black formatter.
If I install autopep8 extension with all the same environment and disable black formatter, VSC detects autopep8 .

I use a last one lower version of VScode and last one lower version black-formatter, VSC still cannot detects black-formatter.

@rocke2020 rocke2020 added the bug Issue identified by VS Code Team member as probable bug label Aug 10, 2024
@github-actions github-actions bot added the triage-needed Issue is not triaged. label Aug 10, 2024
@rocke2020
Copy link
Author

屏幕截图 2024-08-10 220221
when I enable both black formatter and autopep8 extion and use black formatter as default,
error as above.
It seems there is sth wrong by python extention and black formatter in vscode.

@rocke2020
Copy link
Author

caused by wrongly format in black-formatter.args: ["--line-length", 100]
The correct one is
black-formatter.args: ["--line-length", "100"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue is not triaged.
Projects
None yet
Development

No branches or pull requests

1 participant