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

autopep8 uses wrong script path #22190

Closed
TechnophobicLampshade opened this issue Oct 10, 2023 · 1 comment
Closed

autopep8 uses wrong script path #22190

TechnophobicLampshade opened this issue Oct 10, 2023 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@TechnophobicLampshade
Copy link

Type: Bug

formatting is not working for me. In the Python Output pane, I se the following:

2023-10-10 11:42:19.010 [info] > conda run -n mycondaenv --no-capture-output python /data/~/.vscode-server/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -m autopep8 --diff myscript.py

The path is wrong (i.e. /data/~). It doesn't resolve to anything.

On my system, /home is a symlink pointing to /data/home which I suspect is causing the problem.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.8
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default

Extension version: 2023.16.0
VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:12:16.321Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Remote OS version: Linux x64 4.18.0-348.20.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.20.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.20.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.20.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.20.1.el8_5.x86_64

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 10, 2023
@karthiknadig
Copy link
Member

karthiknadig commented Oct 10, 2023

@TechnophobicLampshade Based on the logs, that is coming from ms-python.python extension. Can you make sure you have ms-python.autopep8 extension installed, and you have "python.formatting.provider": "none" in your settings.

Formatting is moved to individual extensions, and this will be removed from the main extension:

  1. use ms-python.autopep8 for autopep8
  2. use ms-python.black-formatter for black
  3. use eeyore.yapf for yapf

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 10, 2023
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Oct 10, 2023
@karthiknadig karthiknadig self-assigned this Oct 10, 2023
@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants