Open buzzysin opened 7 months ago
Are you using a File share? This is common if the file share machine is somehow blocked either by firewall or antimalware, or if the share name changed.
Hi @karthiknadig, I am afraid I am just using the Windows file system on my local machine, no layers in-between, no WSL, etc.
@buzzysin Did you update the value of any Environment variables? Did you change anything in hosts file?
@karthiknadig My hosts file is untouched and my environment is something like this
(Edit: removed environment variable spam to expiring pastebin link)
@buzzysin What is the version of miniconda that you have? also does it fail if you use windows store python?
@karthiknadig
I was using Miniconda 3 Python 3.12 version 24.1.2-0 I installed the Windows Store version of Python which fixed my issue (with ms-python.black-formatter).
isort now has some other issue where it is not being recognised as a formatter. I should probably open a different ticket for that.
@buzzysin I sort is import organizer, you will see that when you use the Organize Import
command. It does not register as a formatter. If you want to use it as a default import organizer on save, then you need to set it like this:
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports.isort": "explicit"
},
},
Thanks for the help! For now I've switched to using the windows store version of python, which solved my problem.
@buzzysin I recommend having a look at Ruff Extension (https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff). It provides isort
, black
, and several linters like pylint
, flake8
and several flake8
plugins in a single package. It is also implemented in rust and is significantly more performant.
System info: Windows 11 (Windows NT x64 10.0.22631) VS Code version 1.88.1 ms-python.isort: 2023.10.1
This issue occurs with multiple formatters. I've tried ms-python.{autopep8, black, isort} and the same error occurs:
I expect this to be an environment or a network configuration issue on my end, but I haven't narrowed it down. Disabled my VPN, tried a different wireless channel, reset my wifi adaptor.