Skip to content

Manage Solution adds back old target type when user changes target type name manually (Zephyr projects) #451

@ReinhardKeil

Description

@ReinhardKeil
  • Extension: arm.cmsis-csolution Version1.62.2-81-g84039b4

To Reproduce

Use: https://github.com/Arm-Examples/cmsis-zephyr

  1. Open a Solution and select a target type in Manage Solution dialog. SAVE and close Manage Solution dialog
Image
  1. Open zephry.csolution.yml and change the target type name, i.e.
  target-types:
    - type: B-L475

Note: The problems message is correct: 'B-L475-IOT01A' is not selectable as active target-set

  1. Open Manage Solution dialog again, it shows the old target name. Selecting the new target name and click SAVE adds back the old target name which is odd.
Image
  target-types:
    - type: B-L475-IOT01A
      target-set:

Expected behavior

I suggest to fall back into the init behaviour. If the target name is not found select the first available target name.
In any case, do not add the old target name.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions