-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
VSCode gets stuck on sorting imports if source.organizeImports
is enabled and isort is installed
#17828
Comments
Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for your understanding and patience! |
It seems to work fine for me. Can you provide the following info:
|
Your issue could be a potential dup of #7042 based on your answers. |
Didn't know the extension ships with isort, I just used
Will tell in an hour, but I assume latest version compatible with python 3.9
Will give in an hour, the issue is on my work pc and my workday starts in an hour
Looks like it is, I did set the path to |
from getpass import getpass
import json
from os import path
import requests
from requests.structures import CaseInsensitiveDict
import rsa
import websockets |
Yep, closing as dup of #7042. Please try some of the workarounds mentioned there like #7042 (comment). |
Environment data
python.languageServer
setting: Pylance[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
VSCode sorts my imports automatically on save
Actual behaviour
When saving a python file with
in settings.json I get a notification with an indefinite loading bar saying
Saving [filename]: Applying code action "Sort Imports".
, which seemingly never finishes.Looking at Output>Python I see that it tries to call
isort - --diff
, and when I try to run it myself in a terminal it also hangs forever. Runningisort . --diff
in the project root however finishes instantly and works as intendedSteps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
to your settings.json
3. Save a random python file
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)I clicked "cancel" on the sorting task here
The text was updated successfully, but these errors were encountered: