Re: Develop Kate plugin (for Ollama integration)
Kåre Särs <[email protected]> Sun, 23 Mar 2025 11:09:35 +0200
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <2233127.irdbgypaU6@sars-xps-13-9370> |
Hi, Nice that you are interested in working on stuff with Kate :) Unfortunately for you on Debian Sid, all Kate development has moved to Qt6 = and=20 KF6 over a year ago. Any changes you would need to upstream would have to g= o=20 to the Qt6 version... That said you could test to get a plugin working by using KAppTemplate to=20 create a Kate plugin. With that template it should be possible to install t= he=20 plugin to the right system location with CMake mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=3D/usr ../ cmake --build . sudo cmake --build . --target install Hope that helps, Br, K=C3=A5re =20 On Tuesday, 18 March 2025 16.55.34 Eastern European Standard Time Daniele=20 "Mte90" Scasciafratte wrote: > Hi Everyone, >=20 > I am on Debian Sid, and I am not very skilled with C++ but I am trying to= do > a plugin to integrate Ollama inside Kate. >=20 > There is https://github.com/arturbac/kdevcxx_with_ai but is only for Open= AI > and I have issues on compiling (already reported) and the dev are not very > responsive. >=20 > Following https://develop.kde.org/docs/apps/kate/plugin/ I was able to do > https://github.com/Mte90/kate-ollama >=20 > The problem is that on installing the plugin path is "-- Installing: > /usr/lib/x86_64-linux-gnu/qt5/plugins/ktexteditor/kate-ollama.so" but Kate > doesn't load it. >=20 > The plugin of course is not complete as I want to do some testing and > probably improve the UX but if I am not able to try it... >=20 > What I am missing?