cancel
Showing results for 
Search instead for 
Did you mean: 

GitHub Copilot seems broken (Cube IDE 1.19)

NickO
Associate III

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:

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
at com.st.stm32cube.ide.mpu.remote.serial.internal.SerialPortProviderWindows.run(SerialPortProviderWindows.java:127)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
1 ACCEPTED SOLUTION

Accepted Solutions

Hello @NickO 

Let’s try reinstalling WMIC by following the steps provided in  LINK 

 

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.

View solution in original post

9 REPLIES 9
Ghofrane GSOURI
ST Employee

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.

I am using Windows 11 Version 10.0.26200 Build 26200

 

Hello @NickO 

Just to confirm, which version did you use exactly?

GhofraneGSOURI_0-1763391221451.png

 

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.

Just Copilot (I avoid nightly builds)

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:

 

eclipse.buildId=Version 1.19.0
java.version=21.0.3
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data file:/C:/Users/nicho/git/Workspace/
 
com.st.stm32cube.ide.mpu.remote.serial
Error
Mon Nov 17 15:02:06 GMT 2025
Failed to parse wmic output
 
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
at com.st.stm32cube.ide.mpu.remote.serial.internal.SerialPortProviderWindows.run(SerialPortProviderWindows.java:127)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
 

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)."

Hello @NickO 

Let’s try reinstalling WMIC by following the steps provided in  LINK 

 

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.

ok, I'll give that a try... I'll report back

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!)?