cancel
Showing results for 
Search instead for 
Did you mean: 

how to integrate STM32 Extension to DevContainer

Nawres GHARBI
ST Employee

Hello dear customers,

We understand that many of you are experiencing difficulties integrating the STM32 extension into the DevContainer environment. Specifically, the extension is not functioning correctly due to a dependency issue message displayed in VSCode.

This problem arises from an extension installation issue within VSCode.

Issue and fix

  • When installing an extension and creating a DevContainer the extension is not automatically installed /imported to the DevContainer
    To add the needed extensions, you need to click on the cloud icon and select the extensions to be added to the DevContainer.

 

NawresGHARBI_0-1736347845389.png

  • Second issue after clicking on this icon, the install process on the DevContainer is not stable, sometimes you may need to relaunch the process twice or three times to have all your extensions installed.
  • Third issue after adding all the needed extensions to the DevContainer, you may not be able to use them as VSCode is prioritizing the local installed one, so you must disable the local extension to be able to use the instance in DevContainer.
  • Same issue and fix if you are using different dev profiles

Workaround

To resolve this with the workaround, please follow these steps:

  1. Open your user settings .json file.
  2. Add the following code:
json
"remote.extensionKind": {
  "stmicroelectronics.stm32-vscode-extension": [
    "workspace"
  ]
}

Note: This is a workaround, and we are actively discussing with Microsoft to fix the issue.

We appreciate your patience and understanding as we work to improve your experience.

If you need any further assistance, feel free to reach out to our support team.

0 REPLIES 0