★ wanayoo — archive 1999 https://github.com/microsoft/vscode-java-debug/issues/850Nouvelle recherche | Portail wanayoo
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

Hot code replace not working #850

Closed
Mike-the-one opened this issue Jul 19, 2020 · 10 comments
Closed

Hot code replace not working #850

Mike-the-one opened this issue Jul 19, 2020 · 10 comments

Comments

@Mike-the-one
Copy link

@Mike-the-one Mike-the-one commented Jul 19, 2020 •

I have a spring boot application, hot code replace was working fine, until I recently to latest VS code (1.47.1).
Tried to delete the workspace storage folder, still the same.
Tried both jdk 1.8 and java 11, same problem
Tried the change HCR from auto to manual, got this message whenever I click the lightning icon after I change the code and save:

 Cannot find any changed classes for hot replace!

Thanks

Environment
  • Operating System: Deepin 15.11
  • JDK version: Both 1.8 and 11
  • Visual Studio Code version: latest, 1.47.1
  • Java extension version: 4.5
  • Java Debugger extension version: 0.27.0
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations
@Mike-the-one
Copy link
Author

@Mike-the-one Mike-the-one commented Jul 19, 2020

Hmm, not sure what happened, replaced with 1.47.2 or 1.46.1 same problem. It was working fine

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Jul 20, 2020

What's your version of "Debugger for Java" extension? Could you try to downgrade it to 0.26.0 to see whether it still happens?

@Mike-the-one
Copy link
Author

@Mike-the-one Mike-the-one commented Jul 20, 2020 •

@testforstephen Thanks!!! it works in 0.26.0... did not realize that debugger for java was recently updated, otherwise I would have downgraded it first :-) wasted me a couple hours downgrading VSCode, clean install etc :)

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Jul 20, 2020

@Mike-the-one Would you mind sharing a sample project and some steps to reproduce the issue? A minimum project that can reproduce the issue would be helpful to find the root cause?

@Palidino
Copy link

@Palidino Palidino commented Jul 20, 2020

I'm also having this issue, but I don't have a sample project for reproduction of the bug. All I know is that since the update, it doesn't work for either project I work on. It just says there are no changes. Like OP, with Java 8 and 11.

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Jul 21, 2020 •

i reproduced it. Actually HCR succeeds, just report a wrong status about no changes found. Will push a hotfix for it.

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Jul 21, 2020

The latest 0.27.1 already has the fix.

@Mike-the-one
Copy link
Author

@Mike-the-one Mike-the-one commented Jul 24, 2020

@testforstephen Thanks for fixing this!

@Palidino
Copy link

@Palidino Palidino commented Jul 31, 2020

I'm on 0.27.1 and still get told: "cannot find any changed classes for hot replace!"

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Jul 31, 2020

@Palidino Could you try a private fix at #855 (comment)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.