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

Getting a bunch of error messages after switching to the pre release version #22122

Closed
Felix-Meyer opened this issue Oct 1, 2023 · 5 comments
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@Felix-Meyer
Copy link

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:

  1. XXX

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 version (& distribution if applicable, e.g. Anaconda): 3.7.12
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

Multiroot scenario, following user settings may not apply:

languageServer: "Jedi"

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
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.85GB (2.00GB free)
Process Argv --crash-reporter-id 85774685-d215-40c1-a2d4-a1732dbf2c08
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30792226
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
f6dab269:30613381
a9j8j154:30646983
showlangstatbar:30737416
962ge761:30841074
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingt:30839829
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
pythonmpsinfo:30842941
dsvsc015:30845448

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 1, 2023
@karthiknadig
Copy link
Member

@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.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 2, 2023
@Felix-Meyer
Copy link
Author

Sorry what am I supposed to upgrade? My Python or my VS Code?

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 2, 2023
@karthiknadig
Copy link
Member

@Felix-Meyer Upgrade your python environment. when creating the environment with conda you can say conda create -n <name> python=3.8

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 2, 2023
@triplepoint
Copy link

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.
https://devblogs.microsoft.com/python/python-in-visual-studio-code-october-2023-release/#deprecation-of-python-3-7-support

@karthiknadig
Copy link
Member

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants