This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Python language server didn't work properly when editing '__init__.py' #572
Comments
Output found in the
|
Aha, so that's what that stack trace is. The diagnostics not going away are likely due to the LS exiting and leaving them there. |
For reference, this was likely a bug beforehand too, it's just that the latest release now will actually report the exception and exit rather than swallowing it and then silently refusing any future requests. |
Verify with new LS. |
Verified, there is a test for that in #602. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@CamberLoid commented on Wed Jan 30 2019
Issue Type: Bug
Python language server raised an exception and caused problems when handling this
import (modules),(),
After double-checking on my Windows, I am sure this is because of the extra comma in the import expression in
__init__.py
,Using Anaconda distribution. Have not tried to reproduce on other OS.
Environment data
Actual behaviour
Cannot access origin libraries by Ctrl+(Modules), and the exceptions below.
It acts like this
Expected behaviour
Access origin libraries by Ctrl+(Modules)
and no Exceptions
Logs
Extension version: 2019.1.0
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.18323
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
@d3r3kk commented on Thu Jan 31 2019
Verified, here's another gif that might help figure out the issue:
This is using
Microsoft Python Language Server version 0.1.78.0
, Miniconda3 on Windows with Python 3.7.2The text was updated successfully, but these errors were encountered: