microsoft / vscode-java-debug

Java Debugger for Visual Studio Code.
Other
530 stars 339 forks source link

Hot code replace not working #850

Closed Mike-the-one closed 4 years ago

Mike-the-one commented 4 years ago

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
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 commented 4 years ago

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

testforstephen commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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

testforstephen commented 4 years ago

The latest 0.27.1 already has the fix.

Mike-the-one commented 4 years ago

@testforstephen Thanks for fixing this!

Palidino commented 4 years ago

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

testforstephen commented 4 years ago

@Palidino Could you try a private fix at https://github.com/microsoft/vscode-java-debug/issues/855#issuecomment-666262103?