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

Can't setup in ubuntu, instructions unclear #2

Closed fredo514 closed 1 year ago

fredo514 commented 1 year ago

I tried to install in Ubuntu with GCC by following the instructions and couldn't get it to work.

Everything installed without errors, including getting the CMSIS packs using cpackget, and the CMSIS extension showed the project settings correctly. But the Project Manager output keep saying that the packs are missing, and the .cprj is not created. Building fails because the .cprj cannot be found.

Note: It would be nice to add a bit more details on how to set the environment variables, or at least to make the change permanent. Note: It would be nice to mention that the command to get packs should be run in the terminal and not the command palette.

mcgordonite commented 1 year ago

@escherstair apologies for the slow response on this.

The extension gets the location of the pack cache from the CMSIS_PACK_ROOT environment variable. This can be overridden by the packCachePath setting in VS Code. Otherwise, it falls back to a default path. Some things to check:

Note: It would be nice to add a bit more details on how to set the environment variables, or at least to make the change permanent.

This can be different for each linux distro, so not really practical to document here.

Note: It would be nice to mention that the command to get packs should be run in the terminal and not the command palette.

Great suggestion, we'll update that for the next release.

mcgordonite commented 1 year ago

Note: It would be nice to mention that the command to get packs should be run in the terminal and not the command palette.

Great suggestion, we'll update that for the next release.

That's updated now.

mcgordonite commented 1 year ago

Closing this issue. @fredo514 please open a separate issue if you are still having problems with configuring the CMSIS_PACK_ROOT.