microsoft / vscode-spring-boot-dashboard

Spring Boot Dashboard for VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-spring-boot-dashboard
Other
56 stars 31 forks source link

Not registering service as started #64

Open shankarramr opened 5 years ago

shankarramr commented 5 years ago

After starting the service vscode spring boot dashboard is not registering the service as started and the icon doesn't turn green. Consequently I am unable to stop the services as it only shows start option and not stop option. This seems to have broken after 21st Feb 2019 update (not sure update to vscode or the plugin itself)

Versions: Vscode: 1.32.0 insider Spring boot dashboard: 0.1.5

Eskibear commented 5 years ago

This is a known issue. When you “start” the project, it tells the Java debugger to “start without debugging”. The pitfall is that you might lose track of the process if vscode exits unexpectedly at the moment, an you will have to terminate the process manually.

I can think of two solutions for that. I) ensure the Java debugger to terminate the process before it gets disposed. II) Switch to another way to “start” a spring boot project, and detect running spring boot processes on startup.

The two candidates have different behaviors, which one makes more sense?

shankarramr commented 5 years ago

Sorry, I am confused because this was working till 20th Feb 2019 build. Actually I had this issue long time ago then it got resolved down the line now again it seems to be broken.

eungook commented 5 years ago

You have to run project [VSC-> Explorer-> Spring boot Dashboard-> Project-> Start] at first time. Do not "Run" in the @SpringBootApplication Class.main(). (sorry for my poor english 🙏)

[Versions] OS: MacOS Vscode: 1.37.1 Spring Boot Dashboard: 0.1.6