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

TypeError in feature_manager.py #510

Closed
zmaktr opened this issue Feb 3, 2024 · 3 comments
Closed

TypeError in feature_manager.py #510

zmaktr opened this issue Feb 3, 2024 · 3 comments
Assignees
Labels
triage-needed Issue is not triaged.

Comments

@zmaktr
Copy link

zmaktr commented Feb 3, 2024

Type: Bug

The error shows a type mismatch expectation within the Python extension's handling of LSP features.

2024-02-03 06:31:54.844 [info] Traceback (most recent call last):
  File "/home/user/.vscode-server/extensions/ms-python.pylint-2023.10.1/bundled/tool/lsp_server.py", line 292, in <module>
    def code_action(params: lsp.CodeActionParams) -> List[lsp.CodeAction]:
  File "/home/user/.vscode-server/extensions/ms-python.pylint-2023.10.1/bundled/libs/pygls/feature_manager.py", line 193, in decorator
    raise TypeError(
TypeError: Options of method "textDocument/codeAction" should be instance of type <class 'lsprotocol.types.CodeActionOptions'>

Extension version: 2024.0.0
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:27:46.147Z)
OS version: Linux x64 6.5.0-15-generic
Modes:
Remote OS version: Linux x64 5.15.0-91-generic

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-12700H (20 x 1270)
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_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 3, 3, 3
Memory (System) 31.01GB (25.61GB free)
Process Argv --unity-launch --crash-reporter-id 2bc31cca-36c5-49a8-b166-eb92b320f9ed
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Item Value
Remote SSH: dumbo
OS Linux x64 5.15.0-91-generic
CPUs Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz (48 x 1200)
Memory (System) 251.77GB (239.27GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019b:30953937
3ef8e399:30949928
e3gdj431:30956216

@github-actions github-actions bot added the triage-needed Issue is not triaged. label Feb 3, 2024
@zmaktr zmaktr changed the title TypeError in lsp_server.py TypeError in feature_manager.py Feb 3, 2024
@karthiknadig
Copy link
Member

@zmaktr This can happen if you have a mismatched version of lsprotocol or pygls in the environment. Can you share what you have in your environment.

@karthiknadig karthiknadig self-assigned this Feb 5, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Feb 5, 2024
@karthiknadig
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
@tamird
Copy link

tamird commented Jun 12, 2024

I'm seeing this as well. When you say "in the environment" what do you mean? My project doesn't have a dependency on pygls or lsprotocol and I'm using VS Code:

Version: 1.90.0
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:34:48.028Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

tombh pushed a commit to openlawlibrary/pygls that referenced this issue Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Issue is not triaged.
Projects
None yet
Development

No branches or pull requests

3 participants