Closed Davidster closed 10 months ago
The cargo
command is supposed to build targets only, not run them. See discussion here.
Oh I see, so it's a problem with the way the launch configs are auto-generated. Is that process managed by the extension or by vscode itself?
The generated config should have included --no-run. Are you sure it was not modified afterwards?
it seems that you were right and that this was caused by me having removed the "--no-run" argument. thanks for the help!
what would you think about adding a hint in the error message:
let hint = line.trim() === "" ? ". Did you remove the --no-run argument?" : "";
reject(new ErrorWithCause(`Could not parse JSON: "${line}"${hint}`, { cause: err }));
When trying to debug a unit test from the parry rust crate, I got an error in the codelldb vscode extension. Here was my launch config:
and here was the error:
I suspect this is caused by the new lines added at the end of the message but I'm not sure