https://bugs.kde.org/show_bug.cgi?id=515874
--- Comment #1 from Italo Capasso <[email protected]> --- (In reply to Italo Capasso from comment #0) > SUMMARY > > On the latest version of Kate (25.12.2) The Vala LSP (vala-language-server > 0.48.7) doesn't work and cannot autocomplete using the LSP plugin.It seems > to start properly in the output window, only difference I noticed is a > couple of warning whenever it opens a document. It works properly on Kate > 25.08.3 > > Here are the following warnings: > > (vala-language-server:69510): vls-WARNING **: 09:58:21.469: > compilation.vala:297: Compilation(): Error reading file > ?/media/italocapasso/NVME/workspace_vala/veggies?: Is a directory > [09:58:21  Servidor LSP Registro] > vala@/media/italocapasso/NVME/workspace_vala/veggies > (vala-language-server:69510): vls-WARNING **: 09:58:21.469: server.vala:539: > [textDocumnt/didOpen] failed to open - Error reading file > ?/media/italocapasso/NVME/workspace_vala/veggies?: Is a directory > (vala-language-server:69510): vls-WARNING **: 09:58:21.469: server.vala:544: > [textDocument/didOpen] could not open > > There are more warnings before this (some vala-CRITICAL messages and a > uninitialized notification not being handled), but those have always been > there (and vala-language-server should fix those i believe). But these are > the are the new warning that show up in Kate 25.12.2, and maybe linked to > vala-language-server not working. > > The Vala LSP server does work properly without any issue in 25.08.3. > > STEPS TO REPRODUCE > 1. Open any Vala meson project via open folder. > 2. Open any .vala file > 3. Wait for the LSP to initialize > 4. Watch the warning messages in the output window > 5. Try to trigger autocomplete, it never shows up anywhere and noting > happens. > 6. Invoke the LSP format command, it doesn't work either. > > OBSERVED RESULT > > Autocomplete symbols don't show up and formatting does not occur. > > EXPECTED RESULT > > Autocomplete symbols should show up and formatting should happen. > > SOFTWARE/OS VERSIONS > Linux: Elementary OS 8.1 > Platform: Flatpak > Vala LSP: vala-language-server 0.48.7 > > ADDITIONAL INFORMATION > > The vala LSP (vala-language-server) does work properly without any issue in > 25.08.3. > > I am not sure if this is a Kate issue or a vala-language-server issue, > especially if there has been any updated to the LSP protocol or similar that > warrant the vala-language-server to be updated as well. But my hunch is that > the issue lies within Kate. > > Any insights here would be very useful. > > Thanks a lot, Also heres the LSP cliente seetingf for Kate + Vala: { "servers": { "vala": { "command": ["vala-language-server"], "url": "https://github.com/Prince781/vala-language-server", "highlightingModeRegex": "^Vala$", "root": "." } } } I have to put the "root" : "." in these, otherwise it will not properly work in 25.08.3. -- You are receiving this mail because: You are watching all bug changes.
