Hello david_hello, looks indeed a bit strange, also that the syntax check in the editor does not flag "HAL_" as an error, unless you have not defined "HAL_" somewhere else. At least, when I try Keil Studio Cloud, and add errors in my example code, it gets marked in the editor and also error reporting in the Output window.
So, maybe what you get also depends on the project you use. Is it possible you share this somewhere so we can have a look?
Thank you Andreas for support. I also have tried to add errors at the place that it would be earlier to compile , there were few output info, the editor can output the whole error info, if I added errors at the place that it would be later to compile, there would be many output info for more code, the editor can't seems to output all the whole info.
The Clang can't work.
I[02:12:46.597] clangd version 16.0.2 (github.com/.../llvm-project 18ddebe1a1a9bde349441631365f0472e9693520)I[02:12:46.597] Features: linux+grpcI[02:12:46.597] PID: 425I[02:12:46.597] Working directory: /home/studio/workspaceI[02:12:46.597] argv[0]: /home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangdI[02:12:46.597] argv[1]: --background-index=falseI[02:12:46.597] argv[2]: -j=1I[02:12:46.597] argv[3]: --pch-storage=diskI[02:12:46.597] Starting LSP over stdin/stdoutI[02:12:46.605] <-- initialize(0)I[02:12:46.606] --> reply:initialize(0) 0 msI[02:12:46.614] <-- initializedI[02:12:46.614] <-- textDocument/didOpenI[02:12:46.614] <-- textDocument/didOpenI[02:12:46.614] --> textDocument/clangd.fileStatusI[02:12:46.614] <-- textDocument/didOpenI[02:12:46.615] --> textDocument/clangd.fileStatusI[02:12:46.615] <-- clangd/inlayHints(1)I[02:12:46.616] Loaded compilation database from /home/studio/workspace/bms_studio_cloud/compile_commands.jsonI[02:12:46.616] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/crc32.c version 1 with command [/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -std=c99 -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -o CMakeFiles/bms_studio_cloud.dir/workspace/workspace/bms_studio_cloud/src/App/crc32.o -c -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/crc32.cE[02:12:46.616] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:46.617] --> textDocument/clangd.fileStatusE[02:12:46.618] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:46.639] Indexing c99 standard library in the context of /home/studio/workspace/bms_studio_cloud/src/App/crc32.cI[02:12:46.641] Built preamble of size 361404 for file /home/studio/workspace/bms_studio_cloud/src/App/crc32.c version 1 in 0.02 secondsI[02:12:46.641] --> workspace/semanticTokens/refresh(0)E[02:12:46.641] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:46.643] <-- reply(0)I[02:12:46.650] --> textDocument/publishDiagnosticsI[02:12:46.651] --> textDocument/clangd.fileStatusI[02:12:46.651] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/main.c version 1 with command [/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -std=c99 -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -o CMakeFiles/bms_studio_cloud.dir/workspace/workspace/bms_studio_cloud/src/App/main.o -c -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/main.cE[02:12:46.651] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:46.652] --> textDocument/clangd.fileStatusE[02:12:46.652] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:46.676] Indexed c99 standard library: 1223 symbols, 10 filteredI[02:12:46.966] Built preamble of size 3392752 for file /home/studio/workspace/bms_studio_cloud/src/App/main.c version 1 in 0.31 secondsI[02:12:46.966] --> workspace/semanticTokens/refresh(1)E[02:12:46.967] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:47.054] --> textDocument/publishDiagnosticsI[02:12:47.055] --> reply:clangd/inlayHints(1) 440 msI[02:12:47.055] --> textDocument/clangd.fileStatusI[02:12:47.055] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/bootload_port.c version 1 with command inferred from /home/studio/workspace/bms_studio_cloud/src/App/crc32.c[/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -c -std=c99 -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/bootload_port.cE[02:12:47.055] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:47.056] --> textDocument/clangd.fileStatusE[02:12:47.057] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:47.077] <-- textDocument/codeAction(2)I[02:12:47.077] --> textDocument/clangd.fileStatusI[02:12:47.093] <-- textDocument/documentSymbol(3)I[02:12:47.094] <-- textDocument/documentLink(4)I[02:12:47.094] <-- textDocument/documentLink(5)I[02:12:47.094] --> textDocument/clangd.fileStatusI[02:12:47.094] <-- textDocument/documentLink(6)I[02:12:47.094] <-- textDocument/foldingRange(7)I[02:12:47.094] <-- textDocument/foldingRange(8)I[02:12:47.094] <-- textDocument/foldingRange(9)I[02:12:47.094] --> reply:textDocument/foldingRange(7) 0 msI[02:12:47.096] --> reply:textDocument/foldingRange(9) 1 msI[02:12:47.097] --> reply:textDocument/foldingRange(8) 2 msI[02:12:47.101] <-- reply(1)I[02:12:47.291] <-- $/cancelRequestI[02:12:47.291] <-- textDocument/codeAction(10)I[02:12:47.384] Built preamble of size 3379204 for file /home/studio/workspace/bms_studio_cloud/src/App/bootload_port.c version 1 in 0.33 secondsI[02:12:47.384] --> workspace/semanticTokens/refresh(2)I[02:12:47.384] --> textDocument/clangd.fileStatusE[02:12:47.384] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:12:47.385] <-- reply(2)I[02:12:47.400] --> textDocument/publishDiagnosticsI[02:12:47.400] --> reply:textDocument/documentLink(5) 306 msI[02:12:47.400] --> textDocument/clangd.fileStatusI[02:12:47.400] --> reply:textDocument/codeAction(2) 323 ms, error: Task was cancelled.I[02:12:47.400] --> textDocument/clangd.fileStatusI[02:12:47.400] --> reply:textDocument/documentLink(4) 306 msI[02:12:47.400] --> textDocument/clangd.fileStatusI[02:12:47.401] --> reply:textDocument/documentSymbol(3) 307 msI[02:12:47.402] --> reply:textDocument/documentLink(6) 307 msI[02:12:47.402] --> reply:textDocument/codeAction(10) 111 msI[02:12:47.402] --> textDocument/clangd.fileStatus[Error - 2:12:47 AM] Request textDocument/codeAction failed.[object Object]I[02:12:47.546] <-- textDocument/codeAction(11)I[02:12:47.546] --> reply:textDocument/codeAction(11) 0 msI[02:12:47.546] --> textDocument/clangd.fileStatusI[02:12:49.070] <-- textDocument/codeAction(12)I[02:12:49.070] --> reply:textDocument/codeAction(12) 0 msI[02:12:49.070] --> textDocument/clangd.fileStatusI[02:12:49.075] <-- textDocument/documentLink(13)I[02:12:49.075] <-- textDocument/documentLink(14)I[02:12:49.075] <-- textDocument/documentLink(15)I[02:12:49.075] --> reply:textDocument/documentLink(13) 0 msI[02:12:49.075] --> textDocument/clangd.fileStatusI[02:12:49.075] --> textDocument/clangd.fileStatusI[02:12:49.076] --> reply:textDocument/documentLink(14) 0 msI[02:12:49.076] --> textDocument/clangd.fileStatusI[02:12:49.076] --> reply:textDocument/documentLink(15) 0 msI[02:12:49.076] --> textDocument/clangd.fileStatusI[02:12:49.347] <-- textDocument/foldingRange(16)I[02:12:49.347] <-- textDocument/foldingRange(17)I[02:12:49.347] <-- textDocument/foldingRange(18)I[02:12:49.347] --> reply:textDocument/foldingRange(16) 0 msI[02:12:49.348] --> reply:textDocument/foldingRange(17) 1 msI[02:12:49.349] --> reply:textDocument/foldingRange(18) 1 msI[02:12:52.168] <-- textDocument/codeAction(19)I[02:12:52.168] --> reply:textDocument/codeAction(19) 0 msI[02:12:52.168] --> textDocument/clangd.fileStatusI[02:13:05.828] <-- shutdown(20)I[02:13:05.828] --> reply:shutdown(20) 0 msE[02:13:05.856] Transport error: Input/output errorI[02:13:05.856] LSP finished, exiting with status 1I[02:13:05.872] clangd version 16.0.2 (github.com/.../llvm-project 18ddebe1a1a9bde349441631365f0472e9693520)I[02:13:05.872] Features: linux+grpcI[02:13:05.872] PID: 516I[02:13:05.872] Working directory: /home/studio/workspaceI[02:13:05.872] argv[0]: /home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangdI[02:13:05.872] argv[1]: --background-index=falseI[02:13:05.872] argv[2]: -j=1I[02:13:05.872] argv[3]: --pch-storage=diskI[02:13:05.872] Starting LSP over stdin/stdoutI[02:13:05.873] <-- initialize(0)I[02:13:05.873] --> reply:initialize(0) 0 ms[Error - 2:13:05 AM] Server initialization failed.Error: Command "clangd.inlayHints.toggle" already has handler at CommandRegistryImpl.registerHandler (/usr/src/mbs/theia/packages/plugin-ext/lib/plugin/command-registry.js:57:19) at Object.registerCommand (/usr/src/mbs/theia/packages/plugin-ext/lib/plugin/plugin-context.js:111:48) at InlayHintsFeature.initialize (/usr/src/mbs/theia-plugins/vscode-clangd/extension/out/src/inlay-hints.js:100:29) at ClangdLanguageClient.initializeFeatures (/usr/src/mbs/theia-plugins/vscode-clangd/extension/node_modules/vscode-languageclient/lib/common/client.js:2603:21) at /usr/src/mbs/theia-plugins/vscode-clangd/extension/node_modules/vscode-languageclient/lib/common/client.js:2267:18[Error - 2:13:05 AM] Starting client failedError: Command "clangd.inlayHints.toggle" already has handler at CommandRegistryImpl.registerHandler (/usr/src/mbs/theia/packages/plugin-ext/lib/plugin/command-registry.js:57:19) at Object.registerCommand (/usr/src/mbs/theia/packages/plugin-ext/lib/plugin/plugin-context.js:111:48) at InlayHintsFeature.initialize (/usr/src/mbs/theia-plugins/vscode-clangd/extension/out/src/inlay-hints.js:100:29) at ClangdLanguageClient.initializeFeatures (/usr/src/mbs/theia-plugins/vscode-clangd/extension/node_modules/vscode-languageclient/lib/common/client.js:2603:21) at /usr/src/mbs/theia-plugins/vscode-clangd/extension/node_modules/vscode-languageclient/lib/common/client.js:2267:18I[02:13:05.881] <-- initializedI[02:13:05.881] <-- textDocument/didOpenI[02:13:05.882] <-- textDocument/didOpenI[02:13:05.882] --> textDocument/clangd.fileStatusI[02:13:05.882] <-- textDocument/didOpenI[02:13:05.882] <-- shutdown(1)I[02:13:05.882] --> reply:shutdown(1) 0 msI[02:13:05.882] --> textDocument/clangd.fileStatusE[02:13:05.883] Transport error: Input/output errorI[02:13:05.883] LSP finished, exiting with status 1I[02:13:05.883] Loaded compilation database from /home/studio/workspace/bms_studio_cloud/compile_commands.jsonI[02:13:05.883] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/crc32.c version 1 with command [/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -std=c99 -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -o CMakeFiles/bms_studio_cloud.dir/workspace/workspace/bms_studio_cloud/src/App/crc32.o -c -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/crc32.cE[02:13:05.883] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:13:05.885] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/bootload_port.c version 1 with command inferred from /home/studio/workspace/bms_studio_cloud/src/App/crc32.c[/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -c -std=c99 -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/bootload_port.cE[02:13:05.885] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directoryI[02:13:05.885] ASTWorker building file /home/studio/workspace/bms_studio_cloud/src/App/main.c version 1 with command [/home/studio/INTERMEDIATE-OUTPUT]/home/studio/mbed-studio-tools/ac6/bin/armclang --target=arm-arm-none-eabi -I/home/studio/workspace/bms_studio_cloud/src/Drivers/STM32G0xx_HAL_Driver/Inc -I/home/studio/workspace/bms_studio_cloud/src/App -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Device/ST/STM32G0xx/Include -I/home/studio/workspace/bms_studio_cloud/src/Drivers/CMSIS/Include -I/home/studio/workspace/bms_studio_cloud/src/BSP/A6 -I/home/studio/workspace/bms_studio_cloud/src/sfud/inc -I/home/studio/workspace/bms_studio_cloud/src/BSP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPCfg -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPP -I/home/studio/workspace/bms_studio_cloud/src/BSP/BSPAPI -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Accelerometer -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Balance -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Communication -I/home/studio/workspace/bms_studio_cloud/src/UserSys/DataDeal -I/home/studio/workspace/bms_studio_cloud/src/UserSys/FiniteStateMachine -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sample -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sox -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Storage -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Update -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Arc -I/home/studio/workspace/bms_studio_cloud/src/UserSys/Sim -I//home/studio/cmsis-packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include -mcpu=cortex-m0plus -mfpu=none -mlittle-endian -DSTM32G0B1xx -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DUSE_DEBUG -DLFP_43MAH_23S -DBMS_ENABLE_4G_GSM_ -DBMS_ACC_ENABLE -D__MICROLIB -g -O3 --target=arm-arm-none-eabi -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -ffunction-sections -std=c99 -Weverything -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -isystem /home/studio/toolchains-headers/AC6/6.20.0/include -o CMakeFiles/bms_studio_cloud.dir/workspace/workspace/bms_studio_cloud/src/App/main.o -c -resource-dir=/home/studio/mbed-studio-data/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/lib/clang/16 -- /home/studio/workspace/bms_studio_cloud/src/App/main.cE[02:13:05.886] VFS: failed to set CWD to /home/studio/INTERMEDIATE-OUTPUT: No such file or directory
Hello david_hello, sorry, haven't seen Keil Studio Cloud issuing errors related to "clang" like that and also not the not reporting errors in source code like you have. So I still think, this is something project related. And we might be able to comment something, if you could share a project with that we can reproduce the error(s)
how to share project?
If possible to put it in a public GitHub repo, we could just import it from there. Else, you can also open a support case on developer.arm.com and attach the project to your case.