ARM-software / vscode-cmsis-csolution

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

PROMBLEMS view cannot show 'missing pack' message #24

Closed UniverGao closed 1 year ago

UniverGao commented 1 year ago

Type: Bug Report

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Clone example in 'https://github.com/Open-CMSIS-Pack/csolution-examples.git'
  2. cd ./csolution-examples/Hello and execute code . command
  3. Project convert automatically and OUTPUT tag shows missing pack problems
  4. Open Hello.csolution.yml but PROBLEM tag doesn't show missing pack message

Expected behavior

Code sample and logs //

Screenshots image

Additional context //

mcgordonite commented 1 year ago

Hi @UniverGao, it's not immediately obvious what the cause is here, I wasn't able to reproduce it with the csolution-examples repository. Some things to check:

  1. Has the context view loaded correctly, showing the active project, target & build type? If it hasn't, the extension might not have activated correctly. It should show something like this: Contexts
  2. Is the CMSIS pack root configured correctly in WSL? It's possible the csolution convert command is using a different pack cache from the VS Code extension. Do you have a CMSIS_PACK_ROOT environment variable set in WSL? Is the cmsis-csolution.packCachePath VS Code setting configured for your WSL environment? I've not tried this in WSL, but I think the default would be having CMSIS_PACK_ROOT set to something like /home/ug/.cache/arm/packs, and leave the VS Code setting blank.
UniverGao commented 1 year ago

@mcgordonite

  1. It shows like this but no ACTION tag image
  2. I redefined the environment variable followed the instruction, the variable CMSIS_PACK_ROOT is '/home/ug/downloads/cmsis-pack' cmsis-csolution.packCachePath is set as default and I didn't change it image

best regards

mcgordonite commented 1 year ago

Hi, one more thing to check: are the packs defined in the cproject or csolution file? Support for packs in cproject files was only added to the spec recently and hasn't been implemented in this extension yet.

UniverGao commented 1 year ago

Hi, one more thing to check: are the packs defined in the cproject or csolution file? Support for packs in cproject files was only added to the spec recently and hasn't been implemented in this extension yet.

image

You can see that all packs can be installed by using 'cpackget' command