Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack index not updated #76

Closed
KimmoVaisanen-AlifSemi opened this issue Oct 9, 2024 · 6 comments
Closed

Pack index not updated #76

KimmoVaisanen-AlifSemi opened this issue Oct 9, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@KimmoVaisanen-AlifSemi
Copy link

KimmoVaisanen-AlifSemi commented Oct 9, 2024

Type: Bug Report

Describe the bug

  • OS and Version: Ubuntu 22.04 or Windows 11
  • VS Code Version: 1.94.0
  • Extension Version: 1.38.0

We had a new pack version uploaded into Keil CMSIS pack repository, but when user updates his/her solution with the new the pack version and system will try to install the new pack version, installation gave an error E: pack version not found in the pdsc file.

After debugging and googling the issue, I found that the pdsc file in .cache/arm/packs/.Web is not updated with the latest version therefore resulting in the error.

Manual installation e.g. with cpackget add AlifSemiconductor::[email protected] gave the same error. Giving a full url for cpackget works ok and then pack can be used.

This can be worked around by either deleting the pdsc file from .Web directory or running cpackget update-index, but should system do this automatically?

If yes, I don't know if this an issue with the vscode-cmsis-csolution extension or the cmsis-toolbox.

@KimmoVaisanen-AlifSemi KimmoVaisanen-AlifSemi added the bug Something isn't working label Oct 9, 2024
@jkrech
Copy link
Collaborator

jkrech commented Oct 9, 2024

The current position is that it is not efficient to always update the index.pidx with cpackget commands that access the index.pidx.
Instead the proposal is to implement this in the CMSIS Solution extension. The MDK uVision PackInstaller maintains the file ./Web/update.cfg containing the date of the last update. On initialization of the CMSIS Solution extension the file would be read. If the date is not the current date, then the cpackget update-index is executed and the current date writting to the update.cfg file.

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Oct 9, 2024

We are aware of the issue and work on towards user-friendly solution. For now use this as a workaround.

Open in VSCode the Terminal window and enter the command:

cpackget update-index

@KimmoVaisanen-AlifSemi
Copy link
Author

KimmoVaisanen-AlifSemi commented Oct 9, 2024

Ok. Thank you.

Do you have any schedule for "user friendly solution" yet?

@ReinhardKeil
Copy link
Collaborator

Yes, it will be part of CMSIS-Toolbox 2.7 planned for December 2024.

@KimmoVaisanen-AlifSemi
Copy link
Author

KimmoVaisanen-AlifSemi commented Oct 9, 2024

Thank you again.

Since you have a plan for this, this ticket can be closed. Unless you want to keep it open for tracking purposes.

@ReinhardKeil
Copy link
Collaborator

This will be solved by Open-CMSIS-Pack/cpackget#355 + Open-CMSIS-Pack/cpackget#358

@jkrech jkrech closed this as completed Oct 18, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in CMSIS Solution Extension Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants