-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[v2] Code Runner and Redhat Java extensions cannot run code in EC2 when Chrome or Safari are used #1136
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
Comments
I'll try this out as soon as I can but in the meantime here's a wild shot in the dark: is the URL somehow HTTP for Chrome/Safari but not Firefox? I've seen issues running tasks when service workers aren't available (which happens on HTTP). |
Negative. The URL is always a By the way, I can share a Dockerfile that may save few minutes on your side and just give you the opportunity to play around and observe. Would that help? |
Yeah, that sounds great. |
So here is the content of the
|
I haven't ran this on EC2 yet but it seems like our Java extension is missing files. If I go into the extension and run (after installing
Then it activates properly. It remains to be seen whether this is the cause of the Chrome/Safari issues but I'm pretty confused because those files seemed to exist before. We really need to tackle improving our extension marketplace next I think. |
On my side, going through the steps outlined above helped with getting the Java language support extension activated. However, the reported issue is still there, i.e. I cannot run Java code and code snippets through I opened the Developer tools in Chrome. There are errors and warnings. The warnings are still there with Firefox, there are no errors. I guess these would should be some hints as to what might be wrong. |
Ahh that's interesting! The It turns out I was able to replicate this locally using just the Dockerfile. On an insecure domain (I'm just using my hosts files to point to localhost since localhost itself is considered secure) Chromium doesn't work but Firefox does, and I see the same difference in errors you described. I could have sworn I tested an insecure domain last Friday but I'm testing it now and it definitely isn't working so I must have imagined it. It just spins with "activation extensions". |
Now, |
code-server
version:N.B. I am not sure that this issue is strictly related to the specific version of
code-server
. I had a similar experience with just running Java code from within the IDE on an EC2 VM even before. Now I can confirm that code snippets also misbehave.Description
I have built a Docker image with Java support (https://github.com/redhat-developer/vscode-java) which is also able to execute code snippets from many other languages (https://github.com/formulahendry/vscode-code-runner). Containers based on this image work equally well when run on my local macOS machine with latest versions of Firefox, Chrome, and Safari.
I run a container based on this same image on a VM in Amazon EC2. Using Firefox I am able to run code snippets supported by the
code-runner
extension and usevscode-java
to execute Java applications or tests from within the VS Code.Using the Chrome or Safari web browsers to connect to the same container, none of those worked. I see that extensions are being activated but nothing really happens when trying to execute code snippets or Java code.
Maybe there is something to be configured. I am not sure. Any recommendation how to get Chrome (and potentially Safari) working against a Docker container run on an EC2 VM would be highly appreciated.
Steps to Reproduce
t2.large
Ubuntu VM in EC2.vscode-java
) and/or running code snippets (code-runner
) on top of this VM.The text was updated successfully, but these errors were encountered: