-
Notifications
You must be signed in to change notification settings - Fork 20
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
isort
formatter server crashes on 3.11
#97
Comments
I found the following log file. I don't know if it helps.
|
@pfmoore Can you share what you get in Output > isort panel ? It should have more details on what caused the crash.
The above error actually does not impact the results of import sorting, nor does it cause the server to crash. I think something else is failing before it gets to some stable point. |
Ah, thanks for the pointer - I hadn't been able to find that output.
|
@pfmoore This looks like you are using python 3.11. It seems like |
Thanks. Does this mean I need to go back to Python 3.10 for now? Assuming so, how would I know when a possible fix that I can test is released? |
isort
formatter server crashes on 3.11
Yes you have to drop to 3.10. I will be leaving this issue open till the 3.11 gets resolved. |
Great, thanks for the help. |
With 3.11 being released in the next day or so, is there any progress on this? I know that the root cause is in pygls (I'll ping that issue too) but are you working on any short-term mitigation if pygls isn't ready? If not, how do I disable the isort server until this gets fixed? |
@pfmoore You should be able to disable the isort extension itself (see screen shot below) from the extensions view. Python core extension will detect that and use |
curious - what is the proper solution to mitigate this issue while developing in python 2.7 venv? Disable the extension as in screenshot above? |
You have two options: Option 2: Downgrading the python extension to 2021.12.*. To do this you have to uninstall |
Type: Bug
Start VS Code on my project.
I cannot reproduce on other projects. I have followed the instructions on a similar issue I found (reinstall all extensions) and that had no effect. The other issue mentioned a workspace file - I have no
.vscode
directory in this project folder, and I don't know where else I should look.Restarting the isort server just produces the same error.
Extension version: 2022.2.0
VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z)
OS version: Windows_NT x64 10.0.22000
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: