cancel
Showing results for 
Search instead for 
Did you mean: 

VCPKG fails with STM32 VS Code Extension

bibble235
Associate III

Hi,

Trying to get he new STM32 Extension working for VS Code and it is failing with

> Using vcpkg executable at "/home/iwiseman/.vscode/extensions/ms-vscode.vscode-embedded-tools-0.7.0-linux-x64/assets/platform/linux-x64/vcpkg-glibc.app".
> Using VCPKG_ROOT at "/home/iwiseman/.config/Code/User/globalStorage/ms-vscode.vscode-embedded-tools/vcpkg/root".
> Activating environment at "/home/iwiseman/dev/stm32cubeide-workspace/Test6/vcpkg-configuration.json".
> Version of vcpkg used to create VCPKG_ROOT: "2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895".
> Running vcpkg with arguments ["version"].
vcpkg package management program version 2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454
 
See LICENSE.txt for license information.
> Bundled version of vcpkg: "2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454".
> Versions do not match. Reinstalling vcpkg.
> Running vcpkg with arguments ["bootstrap-standalone"].
Downloading standalone bundle 2023-03-14.
> Running vcpkg with arguments ["activate","--project","/home/iwiseman/dev/stm32cubeide-workspace/Test6","--json","/tmp/dbd870692f4d83c38db7324385cbdaa0"].
warning: vcpkg-artifacts is experimental and may change at any time.
Downloading vcpkg-artifacts bundle 2023-03-14...
error: Failed to provision vcpkg-artifacts.
> Failed with exit code "1".
> Failed to activate environment at "/home/iwiseman/dev/stm32cubeide-workspace/Test6/vcpkg-configuration.json".

I have tried

  • re-importing
  • Installing vcpkg and exporting VCPKG_ROOT
  • Using Pre-Release version of Embedded Tools
  • Crying

Happy to share logs run tests etc. Just want my stuff to work.

Using

Ubuntu 23.04

VS Code 1.79.0

stm32CubeIDE 1.12.1

I have not installed anything specific except

CMake

Nigja build

Build Essential

Thanks,

3 REPLIES 3
bibble235
Associate III

Guessing this is the problem. https://github.com/microsoft/vcpkg/issues/30474

Will investigate when work allows and feedback.

Want to spend sometime using the boards instead of getting software to work.

bibble235
Associate III

So add the setting for vs code

"vcpkg.diagnostics.additionalArguments": [ "--debug" ]

Lots of debug and it did fail. But I did notice it was looking in /home/iwiseman/.cache/vcpkg. Removing this and retrying still did not work but need I went to extensions for embedded and installed pre-release


_legacyfs_online_stmicro_images_0693W00000dDZzBQAW.pngIt did not work straight away but removing the vcpkg directory again and it did succeed.

I now have an .elf .bin and .hex file.

Next is uploading and debugging.

jose luu
Associate III

Worked for me: execute the vscode command (Ctrl-Shift P) vcpkg: Activate vcpkg environment

 

Overall it seems coming from a deficiency of ms-vscode.vscode-embedded-tools