microsoft/vscode-autopep8

Cannot Format Selection

PhungXuanAnh opened this issue · 1 comments

When I select a piece of code, and then choose Format Selection, vscode raises a pop-up as in below image:

image

these are my configurations:

"[python]": {
        "editor.defaultFormatter": "ms-python.autopep8",
        "editor.formatOnSave": true,
        "editor.formatOnPaste": true,
        "editor.formatOnSaveMode": "modifications",
    },
"autopep8.path": [
    "/home/xuananh/.pyenv/versions/3.9.0/bin/autopep8" 
],
"autopep8.interpreter":[
    "/home/xuananh/.pyenv/versions/3.9.0/bin/python"
],
"autopep8.args": [
    "--max-line-length", "120", "--experimental",
    "--global-config", "${workspaceFolder}/setup.cfg"
],
"autopep8.showNotifications": "onError",
"autopep8.importStrategy":"fromEnvironment",

Ubuntu 22.04
Vscode 1.83.1
autopep8 2.0.4 (pycodestyle: 2.11.1)

@PhungXuanAnh Please use the pre-release version of the extension. This is fixed there.