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

Saving empty .py file in multi root workspace crashes isort. #362

Open
rob-steele-active opened this issue Dec 24, 2023 · 1 comment
Open
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@rob-steele-active
Copy link

If I open a multi root workspace and save a file it usually works fine.

If I happen to save an empty file VSCode hangs and displays getting code actions from 'isort'. There are a few things that need to happen for this to break it seems.

  1. The file has to be empty. Any python code or comments will prevent this bug from occurring.
  2. Must be in a multi root workspace.
  3. Must save the empty file.
image

After this no import organization will work until VSCode is restarted.

Granted this is not going to be a common issue. But I thought it was worth bringing attention to.

https://github.com/rob-steele-active/isort-bug-repro

@github-actions github-actions bot added the triage-needed Issue is not triaged. label Dec 24, 2023
@karthiknadig
Copy link
Member

Thanks for the repro project. I will investigate what is going on with this.

@karthiknadig karthiknadig self-assigned this Jan 2, 2024
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug and removed triage-needed Issue is not triaged. labels Jan 2, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants