cancel
Showing results for 
Search instead for 
Did you mean: 

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

LVoze.2
Associate II

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 4
Nawres GHARBI
ST Employee

Hi @LVoze.2 

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

MNASTM
ST Employee

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

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.

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