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

Pylsp creates a lot of error message in lsp.log #818

Open
2 tasks done
AngelontheRoad opened this issue Jun 23, 2023 · 2 comments
Open
2 tasks done

Pylsp creates a lot of error message in lsp.log #818

AngelontheRoad opened this issue Jun 23, 2023 · 2 comments
Labels
bug Something isn't working lsp LSP related issues pylsp Python LSP Server related issues status:blocked-external Needs a third-party / external change or fix upstream Upstream (neovim/plugin) issues

Comments

@AngelontheRoad
Copy link
Contributor

AngelontheRoad commented Jun 23, 2023

Version confirmation

  • Confirm

Following prerequisites

  • 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 AngelontheRoad added bug Something isn't working lsp LSP related issues labels Jun 23, 2023
@Jint-lzxy
Copy link
Collaborator

The root cause of this issue is actually related to the underlying json RPC: python-lsp/python-lsp-jsonrpc#5.

@Jint-lzxy Jint-lzxy added upstream Upstream (neovim/plugin) issues pylsp Python LSP Server related issues labels Jun 23, 2023
@Jint-lzxy Jint-lzxy added the status:blocked-external Needs a third-party / external change or fix label Jul 10, 2023
@mjkx5
Copy link
Contributor

mjkx5 commented Mar 24, 2024

@AngelontheRoad I have the same error. so I replace pylsp to basedpyright. may be you can use basedpyright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp LSP related issues pylsp Python LSP Server related issues status:blocked-external Needs a third-party / external change or fix upstream Upstream (neovim/plugin) issues
Projects
None yet
Development

No branches or pull requests

3 participants