[utilities/kate] doc/kate: doc: add server troubleshooting tips for lspclient plugin
Mark Nauwelaerts
null at kde.org
Thu Apr 29 18:27:11 BST 2021
Git commit c9c1d1d6471a82ddd03610c66953bc2a529b8f4a by Mark Nauwelaerts.
Committed on 29/04/2021 at 17:19.
Pushed by mnauwelaerts into branch 'master'.
doc: add server troubleshooting tips for lspclient plugin
M +34 -0 doc/kate/plugins.docbook
https://invent.kde.org/utilities/kate/commit/c9c1d1d6471a82ddd03610c66953bc2a529b8f4a
diff --git a/doc/kate/plugins.docbook b/doc/kate/plugins.docbook
index f9eca12cf..8539c1b42 100644
--- a/doc/kate/plugins.docbook
+++ b/doc/kate/plugins.docbook
@@ -2649,6 +2649,40 @@ transformed to the &JSON; configuration that is used here and outlined above.
</sect3>
+<sect3 id="lspclient-troubleshooting">
+<title>LSP Server Troubleshooting</title>
+
+<para>
+It is one thing to describe how to configure a (custom) LSP server for
+any particular language, it is another to end up with the server running
+smoothly. Usually, the latter is fortunately the case. Sometimes, however,
+problems may arise due to either some "silly" misconfiguration or a more
+fundamental problem with the server itself. The latter might typically manifest
+itself as a couple of attempts at starting the server, as so reported in &kate;
+Output tab. The latter, however, is only meant to convey high-level messages or
+progress rather than to provide detailed diagnostics, and even less so for what
+is in fact another process (the LSP server).
+</para>
+
+<para>
+The usual way to diagnose this is to add some flag(s) to the startup
+command (of the language server) that enables (additional) logging (to
+some file or standard error), in as far as it does not do so by default. If
+&kate; is then started on the command line, then one might be able to obtain
+more (in)sight in what might be going wrong.
+</para>
+
+<para>
+It may also be informative to examine the protocol exchange between &kate;'s
+LSP client and the LSP server. Again, the latter usually has ways to trace
+that. The LSP client also provides additional debug tracing (to stderr)
+when &kate; is invoked with the following
+<literal>QT_LOGGING_RULES=katelspclientplugin=true</literal> suitably
+<literal>export</literal>'ed.
+</para>
+
+</sect3>
+
</sect2>
<!--TODO: Supported languages, describe features and actions a bit -->
More information about the kde-doc-english
mailing list