Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Handle Invalid JSON in Cargo Output#429

Open
schrieveslaach wants to merge 1 commit intosimrat39:masterfrom
schrieveslaach:fix-json-parsing
Open

Handle Invalid JSON in Cargo Output#429
schrieveslaach wants to merge 1 commit intosimrat39:masterfrom
schrieveslaach:fix-json-parsing

Conversation

@schrieveslaach
Copy link

When running all tests of a file, the cargo command prints none JSON strings into stdout. Therefore, the debugging fails because the dap.lua file wasn't prepared for that. This commit makes the JSON parsing of the stdout output more robust by excepting none JSON formatted lines.

When running all tests of a file, the cargo command prints none JSON
strings into stdout. Therefore, the debugging fails because the dap.lua
file wasn't prepared for that. This commit makes the JSON parsing of the
stdout output more robust by excepting none JSON formatted lines.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant