2026-01-23 5:59 AM
Hello!
I'm trying out the new STM32CubeIDE extensions for VSCode and have generated a CMake project using CubeMX. I'm unable to setup my project as I get this error:
I don't know what JSON file it is referring to as there are none in my project except the auto-generated CMakePresets.json, but I don't think that's the issue since I get the same error even if I remove that file.
I have tried to re-install the extensions and restart VSCode with no luck.
2026-01-23 6:09 AM
Hi @andreasp00,
Can you share the CubeMX version and the device/board you are using for this project ?
2026-01-23 6:12 AM
I'm using a fresh installation of CubeMX 6.16.1.
The project is for a custom board using a STM32L476MGY6TR.
2026-01-23 6:36 AM
Unfortunately, I cannot reproduce the issue.
Could you please open the Developer Tools window (Help > Toggle Developer Tools), switch to the Console tab, and record any errors shown when running your scenario?
2026-01-30 5:23 AM
Here is a screenshot of the console output. Right now I'm working in WSL, but I have observed the same issue directly in Windows.
2026-01-30 5:44 AM
It looks like the extension is unable to fetch the list of available bundles from the remote because the received JSON file, which describes the registry content, has an invalid format.
Can you reproduce this failure using the cube bundle list-online command in the VSCode integrated terminal?
Normally you should have:
2026-02-02 4:56 AM
The command gives no errors and seem to work fine:
2026-02-02 5:40 AM
Looking back at your first message, you are trying to use an MX project in VSCode, while the error from STM32Cube Project Manager indicates that you tried to create an empty project.
Could you please clarify the sequence of steps?
Normally, when you open an existing MX project in VSCode (File > Open Folder...), you should receive a notification prompting you to complete the initial setup of your project by pressing 'Yes,' enabling you to build and debug it.
2026-02-02 6:33 AM
Sorry about the confusion!
The issue seems to occur randomly. Sometimes a restart fixes it. It can happen at any point i.e. Project Creation, Project Setup, Debug etc..
The sequence of steps:
- Generate CMake project using CubeMX
- Edit CMakeLists and project files
- Open project in VSCode
- "Setup STM32Cube project(s)"
Today I got the JSON error while trying to debug a previously working project.
2026-02-02 7:02 AM
No worries, thank you for confirming.
Out of curiosity, do the following commands return a list of devices and boards as it should?
cube pack list devices
cube pack list boards