Closed ReinhardKeil closed 3 weeks ago
To fix the fundamental problem reported here the *.cbuild-idx.yml
should be updated also in case of errors during list layers
, similarly as it is done for convert
.
The existing boolean errors
node can/should be consistently used for this scope.
@ReinhardKeil Please fix the indentation of errors
and packs-missing
nodes in the documentation - both are inside a cbuild array item, not outside. Also clayers
are missing.
doc: https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/2.4.0/docs/YML-CBuild-Format.md#file-structure-of-cbuild-idxyml
schema: https://github.com/Open-CMSIS-Pack/devtools/blob/tools/projmgr/2.4.0/tools/projmgr/schemas/common.schema.json#L925-L927
Concerning listing all error messages, since it has a much wider scope I would suggest to open a separate issue to estimate the effort and schedule the implementation with a proper priority.
Problem To Be Solved The layer detection workflow works as described in Reference Applications - Usage.
However, when no matching layer is detected, the
*.cbuild-idx.yml
file does not get updated.Steps to Reproduce
Use the following repos:
Register the development versions of the packs with
cpackget add <path-to-pdsc>
and verify setup with:Run:
This is the correct layer detection. The file
USB_Device.cbuild-idx.yml
shows the valid setup.So far so good, but here is the problem:
Change target in
*.csolution.yml
to a board where not compatible layer exists as shown below.Run:
The
*.cbuild-idx.yml
is unchanged, which means the IDE cannot detect that there is no compatible selection.Suggest A Solution
Even in this case the
*.cbuild-idx.yml
needs to be updated and an error indicator should be included.Consider to list all error messages, i.e. with: