Exits randomly while editing inside of try catch statement
Bug report from: https://github.com/vala-lang/vala-language-server/issues/250
Describe the bug Using the completion menu (nvim-cmp in this case) sometimes crashes the LSP. It also crashes in VSCode. Here's the output from VSCode: Gist
Software OS and version (e.g. Ubuntu 20.04): Arch
Code editor (e.g. VSCode): NeoVim
Vala Language Server: vala-language-server-git 0.48.4.r44.484465d6-
Vala version: Vala 0.56.1
Steps to reproduce the behavior:
- Create a basic vala project through meson (
meson init --language vala
) - add "dependency('gio-2.0', version: '>= 2.50')" to
dependencies
inmeson.build
- Replace all lines in the vala file with:
void main (string[] args) {
try {
File e = File.new_build_filename (string first_element, ...)
} catch (Error e) {
stderr.printf ("ERROR: %s\n", e.message);
}
}
- The LSP should crash. If not, try restarting the editor and open the file again
The LSP would crash while editing File.new_build_filename()
.
According to @Prince781, this is a parser bug
Edited by Erik Reider