question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LS for default PHP stacks not working

See original GitHub issue

Describe the bug

PHP default stacks don’t have any Language support. Code highlighting, error highlighting, code completion etc.

Che version

  • latest 7.9.0
  • nightly
  • other: please specify

Steps to reproduce

  • Go to Workspace -> Add Worksapce
  • Create and open PHP Symfony workspace
  • Open file symfony-demo-application/src/Controler/BlogController.php
  • No LS features are provided.

Expected behavior

Code should be highlighted according PHP syntax and LS features as error highlighting or code completion should work.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version) Hosted Che
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Screenshot from 2020-03-02 11-51-35

Some browser console logs errors that could be related to the problem: Screenshot from 2020-03-02 11-48-50

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JPinkneycommented, Mar 2, 2020

Can this be worked around by manually opening a file and setting its type to php?

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 php filetype that is available but I believe it’s only coming from files extension type of BlogController.php

Does the PHP plugin depend on vscode/theia for initialization only

I think it has to be activated by vscode/theia since activation events is defined in the vscode extension

1reaction
JPinkneycommented, Mar 2, 2020

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: https://github.com/eclipse-theia/theia/issues/6672 https://github.com/eclipse/che/issues/16114

Read more comments on GitHub >

github_iconTop Results From Across the Web

php - exec("ls") not returning full "ls" - Stack Overflow
So I have this PHP code which is pretty simple. ... How can I make it return all of the files? Is it...
Read more >
Troubleshoot Permission Issues - Bitnami Documentation
The following are the most common permission issues that Bitnami users face: ... or involuntarily, the user changes the stack's default permissions.
Read more >
Get the default Bitnami application and database user name
To do this, you must get the default user name and password for the application and/or database running on the instance.
Read more >
Not parsing all ini files in /etc/php.d - Unix Stack Exchange
Redid the INI file using cp --preserve=context «existing-ini-file» 20-oci8.ini then edited it. ls -alZ shows all good.
Read more >
Stacks: denovo_map.pl
Running ustacks on each of the samples specified, building loci de novo in each sample. Executing cstacks to create a catalog of all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found