-
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
Getting a bunch of error messages after switching to the pre release version #22122
Comments
@Felix-Meyer Support for 3.7 is dropped in pre-release. Please use the older version of python extension if you want to continue to use 3.7, or upgrade your environment to 3.8 or greater. |
Sorry what am I supposed to upgrade? My Python or my VS Code? |
@Felix-Meyer Upgrade your python environment. when creating the environment with conda you can say |
So I guess "There are no plans to actively remove support for Python 3.7, and so we expect the extension will continue to work unofficially with Python 3.7 for the foreseeable future" literally meant "we're breaking python 3.7 support in the very next release" ? Thanks, y'all. |
If the underlying tool drops support for 3.7 we can’t do anything from the extension to prevent it. In the case files by the user, Jedi-language-server dropped support for 3.7 while adding support for 3.12. If we try and support 3.7, 3.12 would break. you can always use extension version pinning to keep using older version of the extension until you can migrate out. |
Type: Bug
Behaviour
I had this problem: #22073 (comment)
As recomended in there I switched to the pre release version. But now I get a bunch of error messages everytime I open VS Code.
Expected vs. Actual
XXX
Steps to reproduce:
Diagnostic data
2023-09-28 08:10:09.641 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-09-28 08:10:09.641 [info] [Info - 8:10:09 AM] Connection to server got closed. Server will restart.
2023-09-28 08:10:09.641 [info] true
2023-09-28 08:10:09.641 [info] [Error - 8:10:09 AM] Python Jedi client: couldn't create connection to server.
2023-09-28 08:10:09.641 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-09-28 08:10:09.642 [info] [Error - 8:10:09 AM] Restarting server failed
2023-09-28 08:10:09.642 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-09-28 08:10:10.023 [info] Traceback (most recent call last):
File "c:\Users\felix.vscode\extensions\ms-python.python-2023.17.12701009\pythonFiles\run-jedi-language-server.py", line 9, in
from jedi_language_server.cli import cli
File "c:\Users\felix.vscode\extensions\ms-python.python-2023.17.12701009\pythonFiles\lib\jedilsp\jedi_language_server_init_.py", line 5, in
from importlib_metadata import version
File "c:\Users\felix.vscode\extensions\ms-python.python-2023.17.12701009\pythonFiles\lib\jedilsp\importlib_metadata_init_.py", line 6, in
import zipp
File "c:\Users\felix.vscode\extensions\ms-python.python-2023.17.12701009\pythonFiles\lib\jedilsp\zipp_init_.py", line 9, in
from .py310compat import text_encoding
File "c:\Users\felix.vscode\extensions\ms-python.python-2023.17.12701009\pythonFiles\lib\jedilsp\zipp\py310compat.py", line 5
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
^
SyntaxError: invalid syntax
2023-09-28 08:10:10.037 [info] [Error - 8:10:10 AM] Server initialization failed.
2023-09-28 08:10:10.037 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-09-28 08:10:10.037 [info] [Error - 8:10:10 AM] The Python Jedi server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
2023-09-28 08:10:10.038 [info] [Error - 8:10:10 AM] Python Jedi client: couldn't create connection to server.
2023-09-28 08:10:10.038 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-09-28 08:10:10.038 [info] [Error - 8:10:10 AM] Restarting server failed
2023-09-28 08:10:10.038 [info] Message: Pending response rejected since connection got disposed
Code: -32097
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.17.12721006
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: