2025-11-17 6:18 AM
Running ST Cube IDE 1.19 on Windows 11, co-pilot autocompletions seem to be causing an issue. I see the suggestion, then a dialog pops up saying the following:
An internal error occurred during: "Generating completion...".
Invalid thread access
I look at the error log as I see the following:
Failed to parse wmic output
Exception Stack Trace:
Solved! Go to Solution.
2025-11-17 7:34 AM
2025-11-17 6:21 AM
Hello @NickO
I'm currently checking this behavior. I will be back to you asap.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-11-17 6:28 AM
I am using Windows 11 Version 10.0.26200 Build 26200
2025-11-17 6:55 AM
Hello @NickO
Just to confirm, which version did you use exactly?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-11-17 7:00 AM
Just Copilot (I avoid nightly builds)
2025-11-17 7:03 AM
A new update to copilot has just come in. Completion seems to be working now.
However, I notice in the error log I still see this logged every second:
2025-11-17 7:21 AM
Ok, I've stopped the periodic error message by disabling com.st.stm32cube.ide.mpu.remote.serial
I did this by editing C:\ST\STM32CubeIDE_1.19.0\STM32CubeIDE\configuration\org.eclipse.equinox.simpleconfigurator\bundles.ingo and commenting out the lines that refer to this plugin (which I understand is not needed for MCU development).
All seems well now, but the AI suggests this:
"The root cause of the error in STM32CubeIDE on Windows 11 is the deprecation and removal of WMIC (Windows Management Instrumentation Command-line)."
2025-11-17 7:34 AM
2025-11-17 8:28 AM
ok, I'll give that a try... I'll report back
2025-11-17 8:43 AM
That fixed it. Many thanks.
As WMIC is deprecated, presumably this can be addressed in a future update (which I hope there will be, not quite ready for the VS Code version quite yet!)?