2025-12-19 6:58 AM
When I run build in a VSCode Dev Container with STM32CubeIDE installed, the build fails and i receive an error stating arm-none-eabi-gcc and arm-none-eabi-g++ was not found in the PATH.
The compilers are installed, I see them inside the bundles folder (under /root/.local/share/stm32cube/bundles/), the extension is just not picking them up.
This was previously working in a separate container but I can't seem to replicate it.
2025-12-19 8:54 AM - edited 2025-12-19 9:06 AM
Hi @maxhalanen,
Are you invoking cmake directly, or through cube / cube-cmake commands?
In the second cases, can you verify that your project is correctly set up with the toolchain, cmake, and ninja bundles? Run cube bundle show --project in your project directory or check the .settings/bundles.store.json file.
2025-12-19 10:20 AM
Hi @Julien D
There did appear to be a mismatch in the versions I have installed and the versions that were reported in the settings/bundles.store.json file. Running cube bundle show --project to showed missing on the compilers, it looks like it was searching for version 13.3.1 and I had 14.3.1 installed. Downgrading the versions seems to have worked for finding the compiler, the debugger is still not working (I'm passing the usb device into the container, it worked previously), Is there a command to update these json configs?
2025-12-19 1:16 PM - edited 2025-12-19 1:22 PM
Running cube bundle show --project to showed missing on the compilers, it looks like it was searching for version 13.3.1 and I had 14.3.1 installed.
cube bundle install --project is the command to fetch and install bundles that are defined into the project but missing locally.
Additionally if you want to install, upgrade, or downgrade project's bundles here are some useful commands:
CLI is rich, feel free to read the help at cube, commands or flags levels.
You can also manage system and project bundles in VSCode interface through the Bundles Manager:
the debugger is still not working (I'm passing the usb device into the container, it worked previously), Is there a command to update these json configs?
I suspect, like for the toolchain, that stlink-gdbserver and programmer bundles are missing. They are installed automatically at first debugging from VSCode. But you can force their installation manuelly, again via the Bundle Manager view, or via the cli thanks cube bundle install stlink-gdbserver programmer --project