Skip to content

Clean up jsonrpc message handling #184

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

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

elken
Copy link
Contributor

@elken elken commented Nov 8, 2022

Tidies up the message handling quite a bit to reduce complexity and fix
a couple of bugs.

This also resolved an issue with error log messages not being parsed
correctly, and handles multiple devices when debugging.

Closes #183

Tidies up the message handling quite a bit to reduce complexity and fix
a couple of bugs.

This also resolved an issue with error log messages not being parsed
correctly, and handles multiple devices when debugging.

Closes emacs-lsp#183
@elken elken force-pushed the fix/multiple-device-parsing branch from 136cd99 to e242ba2 Compare November 8, 2022 08:25
@elken
Copy link
Contributor Author

elken commented Nov 8, 2022

As per the commit message, this also highlighted the fact that error log messages weren't being parsed correctly at all.

I don't get any errors now when trying to load the daemon up, load the list of devices through dap-debug and trying with a failing emulator (there's issues on my end with android emulators that I don't want to yak shave so some confirmation this still boots an emulator would help)

@ericdallo

Copy link
Member

@ericdallo ericdallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually tested and it works, thank you!

@ericdallo ericdallo merged commit 6ef126e into emacs-lsp:master Nov 8, 2022
@elken elken deleted the fix/multiple-device-parsing branch November 8, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug doesn't work. [jsonrpc] (warning) Invalid JSON
2 participants