-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
LS for default PHP stacks not working #16196
Comments
@tsmaeder could you please take a look? |
I think the problem is that when we switched to using the vscode builtins in che-theia we don't provide a PHP language configuration: https://github.com/eclipse/che-theia/blob/master/generator/src/templates/theiaPlugins.json. Since the PHP filetype is no longer be there the PHP language features won't activate when a PHP file is opened. When I tested on the 7.10.0-SNAPSHOT and opened up BlogController.php the default language configuration is set to plain text (since PHP is missing) so there also won't be syntax colourization Related issues: |
Can this be worked around by manually opening a file and setting its type to |
Unfortunately not, since we removed the @theia/textmate-grammers package the PHP filetype that is associated with the syntax colourization etc doesn't get added to Theia and since we don't have the vscode-builtin-php we technically don't have a "real" PHP language configuration. For some reason there is a
I think it has to be activated by vscode/theia since activation events is defined in the vscode extension |
There is a PR here: eclipse-che/che-theia#648 but Github doesn't autolink it. |
Closing as eclipse-che/che-theia#648 has now been merged |
Describe the bug
PHP default stacks don't have any Language support. Code highlighting, error highlighting, code completion etc.
Che version
Steps to reproduce
PHP Symfony
workspaceExpected behavior
Code should be highlighted according PHP syntax and LS features as error highlighting or code completion should work.
Runtime
kubectl version
)oc version
) Hosted Cheminikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Some browser console logs errors that could be related to the problem:

The text was updated successfully, but these errors were encountered: