ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
28 stars 5 forks source link

`Create a New Solution` does not work correctly for examples from locally installed packs (`.csolution.yml` packs version problems) #126

Open MiloradCvjetkovic opened 4 days ago

MiloradCvjetkovic commented 4 days ago

Type: Bug Report

Extension Version: 1.44.0

Description

Using Create a New Solution button for copying example behaves differently when example is coming from the Web or from locally installed packs.

If the example is copied from locally installed pack the pack description in the .csolution.yml is changed in the following ways:

Note: If the example is coming from the Web the .csolution.yml file is unchanged.

Example

Example.csolution.yml with the following content:

  packs:
    - pack: Keil::STM32U5xx_DFP@^3.0.0
    - pack: Keil::B-U585I-IOT02A_BSP@>=2.0.0
    - pack: ARM::CMSIS-Driver_STM32@1.0.0

in the copied version looks like below:

  packs:
    - pack: "::"
    - pack: Keil::B-U585I-IOT02A_BSP
    - pack: ARM::CMSIS-Driver_STM32

Expected behavior

.csolution.yml should not be changed when copied from the locally installed pack.

The behavior is correct when example is coming from the Web, in that case the complete .csolution.yml file is preserved as is.

Note: I could not test ^ in the Web example but I expect that it is retained as it looks like .csolution.yml is not touched when it comes from the Web