-
Notifications
You must be signed in to change notification settings - Fork 344
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
Latest Gradle Language Support extension cause hot code replace to fail. #1402
Comments
As i had a pretty similar issue which is resolved by the team, here is the quote from them:
|
I appear to be having the same issue. I've noticed that I can fix the issue temporarily by deleting all of VSCode's data in the Application Support (or the equivalent folder on other OSes). The issue soon came back though and once it appears HCR remains broken. I'm not sure what exactly the reproduction steps are, but when I build https://github.com/CaffeineMC/sodium-fabric then at some point hot reload says something to the effect of "there is no file to replace" even if there clearly was a change to a file (and I can confirm the file was saved and the build server did build it). |
I've tested the workaround and so far it appears to allow HCR to work again. Has the gradle extension's team been informed that there's issues with the interaction between this extension and the other one? |
I wonder why this piece of experimental code is introduced into production code? |
Having same issues. Is this being addressed? |
The root cause of the issue is that the new Gradle build server from vscode-gradle extension does not support auto build. As a result, it does not inform the Java debugger about the class files that have been modified, which in turn prevents the debugger from identifying the files that need to be hot replaced. I created a dependent issue on the upstream vscode-gradle microsoft/vscode-gradle#1449. |
Understood. then why cannot you wait for gradle extension to fix the problem before you prevent java extension to do the work? I assume lots of users are affected by this. Wasted me 5+ hours to figure this out. This is the second time I found HCR bug.
|
Even if the BSP is turned off( |
is there any update or temp solution on this? i facing this issue as well |
Same issue here i tried literally everything, DCEVM, diffrent arguments, hotswap agent jar, JDK11, 17, 20, 8 |
Everything worked fine but until recently the hot code replace stopped working. I always keep my vscode up to date.
Last time I had this issue was caused by a bug in Debugger for Java extension. #850
So I suspected it again, downgraded it, also downgraded java language server, and vscode, cleared cache, workspace data etc, nothing helped... until I removed Gradle Language support extension.
Environment
Steps To Reproduce
[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: