-
Notifications
You must be signed in to change notification settings - Fork 25
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
refactor: DAP via LSP messages #109
refactor: DAP via LSP messages #109
Conversation
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
e33a9d7
to
76076a2
Compare
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
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.
Nice PR.
Do you think you could add one more test that would simulate running macro tracer while receiving LSP requests? This is the first PR that allows simultaneous processing of DAP and LSP requests and the test could detect some hard-to-discover bugs in combination with TSAN in the future.
ret = lsp_dispatcher.run_server_loop(); | ||
auto msg = channel.read(); | ||
if (!msg.has_value()) | ||
break; |
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.
As far as I understand, the language server ends when the input pipe is destroyed. That is somewhat incompliant with the LSP spec which says that the server should exit after exit notification.
When we didn't have the exit mechanizm implemented correctly in the past, we had problems on Mac OS, where the language_server executable would never end.
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.
Are you sure it was due to the pipe not being closed rather then the server getting stuck somewhere else?
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.
No, I am not sure, I just think we should try it somewhere. But I do not have Mac available..
Signed-off-by: Slavomir Kucera <slavomir.kucera@broadcom.com>
Regarding the extra test - I think there is an existing problem where |
SonarCloud Quality Gate failed. |
🎉 This PR is included in version 0.13.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 0.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.