Skip to content

[v2] Java Run and Debug doesn't work #1081

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

Closed
wjayesh opened this issue Oct 16, 2019 · 6 comments
Closed

[v2] Java Run and Debug doesn't work #1081

wjayesh opened this issue Oct 16, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@wjayesh
Copy link

wjayesh commented Oct 16, 2019

  • code-server version: 1.38.1
  • OS Version: Ubuntu 18.04.3, Docker(running locally)

Description

  • Run and Debug commands, that are available after right-clicking on a file, do not work. On clicking on any of these, an "Activating Extensions" message appears on the status bar which disappears in a while. There is no further activity.

  • Running tests through Java Test Runner extension works and shows a report but Debug Test shows similar behavior as Run and Debug.

Steps to Reproduce

  1. Start a container with command sudo docker run -t -p 127.0.0.1:8080:8080 -v "LOCAL_PATH:/root/project" codercom/code-server:v2
  2. Open localhost:8080 on your browser
  3. Create a terminal from the drop down menu "Terminal"
  4. Install JDK with the command sudo apt install default-jdk
  5. Install Java Extension Pack through the Extensions option in the sidebar.
  6. Git clone a sample java project with tests.
  7. Use "Open Folder" to open the cloned directory.
@wjayesh wjayesh added the bug Something isn't working label Oct 16, 2019
@harunozceyhan
Copy link

Hi WJayesh,
I have same problems like you and that's why decided to work with VSCode desktop application via SSH.
The only thing that I can help you is about 3rd problem. You need to set Default Shell to bash via "ctrl + shift + p -> Select Default Shell -> bash" command. Then you can launch a new terminal.

@wjayesh
Copy link
Author

wjayesh commented Oct 20, 2019

Thanks for the suggestion @harunozceyhan
Also, the terminal problem is resolved 👍

@wjayesh
Copy link
Author

wjayesh commented Oct 21, 2019

@sr229 @code-asher Any updates on this? Thanks

@emil-simeonov-se
Copy link

Java processes run and and can be debugged provided that bash is selected as a default shell in VS Code. This could be preset in the Docker image of the code-server by exposing an environment variable during the image build:

ENV SHELL /bin/bash

@code-asher
Copy link
Member

@emil-simeonov-se Thanks for the fix!

@wjayesh We'll have a new v2 image pushed once https://travis-ci.com/cdr/code-server/jobs/248856470 completes so give that a shot when you have some time and let me know if it doesn't fix the problem for you (it seems to fix it for me).

@wjayesh
Copy link
Author

wjayesh commented Oct 25, 2019

Thanks @code-asher @emil-simeonov-se . I will take a look and update this comment to confirm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants