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
102 stars 8 forks source link

Hot code replace? #9

Closed Frederick888 closed 4 years ago

Frederick888 commented 4 years ago

Currently after the code is modified I can see Unhandled event: hotcodereplace. Is it possible to have HCR in Vim? DCEVM with auto HotSwap works but is usually very resource intensive.

dansomething commented 4 years ago

Unhandled event:... is coming from Vimspector. A hook will need to be added in that project either to handle the event or pass it along to some other custom code that knows how to handle it. There doesn't appear to be much involved in handling the event once there is a way to set up the handler.

dansomething commented 4 years ago

JRebel is another option if you're willing to pay for it.

Frederick888 commented 4 years ago

Thanks for your explanation! So I guess this is probably not really related to coc-java-debug or Vimspector? Should I actually file an issue at neoclide/coc-java or eclipse/eclipse.jdt.ls?

dansomething commented 4 years ago

It may need to be a new feature in Vimspector to support custom events since the HotCodeReplaceEvent is not in the Debug Adapter Protocol specification.

Frederick888 commented 4 years ago

Thank you. I'll close this ticket in favour of puremourning/vimspector#252 then.