-
Notifications
You must be signed in to change notification settings - Fork 7
Use plugin with theia-docker? #8
Comments
I added Added runtime and also inside of a volume before creating a new theia container. So how to install / activate the plugin? |
@meysholdt |
you'll need to make And theia-php-extension/Dockerfile.gitpod Lines 27 to 31 in 99627f0
|
I'm also trying to get php working inside the docker editor... Added composer to my dockerfile, And added @theia/php to the packages file But building the dockerfile gives me a bunch of warnings and craps out at:
|
@RVN-BR |
Did you check the latest version from npm ( It works for me at least from within a Gitpod workspace: |
After some time with other topics, I came across Theia as WebIDE again ... The needed part would be how to install theia with the theia-php-extension and the start CMD. |
I believe what you're looking for is all part of this |
Hi @meysholdt, thanks for the link. I have no experience with node / yarn... dockerfile
package.json
Build error
|
Tried again and error message changed...
|
There's something funky going on with what's published out on the NPM registry versus the repo here. The NPM registry package appears to be missing the After inspecting an intermediate container, the
I'm going to open a separate issue to see if we can get that updated, and also see if I can publish my own package as a workaround with the newer |
I published a package from the latest commit here: https://www.npmjs.com/package/theia-php-extension However, when I try to replace the I'm not familiar enough with node or the internals of Theia to know how to fix that, maybe someone else does? Hopefully @meysholdt can just update the NPM package so we don't have to mess with any of that. Until that happens we'll probably have to install it manually instead of just being able to include the extension in the docker build. |
The package |
I can confirm that the docker image builds successfully thanks to @meysholdt's update. The easiest way to get a working image with php is to just change In my docker image, I also changed @meysholdt's suggestion here to use a much more recent version of php (I also add a few other php libraries). I can share my full Dockerfile if someone wants that. Cheers
|
I don't have found a working dockerfile and my custom one (see above) still run into an error.
|
hey @pwFoo, to debug this could you
This should make it easier to analyse if you have the right php version and all needed php extensions installed in your docker image. |
php directory is available.
Error during compose install
|
@4oo4 can you share your Docker file and package.json please? |
@romanrehacek Sure: Dockerfile:
Package.json
The version of Theia you get will be different than what I originally built, since I think the |
@4oo4 I just created my own Theia-php Dockerfile. |
@romanrehacek Awesome, thanks! I'll test that out when I get a chance. Didn't even know about jessie-slim being a thing, probably much easier to rebuild an image on that versus Alpine. |
@romanrehacek Your code worked for me. I set my own timezone |
So 2 hours later and I have to give up on getting python to also work. I can get python to work on it's own. I can run Python and the code spell checker from street software vscode plugin are all I need to make my lab environment complete. Anyone have any ideas? |
Python doesn't work in theia-full-docker either. Even though it works in theia-python-docker. |
@rhildred Did you install the python language server? Look at my dockerfile for the python packages needed, you should need python, pip, and then run |
@4oo4 Yes, I installed the python language server. In the working python dockerfile:
When I tried to integrate it with your working php dockerfile I had to also add Any ideas how to get the vscode StreetSide software code spell checker integrated? Right now I have 30 students writing wordpress plugins. I don't have python again until next September. I see in the theia-full-docker the package |
@4oo4 call me a newbie but I forgot that I am running behind cloudflare and didn't turn on development mode. I do have an error:
but it looks like your Dockerfile should fix that. I will try again to merge the 2 in about 1 hour's time. |
@4oo4 It was the cloudflare all along. I added a rule to do cache-level: bypass and everything is working: In package.json
and in Dockerfile
...
|
@rhildred Awesome, good to know! |
Hi @romanrehacek i used your dockerfile and build one new image, but when i try to run from the new image still the php syntax are not highlighting, i used same dockerfile and package.json. is there anything else to configure?? |
I built @romanrehacek's Dockerfile 3 months ago right after he did it and can verify that everything worked in it. When I build it now php syntax highlighting doesn't work. The git plugin also stopped working in the last few days as well as the find in files plugin. My theory is that @romanrehacek's work was based on Theia next. This was important because there was a composer issue with Theia/PHP and the latest build. Perhaps next has breaking changes in it. My thinking was I would try latest again. Next week when my consulting gig is done. |
@rhildred so do we need to wait for the latest build? |
I tested theia with docker (https://github.com/theia-ide/theia-apps#theia-docker) and would use the plugin / theia in a docker container.
Any instructions how to use theia-php-extension with the theia-docker image or how to extend the image to use it with the plugin?
The text was updated successfully, but these errors were encountered: