-
Notifications
You must be signed in to change notification settings - Fork 54
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
DSPLaunch hangs when used with Dart Debug Adapter #262
Comments
Do you want to commit your LSP4E extending code somewhere, I can check it out and see if I can track it down. |
@jonahgraham thanks for the offer. I am in an early phase, but the plugin is buildable/runnable https://github.com/dart4e/dart4e/blob/main/plugin/src/main/java/org/dart4e/launch/LaunchConfigLauncher.java |
The issue here is in LSP4E and I have transferred to LSP4E repo. A while ago an attempt at fixing an NPE fundamentally changed the behaviour of the debug client. When the client receives the The current code: lsp4e/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/debugmodel/DSPDebugTarget.java Line 254 in e17be24
is waiting for:
Then once both of those are received, it is sending the breakpoints followed by the lsp4e/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/debugmodel/DSPDebugTarget.java Lines 254 to 269 in e17be24
However the client needs to start sending breakpoints once The picture in microsoft/vscode#4902 (comment) is a better picture showing the parallel nature of the debug client when talking to the adapter than this pic in the DAP spec Unfortunately #66 moved a bracket around to address an NPE, but that wasn't the correct fix. Reverting #66 makes the dart debug adapter work properly again. However that reintroduces the potential NPE. For that I will open another issue as it requires its own long discussion. |
This reverts commit e694af8. Fixes eclipse#262
@mickaelistria Now that this got fixed. I would be very interested in getting a new LSP4E release that includes this patch as well as #256. WDYT, how soon would that be possible? |
Let's wait for #265 before considering a release. |
It is now merged. |
I am trying to integrate the dart debug adapter with lsp4j/lsp4e, however after the first view messages the communication hangs and I have no idea why. I doubt that it's LSP4E, but a more underlying problem, so I opened the issue here.
This is the communication trace:
That is what I see in the UI:
The Debug Adapter can be launched manually using the command
dart debug_adapter
. This is how I launch it:This is the documentation for the Dart DAP support https://github.com/dart-lang/sdk/blob/main/pkg/dds/tool/dap/README.md
Any thoughts/ideas are very much appreciated.
The text was updated successfully, but these errors were encountered: