Skip to content

project.yml note setup: schema information #2315

@ReinhardKeil

Description

@ReinhardKeil

The Problem To Be Solved

When adding setups in a cproject file, but missing the "string" after setup, the error is misleading as you only get "unexpected instance type". Also the hover over information does not link to the documentation.

project:
  device: :cm33_core1

  setups:
    - setup:
      misc:
        - Link:
          - --verbose

The same user error on group: delivers a meaningful error in the Problems view.

Image

However the error "Expected string" is not present in the output view where you only get:

csolution error: core1.cproject.yml:13:7 - unexpected instance type
csolution error: core1.cproject.yml:6:7 - unexpected instance type
🟥 Convert solution failed

Suggest A Solution

  • Check the schema description of "setup". Add a link to the documentation in a similar way as it exists for group:.
  • The message "Expected string" should be shown to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions