LSP in KDevelop

Sven Brauch mail at svenbrauch.de
Wed Sep 11 21:08:10 BST 2024


Hi,

(CCing kwrite-devel, see last paragraph why)

at Akademy, I had a look at integrating Kate's LSP plugin [1].

I think it's a good idea to do this because it gives us kinda-good 
support for lots of languages which people have come to expect these 
days, and especially provides a plausible path for phasing out our qmljs 
plugin -- I have no idea how that would be fixable to work with current 
qml otherwise, given our manpower constraints.

In the MR, I for now only did the absolutely-required part of the 
integration, i.e.

  - fixed support for Kate's toolview API
  - added support for showing config pages from kate plugins in our 
config dialog
  - added and invoked API to disable the C++, Python, and PHP LSP servers
  - integrated the LSP meta diagnostics ("failed to start server" etc) 
into a messages toolview of ours so people can see why things don't work

It works kinda fine, what is lacking is that it has its own outline and 
diagnostics views, and doesn't integrate into our quickopen. Especially 
the latter isn't so nice.

I'll have a look at how I can integrate this better. Since the data is 
structurally not super complicated, I'm considering not exporting a C++ 
interface (with BIC problems and all) but instead just adding a few 
signals and Q_INVOKABLES to the LSP plugin object which return variant 
maps and item models. I hope this is sufficient and it should be doable 
with minimum impact on the kate side.

If you have major doubts about all of this, let me know.

All the best,
Sven

___________
[1] https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/669
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA4AAD0019BE03F15.asc
Type: application/pgp-keys
Size: 3147 bytes
Desc: OpenPGP public key
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240911/82198127/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240911/82198127/attachment.sig>


More information about the KWrite-Devel mailing list