Skip to content

--message-format option missing from cargo install #10104

Closed
@Zingam

Description

@Zingam

I want to build, install and launch debugging from the install directory in VSCode.
I have created the following launch configuration:

        "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Install & Debug 'HelloWorld'",
            "cargo": {
                "args": [
                    "install",
                    "--path",
                    ".",
                    "--bin=HelloWorld",
                    "--root",
                    "./install"
                ],
                "filter": {
                    "name": "HelloWorld",
                    "kind": "bin"
                }
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },

which causes the following error:

Running cargo install --path . --bin=HelloWorld --root ./install --message-format=json...
error: Found argument '--message-format' which wasn't expected, or isn't valid in this context

Am I holding it wrong or is this a limitation of the system?

Well it looks like I'm holding it wrong. Could we have this --message-format=json option in the install context to enable install&debug workflow?

Metadata

Metadata

Assignees

Labels

A-cliArea: Command-line interface, option parsing, etc.A-json-outputArea: JSON message outputCommand-installE-easyExperience: Easy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions