<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi everyone,</p>
<p>I was able to get the plugin working!</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/Mte90/kate-ollama">https://github.com/Mte90/kate-ollama</a></p>
<p>You can find it on that link with a tiny video.</p>
<p>Just needs a plugin setting, but if it is too hard to do it I can
do a config file, but it works!</p>
<p>Thanks Kåre for your help!</p>
<div class="moz-signature"><a class="moz-txt-link-freetext" href="https://media1.tenor.com/m/Dx9ZXPAYtZ8AAAAd/its-alive-gene-wilder.gif">https://media1.tenor.com/m/Dx9ZXPAYtZ8AAAAd/its-alive-gene-wilder.gif</a></div>
<div class="moz-signature"><br>
</div>
<div class="moz-signature">My face when everything worked.</div>
<div class="moz-signature"><br>
<small>Daniele Scasciafratte - OpenSource MultiVersal Guy<br>
<a href="https://daniele.tech">daniele.tech</a> - <a
href="https://twitter.com/Mte90net">@Mte90Net</a> - <a
href="https://github.com/Mte90">GitHub</a> - <a
href="http://www.ils.org/">Italian Linux Society council
member</a> - <a href="https://people.mozilla.org/p/Mte90">Mozillian</a><br>
Ex Mozilla Reps/TechSpeakers, <a
href="https://profiles.wordpress.org/mte90">(Ex) WordPress
Core Contributor</a>, <br>
<a href="http://www.libreitalia.it/">LibreItalia member</a>, <a
href="https://www.wikimedia.it/">Wikimedia Italia member</a>
and <a href="https://rieti.ils.org/">ILS Rieti founder</a>.</small><br>
</div>
<div class="moz-cite-prefix">Il 27/03/25 15:06, Daniele "Mte90"
Scasciafratte ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:903481ae-90b3-4a6c-9473-3495f533d09e@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>I saw your code but is completely different from the one of
KAppTemplate, my initial one and the one from the documentation
</p>
<pre wrap="" class="moz-quote-pre"><a
class="moz-txt-link-freetext"
href="https://develop.kde.org/docs/apps/kate/plugin/"
moz-do-not-send="true">https://develop.kde.org/docs/apps/kate/plugin/</a></pre>
<p>This is not very handy if there are all this version to do
something.</p>
<p>Anyway your solution works and it is installed and found, I
will see if I can change the cmake on my version to put in the
right folder.</p>
<div class="moz-signature"><small>Daniele Scasciafratte -
OpenSource MultiVersal Guy<br>
<a href="https://daniele.tech" moz-do-not-send="true">daniele.tech</a>
- <a href="https://twitter.com/Mte90net"
moz-do-not-send="true">@Mte90Net</a> - <a
href="https://github.com/Mte90" moz-do-not-send="true">GitHub</a>
- <a href="http://www.ils.org/" moz-do-not-send="true">Italian
Linux Society council member</a> - <a
href="https://people.mozilla.org/p/Mte90"
moz-do-not-send="true">Mozillian</a><br>
Ex Mozilla Reps/TechSpeakers, <a
href="https://profiles.wordpress.org/mte90"
moz-do-not-send="true">(Ex) WordPress Core Contributor</a>,
<br>
<a href="http://www.libreitalia.it/" moz-do-not-send="true">LibreItalia
member</a>, <a href="https://www.wikimedia.it/"
moz-do-not-send="true">Wikimedia Italia member</a> and <a
href="https://rieti.ils.org/" moz-do-not-send="true">ILS
Rieti founder</a>.</small><br>
</div>
<div class="moz-cite-prefix">Il 27/03/25 07:36, Kåre Särs ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:2542642.jE0xQCEvom@insta-precision3580">
<pre wrap="" class="moz-quote-pre">Hi,
No, I'm suggesting that you follow the instructions I gave with the tar that I
sent and use the system kate :)
And yes, the plugin goes to this folder on Ubuntu (probably same on Debian):
/usr/lib/x86_64-linux-gnu/qt6/plugins/kf6/ktexteditor/
Kate uses the ktexteditor library.
And note you need Qt6, KDE Frameworks 6 (KF6) and Kate based on those.
Br,
Kåre
On Wednesday, March 26, 2025 4:15:41 PM Eastern European Standard Time you
wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">So you suggest that I compile a Kate build for debug and use that to load
the plugin?
Because as it is now following the KApptemplate instructions the plugin is
not loaded by kate at all.
PS: compiles everything but place the .so file inside the ktexteditor
folder.
Daniele Scasciafratte - OpenSource MultiVersal Guy
daniele.tech <a class="moz-txt-link-rfc2396E"
href="https://daniele.tech" moz-do-not-send="true"><https://daniele.tech></a> - @Mte90Net
<a class="moz-txt-link-rfc2396E" href="https://twitter.com/Mte90net"
moz-do-not-send="true"><https://twitter.com/Mte90net></a> - GitHub <a
class="moz-txt-link-rfc2396E" href="https://github.com/Mte90"
moz-do-not-send="true"><https://github.com/Mte90></a> -
Italian Linux Society council member <a class="moz-txt-link-rfc2396E"
href="http://www.ils.org/" moz-do-not-send="true"><http://www.ils.org/></a> - Mozillian
<a class="moz-txt-link-rfc2396E"
href="https://people.mozilla.org/p/Mte90"
moz-do-not-send="true"><https://people.mozilla.org/p/Mte90></a> Ex Mozilla Reps/TechSpeakers, (Ex)
WordPress Core Contributor <a class="moz-txt-link-rfc2396E"
href="https://profiles.wordpress.org/mte90"
moz-do-not-send="true"><https://profiles.wordpress.org/mte90></a>,
LibreItalia member <a class="moz-txt-link-rfc2396E"
href="http://www.libreitalia.it/" moz-do-not-send="true"><http://www.libreitalia.it/></a>, Wikimedia Italia member
<a class="moz-txt-link-rfc2396E" href="https://www.wikimedia.it/"
moz-do-not-send="true"><https://www.wikimedia.it/></a> and ILS Rieti founder <a
class="moz-txt-link-rfc2396E" href="https://rieti.ils.org/"
moz-do-not-send="true"><https://rieti.ils.org/></a>.
Il 26/03/25 13:00, Kåre Särs ha scritto:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">Hi,
I missed that you were on Sid and not Bookworm... so you should have
possibility to install Qt6 and KF6
To make sure you have the needed dependencies run:
sudo apt build-dep kate
Check that it is Qt6 not Qt5 based
Extract the attached tar and then in the extracted folder run:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 -G Ninja ../
ninja
sudo ninja install
Br,
Kåre
missed that On Tuesday, March 25, 2025 5:54:47 PM Eastern European
</pre>
</blockquote>
</blockquote>
<pre wrap="" class="moz-quote-pre">Standard Time Daniele "Mte90" Scasciafratte wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">So now is based on kapptemplate <a
class="moz-txt-link-freetext"
href="https://github.com/Mte90/kate-ollama"
moz-do-not-send="true">https://github.com/Mte90/kate-ollama</a>
Now compiles, generate the so file, but it is missing the install
procedure
as just generate locally. It is not placing in the right folder in the
system.
At same time the instructions to run the plugin from the folder
generated
not works.
The code it's there if someone can help me.
I think that it is not easy to develop a Kate plugin as it is now,
<a class="moz-txt-link-freetext"
href="https://develop.kde.org/docs/apps/kate/plugin/"
moz-do-not-send="true">https://develop.kde.org/docs/apps/kate/plugin/</a> doesn't mention
kapptemplate.
Daniele Scasciafratte - OpenSource MultiVersal Guy
daniele.tech <a class="moz-txt-link-rfc2396E"
href="https://daniele.tech" moz-do-not-send="true"><https://daniele.tech></a> - @Mte90Net
<a class="moz-txt-link-rfc2396E" href="https://twitter.com/Mte90net"
moz-do-not-send="true"><https://twitter.com/Mte90net></a> - GitHub <a
class="moz-txt-link-rfc2396E"
href="https://github.com/Mte90" moz-do-not-send="true"><https://github.com/Mte90></a> -
Italian Linux Society council member <a class="moz-txt-link-rfc2396E"
href="http://www.ils.org/" moz-do-not-send="true"><http://www.ils.org/></a> - Mozillian
<a class="moz-txt-link-rfc2396E"
href="https://people.mozilla.org/p/Mte90"
moz-do-not-send="true"><https://people.mozilla.org/p/Mte90></a> Ex Mozilla Reps/TechSpeakers, (Ex)
WordPress Core Contributor <a class="moz-txt-link-rfc2396E"
href="https://profiles.wordpress.org/mte90"
moz-do-not-send="true"><https://profiles.wordpress.org/mte90></a>,
LibreItalia member <a class="moz-txt-link-rfc2396E"
href="http://www.libreitalia.it/" moz-do-not-send="true"><http://www.libreitalia.it/></a>, Wikimedia Italia member
<a class="moz-txt-link-rfc2396E" href="https://www.wikimedia.it/"
moz-do-not-send="true"><https://www.wikimedia.it/></a> and ILS Rieti founder
<a class="moz-txt-link-rfc2396E" href="https://rieti.ils.org/"
moz-do-not-send="true"><https://rieti.ils.org/></a>.
Il 23/03/25 10:09, Kåre Särs ha scritto:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">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 KF6 over a year ago. Any changes you would need to upstream would
have to go to the Qt6 version...
That said you could test to get a plugin working by using KAppTemplate
to
create a Kate plugin. With that template it should be possible to
install
the plugin to the right system location with CMake
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
cmake --build .
sudo cmake --build . --target install
Hope that helps,
Br,
Kåre
On Tuesday, 18 March 2025 16.55.34 Eastern European Standard Time
Daniele
"Mte90" Scasciafratte wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">Hi Everyone,
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.
There ishttps://github.com/arturbac/kdevcxx_with_ai but is only for
OpenAI
and I have issues on compiling (already reported) and the dev are not
very
responsive.
Followinghttps://develop.kde.org/docs/apps/kate/plugin/ I was able to
do
<a class="moz-txt-link-freetext"
href="https://github.com/Mte90/kate-ollama"
moz-do-not-send="true">https://github.com/Mte90/kate-ollama</a>
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.
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...
What I am missing?
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
<lt-container></lt-container>
</blockquote>
</body>
</html>