vala-lang / vala-language-server

Code Intelligence for Vala & Genie
GNU Lesser General Public License v2.1
287 stars 41 forks source link

Issue of editing in vscode #279

Closed wszqkzqk closed 1 year ago

wszqkzqk commented 1 year ago

Describe the bug LSP fail when typing code in vscode. With:

Request textDocument/documentSymbol failed.

Software OS and version (e.g. Ubuntu 20.04): Both Arch Linux and Windows 11 Code editor (e.g. VSCode): VSCode Vala Language Server (e.g. git commit, or PPA/AUR version): 0.48.5 Vala version (valac --version): 0.56.3

To Reproduce

Steps to reproduce the behavior:

  1. Create a new vala source file and open it in vscode
  2. Type something
  3. Showed Request textDocument/documentSymbol failed. for many times and failed.

How can I ban it from getting textDocument/documentSymbol?

https://user-images.githubusercontent.com/12961135/212040215-ba343e2e-f23c-4a2c-acd0-db7ee28f932d.mp4

DanDankRaft commented 1 year ago

This exact same behavior has been happening to me as well (I think it's a duplicate of #236 ) Disappointed to see that switching distro doesn't fix this

avojak commented 1 year ago

I'm seeing this as well through the VS Code plugin. Fedora 37 vale-language-server: 0.48.5

Edit: When compiling and running from the latest source, I don't see the issue anymore. Must be fixed since the latest release?

ppvan commented 1 year ago

Same thing here. I'm tried compile from source but didn't help. Arch Linux Vala 0.56.4 vala-language-server 0.48.5-15-g7577ffb2 (compile from git repo)

wszqkzqk commented 1 year ago

It's fixed since v0.48.7