Skip to content

[csolution] csolution run test.csolution.yml -g myGenerator reports board not found if a none selected cproject.yml lists a missing pack #619

Description

@jkrech

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Summary: If launching a generator for a solution with multiple *.cproject.yml files a *.cbuild-gen.yml file is generated for each context sharing the same build- and target-type.
As a result the packs specified in all these *.cproject.yml files (and included layers) need to be installed otherwise a misleading error message about board/device not found is issued.

csolution run c:\workspace\STM32H743I-EVAL\Network\Network.csolution.yml -c BSD_Client.Debug+STM32H743XIHx -g CubeMX -D
error csolution: board 'STM32H743I-EVAL:Rev.B' was not found

Running csolution list packs Network.csolution.yml -c *.Debug+STM32H743XIHx -m lists the missing packs.

csolution list packs Network.csolution.yml -c *.Debug+STM32H743XIHx -m
ARM::mbedTLS@^4.0.0

We intentionally limited the scope of finding missing packs to the active target set.
Therefore we may need to extend the command line to not only specify the context for the Generator but also the active target@set to only generated cgen.yml files for project contexts that are specified for it.

Expected Behavior

csolution should report a missing pack instead of board not found

The check for missing packs done by cbuild setup and the required packs by launching the generator should be consistent. Limiting the scope to project contexts from the active target-set seems like a feasible option.

Affected tools

  • csolution

Affected operating systems

  • all

Metadata

Metadata

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

Status
In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions