Skip to content

Software Components save removes packs/components from clayer files from other project contexts #336

Description

@jthuangarm

Current behavior, Steps to reproduce and Expected behavior

When editing the Software Components view for one project context and saving the changes, the extension removes all packs: and components: nodes from .clayer.yml files that belong to other project contexts.

Steps to reproduce

  1. Use the example: https://github.com/Arm-Examples/Safety-Example-Infineon-T2G
  2. Open Software Components for one cproject or one clayer, for example from Blinky.
  3. Add an additional arbirtary pack, for example ARM::CMSIS-NN.
  4. Save the Software Components view.
  5. Check the .clayer.yml files used by the other "active" projects, for example Boot or TrafficLight.

The packs: and components: sections in unrelated .clayer.yml files are removed. This can later lead to errors such as:

board 'KIT_T2G-B-H_LITE:V1' was not found

because the board layer no longer references the Infineon BSP/DFP packs.

Expected behavior
Saving changes for one active context should only update the active project/context and its relevant layer files. It should not modify .clayer.yml files used only by other project contexts.

Additional Information

Extension version: 1.68.0 and 1.68.1-9-11630ad
OS: Windows 11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions