REditorSupport / languageserver

An implementation of the Language Server Protocol for R
Other
564 stars 91 forks source link

No documentSymbol response for Rmarkdown file with helix editor #630

Open fisher-j opened 10 months ago

fisher-j commented 10 months ago

I'm trying to use languageserver to edit rmarkdown documents with the helix editor. The server times out with no response after submitting a document symbol request:

2023-08-11T08:53:32.778 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/walki/Desktop/hx-test/test.rmd"}},"id":1}

I opened an issue with helix, which got converted to a discussion

Issue #381 talks about debugging a non-response for documentSymbol requests, but I'm not sure how to go about this with helix.

Any idea why the server is not responding?

rumichaska commented 9 months ago

Hi @fisher-j , maybe the problem is the configuration of the LSP in Helix. For Neovim the current config set filetypes = { "r" , "rmd" }. Perhaps Helix only use r and not rmd.