dansomething / coc-java-debug

An extension for coc.nvim to enable Java debugging via jdt.ls
https://www.npmjs.com/package/coc-java-debug
Eclipse Public License 2.0
100 stars 8 forks source link

Java class hotswap not working in debug model #34

Closed caiwenhn2008 closed 1 month ago

caiwenhn2008 commented 2 years ago

Describe the issue Hi, Thanks for buiding this excellent extension to simplify our java debug in NVIM, I could have basic java debug in NVIM with limited configuration, cheers!!!

but i see java class hotswap function not working, is it not supported today?

I have set "let g:ycm_java_hotcodereplace_mode = 'always' as suggested from https://github.com/puremourning/vimspector#java

but it seems the java class cannot be hot-swapped in debug model.

See hotcodereplace message in vimspector log:

image

2022-03-26 20:54:50,921 - DEBUG - Message received: {'event': 'hotcodereplace', 'body': {'changeType': 'BUILD_COMPLETE', 'message': 'Build completed.', 'type': 'hotcodereplace'}, 'seq': 21, 'type': 'event'}

dansomething commented 2 years ago

I'll see if I can reproduce it, but it's most likely an issue with Vimspector or jdt.ls since this project does little more than provide some "glue" between the two.

What versions of the relevant software are you using? vim/nvim: coc.nvim: coc-java: vimspector: java: jdt.ls:

dansomething commented 2 years ago

I can replicate the issue, but I still don't know the root cause. Though I'm sure it's either an issue in Vimspector or jdt.ls. I can't get it to work in VS Code either using the same example.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dansomething commented 1 month ago

This should be fixed by #45