Skip to content

Progress Broken in Nvim #374

Open
Open
@ibrokemypie

Description

@ibrokemypie

I have pylsp set up in neovim through lspconfig, as well as the plugin fidget.nvim to show me lsp progress. This was working fine previously, but has since stopped working, filling my lsp log with messages such as the below. This is a pain because I want to know the progress of the autoimport cache as that feature doesn't seem to be working for me right now.

python-lsp-server version 1.7.2-1
neovim version 0.9.0
nvim-lspconfig commit 427378a

[ERROR][2023-04-27 16:12:22] .../vim/lsp/rpc.lua:734	"rpc"	"pylsp"	"stderr"	"2023-04-27 16:12:22,272 AEST - 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.\nTraceback (most recent call last):\n  File \"/usr/lib/python3.10/site-packages/pylsp/workspace.py\", line 148, in report_progress\n    token = self._progress_begin(title, message, percentage)\n  File \"/usr/lib/python3.10/site-packages/pylsp/workspace.py\", line 185, in _progress_begin\n    self._endpoint.request(self.M_INITIALIZE_PROGRESS, {'token': token}).result(timeout=1.0)\n  File \"/usr/lib/python3.10/concurrent/futures/_base.py\", line 460, in result\n    raise TimeoutError()\nconcurrent.futures._base.TimeoutError\n"
[ERROR][2023-04-27 16:12:31] .../vim/lsp/rpc.lua:734	"rpc"	"pylsp"	"stderr"	"2023-04-27 16:12:31,401 AEST - 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.\nTraceback (most recent call last):\n  File \"/usr/lib/python3.10/site-packages/pylsp/workspace.py\", line 148, in report_progress\n    token = self._progress_begin(title, message, percentage)\n  File \"/usr/lib/python3.10/site-packages/pylsp/workspace.py\", line 185, in _progress_begin\n    self._endpoint.request(self.M_INITIALIZE_PROGRESS, {'token': token}).result(timeout=1.0)\n  File \"/usr/lib/python3.10/concurrent/futures/_base.py\", line 460, in result\n    raise TimeoutError()\nconcurrent.futures._base.TimeoutError\n"

The config for python lsp is as below:

			pylsp = {
				root_dir = require("utils").get_python_root,
				settings = {
					pylsp = {
						plugins = {
							rope_autoimport = {
								enabled = true,
							},
							rope = {
								enabled = true,
							},
							black = {
								enabled = false,
							},
						},
					},
				},
			},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions