Robotics StackExchange | Archived questions

Confusion about task.json parameters

Hi!

I'm using VS Code to create some custom ROS tasks via setting in task.json.

Since I'm new to VS Code, I'm confused about some of the parameter in the following snippet

    {
        "type": "catkin",
        "args": [
            "clean",
            "--yes"
        ],
        "problemMatcher": [
            "$catkin-gcc"
        ],
        "label": "catkin_clean"
    }

(1) I understand that the task's type is shell and the command is interpreted as a shell command. But what does type: catkin mean? Does that mean this task inherits the catkin command?

(2) What is the use of "problemMatcher": ["$catkin-gcc"]? How to intuitively discover this utility?

Thanks!

Asked by JohnDoe on 2023-08-01 03:15:04 UTC

Comments

Answers