nvimdots icon indicating copy to clipboard operation
nvimdots copied to clipboard

Pylsp creates a lot of error message in lsp.log

Open AngelontheRoad opened this issue 2 years ago • 2 comments

Version confirmation

  • [X] Confirm

Following prerequisites

  • [X] Confirm

Neovim version

NVIM v0.9.1

Operating system/version

Win11 22H2 22621.1848

Terminal name/version

wezterm 20230408-112425-69ae8472

$TERM environment variable

No response

Branch info

main (Default/Latest)

Fetch Preferences

SSH (use_ssh = true)

Affected language servers

pylsp

How to reproduce the issue

Just create a python file and code

Actual behavior

Everything is fine but a lot of error message. I tried to install pylsp in my local conda environment and nothing changed.

Expected behavior

No response

Support info

quicker_8a8916e4-12c0-42c7-ac0d-4aeaffebffbd.png

Logs

[ERROR][2023-06-23 23:21:49] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:49,957 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 256\n"
[ERROR][2023-06-23 23:21:50] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:50,226 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 258\n"
[ERROR][2023-06-23 23:21:50] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:50,276 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 261\n"
[ERROR][2023-06-23 23:21:50] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:50,397 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 262\n"
[ERROR][2023-06-23 23:21:51] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:51,596 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 263\n"
[ERROR][2023-06-23 23:21:54] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:54,152 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 266\n"
[ERROR][2023-06-23 23:21:54] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:54,161 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 268\n"
[ERROR][2023-06-23 23:21:54] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:54,635 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 270\n"
[ERROR][2023-06-23 23:21:54] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:54,643 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 274\n2023-06-23 23:21:54,644 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 275\n2023-06-23 23:21:54,645 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 276\n"
[ERROR][2023-06-23 23:21:54] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:54,756 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 277\n"
[ERROR][2023-06-23 23:21:55] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:55,075 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 278\n"
[ERROR][2023-06-23 23:21:55] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:55,082 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 279\n2023-06-23 23:21:55,088 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 280\n"
[ERROR][2023-06-23 23:21:55] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:55,094 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 281\n"
[ERROR][2023-06-23 23:21:55] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:55,289 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 282\n"
[ERROR][2023-06-23 23:21:55] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:55,603 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 283\n"
[ERROR][2023-06-23 23:21:56] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:56,187 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 284\n"
[ERROR][2023-06-23 23:21:56] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:56,189 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 287\n2023-06-23 23:21:56,194 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 288\n"
[ERROR][2023-06-23 23:21:56] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:56,805 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 289\n"
[ERROR][2023-06-23 23:21:56] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:56,809 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 290\n"
[ERROR][2023-06-23 23:21:57] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:57,355 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 291\n"
[ERROR][2023-06-23 23:21:59] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:21:59,464 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 293\n"
[START][2023-06-23 23:29:28] LSP logging initiated
[ERROR][2023-06-23 23:29:28] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:29:28,068 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 4\n"
[ERROR][2023-06-23 23:29:28] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:29:28,103 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 5\n"
[ERROR][2023-06-23 23:29:29] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:29:29,097 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 6\n"
[ERROR][2023-06-23 23:29:29] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:29:29,537 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 7\n"
[ERROR][2023-06-23 23:29:35] .../vim/lsp/rpc.lua:734	"rpc"	"/home/chris/.local/share/nvim/mason/bin/pylsp"	"stderr"	"2023-06-23 23:29:35,163 CST - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 9\n"

Additional information

Logs are almost the same sentence but have different time and id. Every time I tried to input, a new log generated.

An issue has already been submitted in pylsp repo. The difference is my lsp is not broken. But the lsp log size may become very large if I leave it alone.

AngelontheRoad avatar Jun 23 '23 15:06 AngelontheRoad