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

Error With Python LSP Server Progress Reporting #4367

Open
2 of 3 tasks
kevinjfoley opened this issue Mar 13, 2024 · 1 comment
Open
2 of 3 tasks

Error With Python LSP Server Progress Reporting #4367

kevinjfoley opened this issue Mar 13, 2024 · 1 comment
Labels

Comments

@kevinjfoley
Copy link

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

Python files take a long time to open, about 3-4 seconds. Looking in pylsp::stderr, I see:

WARNING - pylsp.workspace - There was an error while trying to initialize progress reporting.Likely progress reporting was used in a synchronous LSP handler, which is not supported by progress reporting yet. To prevent waiting for the timeout you can set `skip_token_initialization=True`. Not every editor will show progress then, but many will.
Traceback (most recent call last):
  File "/Users/kfoley/.pyenv/versions/3.8.16/envs/venv/lib/python3.8/site-packages/pylsp/workspace.py", line 250, in _progress_begin
    self._endpoint.request(
  File "/Users/kfoley/.pyenv/versions/3.8.16/lib/python3.8/concurrent/futures/_base.py", line 446, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError

The timestamps seem to match up with when the file actual opens and so it seems like this is keeping the file from appearing until it has timed out.

Steps to reproduce

Open a python file with the Python LSP Server.

Expected behavior

No timeout error from lsp server

Which Language Server did you use?

Using latest version of Python LSP Server

OS

MacOS

Error callstack

No response

Anything else?

No response

@jcs090218
Copy link
Member

I am not sure what's the correct fix. Let me ping one of our Python maintainers.

cc @seagle0128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants