2026-02-19 6:50 AM
When opening a project directory in VS Code, the STM32CubeIDE for Visual Studio Code extension gets stuck in an infinite loading state (as shown in the screenshot below).
Symptoms:
"Go to Definition" does not work.
The Build Analyzer view does not appear.
clicking the "Build" button still triggers a successful compilation.
Most dependent extensions, such as STM32Cube CMake Support, remain inactive
Here is the log output from STM32Cube Core during the failed loading:
I discovered that if I completely disconnect my PC from the internet before launching VS Code, the extension reports a network error but then successfully initializes after a short period. Once initialized offline, all features (including Go to Definition) work perfectly.
Here are the logs from a successful (offline) launch:
My computer’s network connection is working fine. I tested this URL in the VS Code command line —developer.st.com/bundles/BundleRepositoryIndex.json — and it downloads normally. I’ve tried both the latest version (3.7.0) and the older version (3.6.4), but neither fixed the issue. Right now, the only way I can open it is by disconnecting my computer from the network. Is there any way to solve this problem?
Solved! Go to Solution.
2026-02-20 2:45 AM
@Julien D wrote:Hi @LiHua,
Does "STM32Cube CMake Support" never activate even if you don't have any folder/workspace opened in VSCode ?
No, this extension only fails to activate when I open an STM32 project. If I don’t open any folder, or if I open a folder that does not contain an STM32 project, it activates immediately:
I also tried creating a new STM32 project with the MCU STM32G431VBT6. The first time I opened it, the extension activated successfully and quite quickly:
However, after closing VSCode and opening it again, it gets stuck during activation on the STMicroelectronics.stm32cube-ide-build-cmake extension:
2026-02-20 6:36 AM
Do you see any interesting information, such as errors, in the Developer Tools console during the startup period?
(See Help > Toggle Developer Tools > Console tab)
Feel free to send it to me via private message if you consider the content should not be posted here.
2026-02-20 9:10 AM - last edited on 2026-02-20 12:21 PM by Julien D
Thank you for your suggestion.
In VSCode Developer Tools, I found the following two warnings:
data-collector/detect-st-user-service: DNS lookup failed for [obfuscated-url]: Error: getaddrinfo ENOTFOUND [obfuscated-url]
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:26)
and
data-collector/detect-st-user-service: DNS reverse lookup failed: getHostByAddr ENOTFOUND 192.168.1.8
So I changed my computer’s DNS setting from manual IPv4 (8.8.8.8) to DHCP, and now all the extensions can open and run normally.
Since my STM32CubeMX software had always been able to access the internet and update normally, I hadn’t considered this DNS issue before.