Skip to main content
LVoze.2
Associate II
Feb 20, 2026 7:29 PM UTC
Question

ISSUE: Cross platform collaboration impossible due to hijacking of settings.json

stm32cube-ide-clangd.arguments are written to settings.json on every startup/setup with .exe or no extension depending on platform. settings.json contains important settings we want to share across collaborators but now it's getting constantly modified between platforms. 

4 replies

Nawres GHARBI
ST Technical Moderator
Feb 23, 2026 9:15 AM UTC

Hi @LVoze.2 

Could you share some more info about data you want to keep ? 

ST Employee
Feb 23, 2026 5:10 PM UTC

Thank you for your feedback.

We have a patch scheduled for the next release that will prevent stm32cube-ide-clangd.arguments from being updated if any --query-driver argument is already defined. Would this solution address your concern?


MNA

LVoze.2
LVoze.2Author
Associate II
Feb 23, 2026 7:13 PM UTC

Hi MNA,

This does address the file constantly being written to, but I'm not sure it address the cross-platform concerns. Those query drivers args get set to .exe on a Windows machine but needs to omit extension on OSX or Linux. This is the core issue. Storing platform specific args in a shared file.

ST Employee
Feb 24, 2026 9:52 AM UTC

This is well understood. Our proposed solution is to update the automatic configuration to use a wildcard in the query-driver argument, for example:

 
"stm32cube-ide-clangd.arguments": [
 "starm-clangd",
 "--query-driver=${env:CUBE_BUNDLE_PATH}/gnu-tools-for-stm32/14.3.1+st.2/bin/arm-none-eabi-gcc*",
 "--query-driver=${env:CUBE_BUNDLE_PATH}/gnu-tools-for-stm32/14.3.1+st.2/bin/arm-none-eabi-g++*"
 ]

 

Since clangd supports wildcards, this approach should resolve the cross-platform issue. Does this solution work for you?

 

MNA