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
@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".
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?
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