Skip to content

Misleading error message with missing layer: file. #2269

@ReinhardKeil

Description

@ReinhardKeil

Describe the bug

When the layer file is mistyped, the error message does not indicate that a file is missing. Instead it refers to variables

Case 1:

  layers:
    - layer: $SolutionDir()$/../Board/M55_HP/Board_HP.clayer   # extension .yml missing, therefore the file does not exist

Message:

Execute: cbuild setup c:\temp\Nov13\Alif_CMSIS3\MyProject.csolution.yml --active AE402FA0E5597BE0 --packs --update-rte
error csolution: undefined variables in MyProject.csolution.yml:
To resolve undefined variables, copy the settings from cbuild-idx.yml to csolution.yml
Completed: cbuild failed with exit code 2

Case 2:

  layers:
    - layer: $SolutionDir()$/Board/M55_HP/Board_HP.clayer   # extension .yml missing, therefore the file does not exist

Message:

Execute: cbuild setup c:\temp\Nov13\Alif_CMSIS3\MyProject.csolution.yml --active AE402FA0E5597BE0 --packs --update-rte
C:/temp/Nov13/Alif_CMSIS3/Board/M55_HP/Board_HP.clayer - error csolution: invalid node; first invalid key: "layer"
C:/temp/Nov13/Alif_CMSIS3/Board/M55_HP/Board_HP.clayer - error csolution: invalid node; first invalid key: "layer"
Completed: cbuild failed with exit code 1

To Reproduce

Use this project Alif_CMSIS3.zip

Expected behavior

Missing file "name"

Environment:

  • CMSIS-Toolbox 2.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions