Skip to content
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

!Important Gradle daemon view only show part of all Gradle Deamon JVM #930

Closed
mozhuanzuojing opened this issue Aug 22, 2021 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@mozhuanzuojing
Copy link

mozhuanzuojing commented Aug 22, 2021

Extension Name: vscode-gradle
Extension Version:3.6.1
OS Version:window10
VSCode version: 1.60.0-insider (system setup)

Describe the bug

When I open the gradle deamon view and wait a few seconds. Execute jps -l -m -v to see two Deamon. But Gradle Deamon View can only see one.

One of the Gradle Deamon JVMs is started by the vscode-java plugin, Another Gradle Deamon JVM is started by the vscode-gradle plugin. But both Deamon are analyzing the same project! Repeat it!

To Reproduce

  1. Open a gradle project
  2. Await build job finished
  3. Open gradle deamon view

Expected behavior
Show all current gradle deamon jvm of running.

Screenshots

image

Output from "Gradle Tasks"

Does the bug still exist if you disable all other extensions?
Yes

Additional context

When opening the Gradle view, if you find Gradle Deamon exists in the current project, do not start a new Gradle Deamon. Because it is repetitive, and it will waste a lot of time.

@mozhuanzuojing mozhuanzuojing added the bug Something isn't working label Aug 22, 2021
@CsCherrYY
Copy link
Collaborator

@mozhuanzuojing Could you try to click Refresh Daemon Status button? Does it work?

@mozhuanzuojing
Copy link
Author

@CsCherrYY

  • No display after clicking refresh

image

@mozhuanzuojing
Copy link
Author

mozhuanzuojing commented Aug 24, 2021

@CsCherrYY I re-describe the issue.

A serious problem was found. The vscode-java plugin starts a Gradle Deamon JVM. Then I executed Gradle Task from the Gradle view, it restarted a new Gradle Deamon JVM!

@mozhuanzuojing mozhuanzuojing changed the title Gradle daemon view show nothing Gradle daemon view only show part of all Gradle Deamon JVM Aug 24, 2021
@mozhuanzuojing mozhuanzuojing changed the title Gradle daemon view only show part of all Gradle Deamon JVM !Important Gradle daemon view only show part of all Gradle Deamon JVM Aug 24, 2021
@mozhuanzuojing
Copy link
Author

mozhuanzuojing commented Aug 26, 2021

@CsCherrYY I hope that the next version can reuse the existing Gradle Deamon. Because I don't want to wait for the project to compile. And reduce calls to Java: Update Project. Thanks.

@CsCherrYY
Copy link
Collaborator

@mozhuanzuojing That's also what we want to improve in the future 😄. vscode-gradle could have a better way to collaborate with vscode-java.

@mozhuanzuojing
Copy link
Author

Duplicate of #953

@CsCherrYY
Copy link
Collaborator

tracked in #953 and will be in Jan 2022 milestone.

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

2 participants