Hi,
Kate’s default option for a csharp lsp server is OmniSharp, which best I can tell is not available on Fedora 40.
In trying to use csharp-language-serverinstead, I’ve added the following to my User Server Settings:
{
"servers": {
"c-sharp": {
"command": [
"csharp-ls"
],
"rootIndicationFilePatterns": [
"*.sln",
"*.csproj"
],
"url": "https://github.com/razzmatazz/csharp-language-server",
"highlightingModeRegex": "^C#$"
}
}
}
This works fine for editing single files, I get auto-suggestions and can jump to declarations and definitions that sit inside the same file no problem, but when I try to “Go To” a declaration or definition that sits outside the current file I get the following errors:
Unable to create KIO worker. Unknown protocol ‘csharp’
And then probably caused by the previous error:
The file csharp:/metadata/projects/SLNTest.App/assemblies/SLNTest.Network/symbols/SLNTest.Network.CatFactGetter.cs could not be loaded, as it was not possible to read from it.
Check if you have read access to this file.
Kate gitlab issue #123 seems to suggest that trying to override deafult LSPs like this might be an issue, is that what’s at fault here? Or am I fault? Or for that matter has anyone had any success setting up a csharp lsp for Kate?