[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: KATE: Unable to use LSP server for PHP
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2019-12-30 19:55:55
Message-ID: CALi_srDP1LZt5DpkZqPudXp3VHJSjc3tUS8Z=bex125dSi9deg () mail ! gmail ! com
[Download RAW message or body]

I am in favour along with a blog post that mentions this change starting
with 19.12.1.

Best regards
Dominik

Christoph Cullmann <christoph@cullmann.io> schrieb am Mo., 30. Dez. 2019,
20:51:

> Hi,
>
> I would like to backport the change with the highlightingModeRegex to
> 19.12, without the docu changes.
>
> I think that will make the plugin easier to extend for people using the
> release without any real
> drawback.
>
> Would that be ok?
>
> Greetings
> Christoph
>
> On 2019-12-28 21:23, Christoph Cullmann wrote:
> > On 2019-12-28 21:21, Dominik Haumann wrote:
> >> Hi Christoph,
> >>
> >> this is certainly the correct fix. Could you update the docs as well:
> >>
> https://docs.kde.org/trunk5/en/applications/kate/kate-application-plugin-lspclient.html
> >>
> >> Thanks :-)
> >>
> > Already done :P
> >
> > But I am not good at that, perhaps somebody can improve my changes
> > there.
> >
> > Greetings
> > Christoph
> >
> >> Best regards
> >> Dominik
> >>
> >> Christoph Cullmann <christoph@cullmann.io> schrieb am Sa., 28. Dez.
> >> 2019, 21:09:
> >>
> >>> Hi,
> >>>
> >>>>> {
> >>>>> "servers": {
> >>>>> "php": {
> >>>>> "command": ["php",
> >>>>> "/home/stolz/php-language-server/bin/php-language-server.php"],
> >>>>> "url":
> >>> "https://github.com/felixfbecker/php-language-server"
> >>>>> }
> >>>>> }
> >>>>> }
> >>>
> >>> I now pushed a change to make the mapping of highlighting mode to
> >>> language id
> >>> fully configurable in the JSON file.
> >>>
> >>> This avoids that one needs to use a patched version of Kate for
> >>> adding
> >>> new languages
> >>> that have not by chance a 1:1 mapping of id to highlighting name.
> >>>
> >>> See commit:
> >>>
> >>>
> >>
> https://invent.kde.org/kde/kate/commit/1b245783435341f10a67e3666fe24fbf89f1d384
> >>>
> >>> Greetings
> >>> Christoph
> >>>
> >>> --
> >>> Ignorance is bliss...
> >>> https://cullmann.io | https://kate-editor.org
>
> --
> Ignorance is bliss...
> https://cullmann.io | https://kate-editor.org
>

[Attachment #3 (text/html)]

<div dir="auto">I am in favour along with a blog post that mentions this change \
starting with 19.12.1.<div dir="auto"><br></div><div dir="auto">Best \
regards</div><div dir="auto">Dominik</div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">Christoph Cullmann &lt;<a \
href="mailto:christoph@cullmann.io">christoph@cullmann.io</a>&gt; schrieb am Mo., 30. \
Dez. 2019, 20:51:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> <br>
I would like to backport the change with the highlightingModeRegex to <br>
19.12, without the docu changes.<br>
<br>
I think that will make the plugin easier to extend for people using the <br>
release without any real<br>
drawback.<br>
<br>
Would that be ok?<br>
<br>
Greetings<br>
Christoph<br>
<br>
On 2019-12-28 21:23, Christoph Cullmann wrote:<br>
&gt; On 2019-12-28 21:21, Dominik Haumann wrote:<br>
&gt;&gt; Hi Christoph,<br>
&gt;&gt; <br>
&gt;&gt; this is certainly the correct fix. Could you update the docs as well:<br>
&gt;&gt; <a href="https://docs.kde.org/trunk5/en/applications/kate/kate-application-plugin-lspclient.html" \
rel="noreferrer noreferrer" \
target="_blank">https://docs.kde.org/trunk5/en/applications/kate/kate-application-plugin-lspclient.html</a><br>
 &gt;&gt; <br>
&gt;&gt; Thanks :-)<br>
&gt;&gt; <br>
&gt; Already done :P<br>
&gt; <br>
&gt; But I am not good at that, perhaps somebody can improve my changes <br>
&gt; there.<br>
&gt; <br>
&gt; Greetings<br>
&gt; Christoph<br>
&gt; <br>
&gt;&gt; Best regards<br>
&gt;&gt; Dominik<br>
&gt;&gt; <br>
&gt;&gt; Christoph Cullmann &lt;<a href="mailto:christoph@cullmann.io" \
target="_blank" rel="noreferrer">christoph@cullmann.io</a>&gt; schrieb am Sa., 28. \
Dez.<br> &gt;&gt; 2019, 21:09:<br>
&gt;&gt; <br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; {<br>
&gt;&gt;&gt;&gt;&gt; &quot;servers&quot;: {<br>
&gt;&gt;&gt;&gt;&gt; &quot;php&quot;: {<br>
&gt;&gt;&gt;&gt;&gt; &quot;command&quot;: [&quot;php&quot;,<br>
&gt;&gt;&gt;&gt;&gt; \
&quot;/home/stolz/php-language-server/bin/php-language-server.php&quot;],<br> \
&gt;&gt;&gt;&gt;&gt; &quot;url&quot;:<br> &gt;&gt;&gt; &quot;<a \
href="https://github.com/felixfbecker/php-language-server" rel="noreferrer \
noreferrer" target="_blank">https://github.com/felixfbecker/php-language-server</a>&quot;<br>
 &gt;&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; I now pushed a change to make the mapping of highlighting mode to<br>
&gt;&gt;&gt; language id<br>
&gt;&gt;&gt; fully configurable in the JSON file.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; This avoids that one needs to use a patched version of Kate for<br>
&gt;&gt;&gt; adding<br>
&gt;&gt;&gt; new languages<br>
&gt;&gt;&gt; that have not by chance a 1:1 mapping of id to highlighting name.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; See commit:<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt; <a href="https://invent.kde.org/kde/kate/commit/1b245783435341f10a67e3666fe24fbf89f1d384" \
rel="noreferrer noreferrer" \
target="_blank">https://invent.kde.org/kde/kate/commit/1b245783435341f10a67e3666fe24fbf89f1d384</a><br>
 &gt;&gt;&gt; <br>
&gt;&gt;&gt; Greetings<br>
&gt;&gt;&gt; Christoph<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Ignorance is bliss...<br>
&gt;&gt;&gt; <a href="https://cullmann.io" rel="noreferrer noreferrer" \
target="_blank">https://cullmann.io</a> | <a href="https://kate-editor.org" \
rel="noreferrer noreferrer" target="_blank">https://kate-editor.org</a><br> <br>
-- <br>
Ignorance is bliss...<br>
<a href="https://cullmann.io" rel="noreferrer noreferrer" \
target="_blank">https://cullmann.io</a> | <a href="https://kate-editor.org" \
rel="noreferrer noreferrer" target="_blank">https://kate-editor.org</a><br> \
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic