Skip to content

[v2] Code Runner and Redhat Java extensions cannot run code in EC2 when Chrome or Safari are used #1136

@emil-simeonov-se

Description

@emil-simeonov-se
  • code-server version:
info  2.1665-vsc1.39.2
info  3d5db8313a91f80dfc402450fd117b4e63f7711e
info  x64

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.

  • OS Version: Ubuntu VM hosted by Amazon EC2, client machine is macOS Catalina with latest Firefox, Chrome, and Safari installed.

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 use vscode-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

  1. Launch a t2.large Ubuntu VM in EC2.
  2. Run a docker container which supports Java (vscode-java) and/or running code snippets (code-runner) on top of this VM.
  3. Use Firefox to execute code snippets or Java code from within the IDE. Should work.
  4. Use Chrome or Safari to execute code snippets or Java code from within the IDE. Most likely without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions