Feel-ix-343/markdown-oxide

Zed cancels markdown-oxide LSP requests

Closed this issue ยท 8 comments

Zed cancels markdown-oxide LSP requests

Happens here too. Works when zed starts, but after a while it stops. Need to restart to get it back working.

Ahh sorry.

Will work on this one.

Thank you. I'm out now but I can provide the logs when I come back.

Some logs:

2024-06-04T10:36:33-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:36:52-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:36:52-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:37:03-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:37:03-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:37:03-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:37:03-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:37:03-03:00 [INFO] Language server with id 3 sent unhandled notification workspace/semanticTokens/refresh:
null
2024-06-04T10:37:23-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:37:23-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:37:32-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:37:32-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:43:59-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:43:59-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:43:59-03:00 [INFO] Language server with id 3 sent unhandled notification workspace/semanticTokens/refresh:
null
2024-06-04T10:44:21-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:44:21-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:44:21-03:00 [INFO] Language server with id 3 sent unhandled notification workspace/semanticTokens/refresh:
null
2024-06-04T10:44:27-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:44:27-03:00 [INFO] skipping numeric progress token 1
2024-06-04T10:44:27-03:00 [INFO] Language server with id 3 sent unhandled notification workspace/semanticTokens/refresh:
null
2024-06-04T10:44:31-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:44:31-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:46:54-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 95 which took over 120s
2024-06-04T10:46:54-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T10:46:54-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T10:51:13-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T10:51:13-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T10:53:08-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 112 which took over 120s
2024-06-04T10:53:08-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T10:53:08-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T10:53:24-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 116 which took over 120s
2024-06-04T10:53:24-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T10:53:24-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T11:01:22-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 118 which took over 120s
2024-06-04T11:01:22-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T11:01:22-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T11:01:27-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 121 which took over 120s
2024-06-04T11:01:27-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T11:01:27-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T11:02:49-03:00 [ERROR] connection error: error reading rpc message from socket

Caused by:
    0: WebSocket protocol error: Connection reset without closing handshake
    1: Connection reset without closing handshake
2024-06-04T11:02:49-03:00 [INFO] set status on client 168430: ConnectionLost
2024-06-04T11:02:49-03:00 [INFO] set status on client 168430: Reauthenticating
2024-06-04T11:02:49-03:00 [INFO] set status on client 168430: Reconnecting
2024-06-04T11:02:51-03:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-06-04T11:02:51-03:00 [INFO] add connection to peer
2024-06-04T11:02:51-03:00 [INFO] add_connection;
2024-06-04T11:02:51-03:00 [INFO] waiting for server hello
2024-06-04T11:02:51-03:00 [INFO] got server hello
2024-06-04T11:02:51-03:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 1 }, peer id: PeerId { owner_id: 442, id: 388815 })
2024-06-04T11:02:51-03:00 [INFO] set status on client 168430: Connected { peer_id: PeerId { owner_id: 442, id: 388815 }, connection_id: ConnectionId { owner_id: 0, id: 1 } }
2024-06-04T11:03:52-03:00 [INFO] reload git repository ".git"
2024-06-04T11:03:54-03:00 [INFO] reload git repository ".git"
2024-06-04T11:03:54-03:00 [INFO] reload git repository ".git"
2024-06-04T11:03:57-03:00 [INFO] reload git repository ".git"
2024-06-04T11:10:52-03:00 [ERROR] Cancelled LSP request task for "textDocument/codeAction" id 122 which took over 120s
2024-06-04T11:10:52-03:00 [WARN] Generic lsp request to markdown-oxide failed: LSP request timeout
2024-06-04T11:10:52-03:00 [ERROR] crates/project/src/project.rs:7172: LSP request timeout
2024-06-04T11:20:04-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T11:20:04-03:00 [INFO] starting language servers for Dockerfile: dockerfile-language-server

When restarting the language server:

  
2024-06-04T11:36:46-03:00 [INFO] stopping language server markdown-oxide
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [WARN] Generic lsp request to markdown-oxide failed: oneshot canceled
2024-06-04T11:36:46-03:00 [ERROR] crates/lsp/src/lsp.rs:779: oneshot canceled
2024-06-04T11:36:46-03:00 [ERROR] crates/project/src/project.rs:7172: oneshot canceled
2024-06-04T11:36:46-03:00 [ERROR] crates/project/src/project.rs:7172: oneshot canceled
2024-06-04T11:36:46-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T11:36:46-03:00 [INFO] starting language server "markdown-oxide", path: "/xxxxxxxxx/", id: 5
2024-06-04T11:36:46-03:00 [ERROR] crates/editor/src/hover_links.rs:155: oneshot canceled
2024-06-04T11:36:46-03:00 [ERROR] crates/editor/src/hover_links.rs:155: oneshot canceled
2024-06-04T11:36:46-03:00 [INFO] Ignoring repeated FindAllReferences invocation with the position of already running task
2024-06-04T11:36:46-03:00 [ERROR] crates/editor/src/hover_links.rs:155: oneshot canceled
2024-06-04T11:36:46-03:00 [INFO] Ignoring repeated FindAllReferences invocation with the position of already running task
2024-06-04T11:36:46-03:00 [ERROR] crates/editor/src/hover_links.rs:155: oneshot canceled
2024-06-04T11:36:46-03:00 [INFO] Ignoring repeated FindAllReferences invocation with the position of already running task
2024-06-04T11:36:47-03:00 [INFO] starting language server. binary path: "/xxxxxxxx/.cargo/bin/markdown-oxide", working directory: "/xxxxxxxx/Projects/b", args: []
2024-06-04T11:36:51-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T11:36:51-03:00 [INFO] starting language servers for Markdown: markdown-oxide
2024-06-04T11:36:53-03:00 [INFO] Initializing default prettier with plugins {}
2024-06-04T11:36:53-03:00 [INFO] starting language servers for Markdown: markdown-oxide

Thank you!

I think this is working now; zed is making updates and I fixed on bug 812e341.

Let me know if you discover it is broken

nope. still broken

Since oxide works on vscode and neovim, both with more mature lsp implementations, I have to assume this is a Zed issue.