Skip to main content
Explorer II
December 19, 2025
Question

Issues with Cube path in VSCode Dev Container

  • December 19, 2025
  • 1 reply
  • 115 views

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.

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    December 19, 2025

    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.

    Explorer II
    December 19, 2025

    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?

    ST Employee
    December 19, 2025

    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:

    • cube bundle list-online: prints bundles and version available on the registry
    • cube bundle install bundleName[@bundleVersion] --project: register the bundle in the project's environment
    • cube bundle remove bundleName --project: unregister a bundle

    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:

    JulienD_0-1766178441124.png

     

    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