Che: [Regression] PHP language server fails on code completion apply

Created on 14 Jun 2017  路  7Comments  路  Source: eclipse/che

Reproduction Steps:
Open any php file, call code completion and try to apply any, nothing is inserted in editor and error message appears in browser console:
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Warning: Missing argument 4 for LanguageServer\Server\CompletionItemResolver::resolve(), called in /home/user/che/ls-php/php-language-server/vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php on line 164 and defined

kinbug severitP1 sprinnext-sprint teaplugins

Most helpful comment

@evidolob I am working on updating the PHP LS agent with the latest official version of the PHP LS. It will hopefully resolve #5334 too. Currently we have quite old (at least 6 months old) version of the PHP LS in Che.

The GitHub repo for the PHP LS is here: https://github.com/felixfbecker/php-language-server

All 7 comments

@kaloyan-raev I check Che side, it's seams to all work fine, can you check LS side.
I'm not so good in PHP to look on it.
Another thing, can you provide link to PHP LS repository, which we are using?

@evidolob I am working on updating the PHP LS agent with the latest official version of the PHP LS. It will hopefully resolve #5334 too. Currently we have quite old (at least 6 months old) version of the PHP LS in Che.

The GitHub repo for the PHP LS is here: https://github.com/felixfbecker/php-language-server

@evidolob Attached is an update of the PHP LS to the latest version 4.4.1. The above error message does not appear for me with it.
php-language-server.tar.gz

However, inserting the text of the code completion should be improved. For example, if I type "ec" and select "echo" from the code completion then the result in the editor is "ececho" instead of "echo".

5334 still occurs with this version of PHP LS. So it requires further investigation.

Also related #5017

@vparfonov have we updated php LS on our side?

However, inserting the text of the code completion should be improved. For example, if I type "ec" and select "echo" from the code completion then the result in the editor is "ececho" instead of "echo".

@kaloyan-raev this might be fixed with https://github.com/eclipse/che/pull/6339

Is this still an issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vanzhiganov picture vanzhiganov  路  3Comments

JamesDrummond picture JamesDrummond  路  3Comments

SkorikSergey picture SkorikSergey  路  3Comments

apupier picture apupier  路  3Comments

sleshchenko picture sleshchenko  路  3Comments