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

Cannot update manifest files #27

Closed Frisc98 closed 1 year ago

Frisc98 commented 1 year ago

Type: Bug Report

Describe the bug

9 FAILED_PRECONDITION cannot update manifest files ErrorMessage: unable to read Index file /home/user/Documents/keil/cmsis_packs/.Manifest/index.pidx ErrorMessage: open /home/user/Documents/keil/cmsis_packs/.Manifest/index.pidx ErrorMessage: no such file or directory

Screenshots

vscode

Additional context

cmsis_pack folder after initialization doesn't contain .Manifest folder, only .Download, .Web and .Local

mcgordonite commented 1 year ago

Hi @Frisc98, thanks for reporting this. To help debug, can you let me know how you initialised the pack cache? For example, did you use cpackget init ~or Keil MDK~?

Edit: just noticed you're on Linux so presumably not Keil MDK

Frisc98 commented 1 year ago

I've used this command from cpackget readme: $ cpackget init --pack-root path/to/new/pack-root https://www.keil.com/pack/index.pidx

I've set pack-root folder as empty folder in Documents and after init it contained .Download, .Web and .Local

mcgordonite commented 1 year ago

Thanks, I'm able to reproduce this. We think the problem is that the extension can't handle the readonly file permissions set by cpackget init. If you ls -la in your pack root you should see the permissions. We'll get that fixed in an upcoming release.

You should be able to work around for now by manually setting the permissions to writable for your user.

Frisc98 commented 1 year ago

Yeah, changing the permissions fixed it. Thank you for your help.