-
Notifications
You must be signed in to change notification settings - Fork 103
Add the Java DAP implementation (+LSP uprev) #258
Conversation
Good work, this PRs short and easy to review! Promoting to |
unbooping: tests don't pass |
d7988e2
to
0763499
Compare
🚓 Looks like this PR has grown too powerful! Going to have to demote it... sorry frend |
This change bundles a pre-built binary of the Java DAP with microsoft/java-debug#379 and replit/java-debug@2a556e5 applied, so that we can specify what host/port it should bind to, in addition to always using localhost as the interface that it binds to. In order for this to function correctly, it also needs to be running a more recent version of the Java LSP, so we will upgrade that too.
prebooping: tests are pending |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those while True
loops scare me - what do people do if it gets stuck? I guess you just reconnect. Otherwise 👍
unbooping: approved |
yup, reconnect. the caller (the debugproxy) has a timeout that pulls the plug eventually. unfortunately the DAP is super flaky in the first few launches (and most of the search results for the error suggest "have you tried turning it off and on again"). |
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.
In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.