Skip to content

"Could not fetch targets" when a test has no suites #265

Open
@jameswestman

Description

If you leave the suites argument of a test empty, meson defaults to putting the test in a single suite named after the project name, but if you set the suites argument to an empty array, meson leaves it empty. The createTestTask function in tasks.ts does not handle this case, since it uses the first suite to get the project name, so you get a "Could not fetch targets" error with no further information in the output panel.

I think this could be solved by getting the project name from intro-projectinfo.json instead?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions