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

Python Jedi server won't start on Fedora 37 #20001

Closed
vkukk opened this issue Oct 13, 2022 · 2 comments
Closed

Python Jedi server won't start on Fedora 37 #20001

vkukk opened this issue Oct 13, 2022 · 2 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@vkukk
Copy link

vkukk commented Oct 13, 2022

Type: Bug

Traceback (most recent call last):
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/run-jedi-language-server.py", line 9, in
from jedi_language_server.cli import cli
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/jedi_language_server/cli.py", line 7, in
from .server import SERVER
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/jedi_language_server/server.py", line 15, in
from pygls.lsp.methods import (
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pygls/lsp/init.py", line 23, in
from pygls.lsp.types import *
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pygls/lsp/types/init.py", line 6, in
from pygls.lsp.types.general_messages import *
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pygls/lsp/types/general_messages.py", line 35, in
from pygls.lsp.types.language_features import (CallHierarchyClientCapabilities,
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pygls/lsp/types/language_features/init.py", line 2, in
from pygls.lsp.types.language_features.call_hierarchy import *
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pygls/lsp/types/language_features/call_hierarchy.py", line 70, in
class CallHierarchyIncomingCall(Model):
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pydantic/main.py", line 369, in new
cls.signature = ClassAttribute('signature', generate_model_signature(cls.init, fields, config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/veiko/.vscode-oss/extensions/ms-python.python-2022.16.0-universal/pythonFiles/lib/jedilsp/pydantic/utils.py", line 231, in generate_model_signature
merged_params[param_name] = Parameter(
^^^^^^^^^^
File "/usr/lib64/python3.11/inspect.py", line 2715, in init
raise ValueError('{!r} is not a valid parameter name'.format(name))
ValueError: 'from' is not a valid parameter name
[Info - 14:22:01] Connection to server got closed. Server will restart.
[Error - 14:22:01] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 14:22:01] Python Jedi client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097

Extension version: 2022.16.0
VSCodium version: VSCodium 1.72.1 (f39747598a53ebfc7454599bb310a2ffe4e4ce68, 2022-10-11T18:20:14.732Z)
OS version: Linux x64 5.19.14-300.fc37.x86_64
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 7 2700 Eight-Core Processor (16 x 3917)
GPU Status 2d_canvas: enabled
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: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 0
Memory (System) 31.27GB (25.74GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE x11
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 13, 2022
@karthiknadig
Copy link
Member

@vkukk We use an external library when you select Jedi ( https://github.com/pappasam/jedi-language-server ). This particular issue seems to be with the pygls library, please file an issue in the repo https://github.com/openlawlibrary/pygls. Since this is python 3.11, I think support for it is still being worked on. This is likely openlawlibrary/pygls#234

@benz0li
Copy link

benz0li commented Oct 25, 2022

Cross reference: pappasam/jedi-language-server#233

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants