-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin API: Theia IDE doesn't support 'files` property of 'workspace/configuration' #5945
Comments
In VS Code before the configuration is stringified (to make it ready for sending it to PHP intelephense LS process) the extension tries to overlap some of the values with the result of mergeAssociations/mergeExclude and telemetry stuff. It's done in
The same goes for the newest version of the extension plugin, but in this case the LS reports that it cannot read |
Hi, I stumbled across this. I'm open to changing to something like below in vscode-intelephense 1.3 if it helps. let result = next(params, token);
if(!isThenable(result)) {
return mergeResult(result);
} else {
return result.then(r => mergeResult(r));
} |
Hey @vrubezhny, any thoughts on this proposal? Do you think this would work? |
@bmewburn Hello, sorry for the late answer... I tried to follow your proposal, but it wasn't helping. Every time I start PHP editor for the first time in Che7 workspace the extension starts working (shows tooltips, content assist, etc.), but after I close and reopen the same file or open some other PHP file in editor it complains on
The extension plugin I had used to test was built with the following change: vrubezhny/vscode-intelephense@07c6155 @bmewburn Please review my change - maybe I did it wrong way or I missed something? |
PS: Now I see how to get it working for any number of PHP editors in Che7 : When I open a second (third, etc.) PHP file in editor PHP extension plugin refuses to work: So, to make it work again a user should leave the workspace page, for example, by opening the workspaces configuration page, and then back opening the same workspace - the editors will stay open and PHP extension will be fully functional in all the open editors (any attempt to close/reopen an editor or open any other PHP file in new editor will result again in non-functional PHP facilities on that editor) |
@bmewburn Honestly, I don't understand what's going on there... The pluging extension starts working if I add
and rebuild the plugin. The
So, having these |
@bmewburn @vrubezhny Just found this issue as we're in the process of making sure that all 3rdparty-built vsix files can be built by RH productization so we can include our own bits in product (because product security, woo). Has anyone tried using the latest intelliphense 1.3.3 with Che 7.5 or newer? Figure if we can skip over 1.0.x, 1.1.x, and 1.2x and go directly to 1.3, that would make it easier for productization, Che plugin reg management, and upstream project too! cc: @mkuznyetsov ref eclipse-che/che#14677 |
Sadly still the same errors in Che 7.5.0 for me. |
In 1.3 I refactored some of that middleware code which doesn't seem to have done anything. I'll take another look. |
Thanks @bmewburn ! BTW I hope no one you knew was on the cruise ship that was affected by the White Island eruption earlier this week in NZ. (I visited that volcano last month. Crazy seeing the videos of the destruction.) |
Description
PHP Intelephense extension fails to start due to lack of support of workspace configuration by Theia which is required in following call examples (https://github.com/bmewburn/vscode-intelephense/blob/master/src/middleware.ts#L278):
Reproduction Steps
Download PHP Intelephense extension v.1.1.4 (https://github.com/bmewburn/vscode-intelephense/releases) and save it to Theia 'plugins' folder, start Theia IDE browser example and try to edit/hover over/get content assist on a PHP file.
See errors listed above in the Output View.
OS and Theia version:
The issue is reproducible on Theia 'master' and 'che-7.0.0' branches
Diagnostics:
Errors from the Output view:
The text was updated successfully, but these errors were encountered: