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

List:       kwrite-devel
Subject:    KATE: Unable to use LSP server for PHP
From:       Stolz <stolz () gsmlandia ! com>
Date:       2019-12-17 14:36:44
Message-ID: CAOCcWGoE7fRTrJ0_WJbqwiV1xM=XRzDNfbV5PB27E3DvEnEjCw () mail ! gmail ! com
[Download RAW message or body]

Hi.

I'm trying to configure the new Kate (version 19.12.0) LSP plugin to use a
server other than the ones listed in
https://invent.kde.org/kde/kate/blob/master/addons/lspclient/settings.json

Specifically I want to have LSP support for PHP language via this server
implementation: https://github.com/felixfbecker/php-language-server

I've successfully installed the PHP server and I can run it without issues
but after enabling the LSP plugin in Kate and providing my own server
config file for Kate to "discover" the new LSP server, when I open a PHP
file in Kate I see the message "No LSP server for this document" and none
of the LSP features are available. See screenshot at
https://imgur.com/a/LHDerBi

The command to run the server in my computer is "php
/home/stolz/php-language-server/bin/php-language-server.php" and therefore
I have created this custom server config JSON file:

{
  "servers": {
    "php": {
      "command": ["php",
"/home/stolz/php-language-server/bin/php-language-server.php"],
      "url": "https://github.com/felixfbecker/php-language-server"
    }
  }
}

Since the plugin is new there isn't much documentation around so I'm not
sure if I'm following the expected JSON format. Also, the server
implementation supports input from both STDIN/STDOUT or TCP. Which one does
Kate use for the client-server communication? I don't see any option to
specify server address nor port, so I guess Kate uses STDIN/STDOUT.

Any help would be much appreciated.

Regards.

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi.</div><div><br></div><div>I&#39;m trying to configure the new \
Kate (version 19.12.0) LSP plugin to use a server other than the ones listed in <a \
href="https://invent.kde.org/kde/kate/blob/master/addons/lspclient/settings.json">http \
s://invent.kde.org/kde/kate/blob/master/addons/lspclient/settings.json</a></div><div><br></div><div>Specifically \
I want to have LSP support for PHP language via this server implementation: <a \
href="https://github.com/felixfbecker/php-language-server">https://github.com/felixfbecker/php-language-server</a></div><div><br></div><div>I&#39;ve \
successfully installed the PHP server and I can run it without issues but after \
enabling the LSP plugin in Kate and providing my own server config file for Kate to \
&quot;discover&quot; the new LSP server, when I open a PHP file in Kate I see the \
message &quot;No LSP server for this document&quot; and none of the LSP features are \
available. See screenshot at <a \
href="https://imgur.com/a/LHDerBi">https://imgur.com/a/LHDerBi</a></div><div><br></div><div>The \
command to run the server in my computer is &quot;php \
/home/stolz/php-language-server/bin/php-language-server.php&quot; and therefore I \
have created this custom server config JSON file:</div><div><br></div><div>{<br>   \
&quot;servers&quot;: {<br>      &quot;php&quot;: {<br>         &quot;command&quot;: \
[&quot;php&quot;, &quot;/home/stolz/php-language-server/bin/php-language-server.php&quot;],<br> \
&quot;url&quot;: &quot;<a \
href="https://github.com/felixfbecker/php-language-server">https://github.com/felixfbecker/php-language-server</a>&quot;<br> \
}<br>   }<br>}</div><div><br></div><div>Since the plugin is new there isn&#39;t much \
documentation around so I&#39;m not sure if I&#39;m following the expected JSON \
format. Also, the server implementation supports input from both STDIN/STDOUT or TCP. \
Which one does Kate use for the client-server communication? I don&#39;t see any \
option to specify server address nor port, so I guess Kate uses \
STDIN/STDOUT.</div><div><br></div><div>Any help would be much \
appreciated.</div><div><br></div><div>Regards.</div><div><br></div></div>



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

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