https://bugs.kde.org/show_bug.cgi?id=499187
Bug ID: 499187
Summary: RootUri for LSP, Lua LSP and HOME directory
Classification: Applications
Product: kate
Version: 24.12.1
Platform: Debian unstable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
If you have the lua lsp server, a file in the home folder like in my case
/home/mte90/.config/nvim/ Kate will use the $HOME as workspace folder and this
for the Lua LSP is a problem because it will scan the whole home folder and
stops working.
[11:05:46  Git Informazioni] Impossibile trovare la cartella .git per
«/home/mte90», le cose potrebbero non funzionare correttamente
[11:05:46  Client LSP Registro] Server avviato lua@/home/mte90:
/usr/local/bin/lua-language-server
[11:05:47  Server LSP Registro] lua@/home/mte90
Log path: file:///opt/lua-language-server/log/file_home_mte90.log
[11:05:47  Server LSP Errore] lua@/home/mte90
Your workspace is set to `/home/mte90`. Lua language server refused to load
this directory. Please check your configuration.[learn more
here](https://luals.github.io/wiki/faq#why-is-the-server-scanning-the-wrong-folder)
[11:05:47  Server LSP Registro] lua@/home/mte90
[Error] Your workspace is set to `/home/mte90`. Lua language server refused to
load this directory. Please check your configuration.[learn more
here](https://luals.github.io/wiki/faq#why-is-the-server-scanning-the-wrong-folder)
Basically says that in /home/mte90 there is no git folder but is the rootUri
sent to the lsp server, their faq
https://luals.github.io/wiki/faq/#why-is-the-server-scanning-the-wrong-folder
So ideally I think that in case for LSP servers and something inside the
dotfiles in the $HOME directory it should shared the paernt but the folder
itself to avoid that issue.
I don't know if the issue exists also with other LSP, maybe others don't do
this reports and scans anyway or avoid it. Probably a global behaviour in kate
should avoid performance issues.
STEPS TO REPRODUCE
1. Create a lua file inside a dotfiles folder in the $HOME directory
2. Check the diagnostic report
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 24.12
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.