You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I cannot get it to work correctly for my own CSolution. I have checked and the issue is also present in the SimpleTrustZone project, but due to its simplicity only by inspecting the clangd output window. My own CSolution has different include paths for the for CProject builds, i.e. the non-secure includes RTOS and the secure not. VSCode complains that RTOS related functions are undefined. A check of the clangd output shows that it is choosing the wrong compile commands.
The issue can be reproduced from the CSolution SimpleTrustZone project as follows:
To Reproduce
Open the CSolution SimpleTrustZone project,
Close all files,
Open main_s.c,
Open the clangd output window,
Restart the clangd server.
Expected behavior
The clangd extension is using build commands from the 'CM33_s' cproject for file from the 'CM33_s' project.
I[17:20:40.999] Loaded compilation database from c:\repos\csolution-examples\SimpleTrustZone\out\CM33_ns\AVH\Debug\compile_commands.json
I[17:20:41.000] ASTWorker building file c:\repos\csolution-examples\SimpleTrustZone\CM33_s\main_s.c version 1 with command inferred from C:\repos\csolution-examples\SimpleTrustZone\CM33_ns\main_ns.c
Additional context
It can be seen that the compile command folders from both CProject folders are provided to clangd, but it is choosing the wrong compilation options. The AST worker is using a compilation command inferred from a CM33_ns CProject file to build and a CM33_s CProject file.
The text was updated successfully, but these errors were encountered:
Type: Bug Report
Describe the bug
The following help says 'After you install clangd, you do not need any extra setup.':
https://developer.arm.com/documentation/108029/0000/Get-started-with-an-example-project/Finalize-the-setup-of-your-development-environment/clangd.
But I cannot get it to work correctly for my own CSolution. I have checked and the issue is also present in the SimpleTrustZone project, but due to its simplicity only by inspecting the clangd output window. My own CSolution has different include paths for the for CProject builds, i.e. the non-secure includes RTOS and the secure not. VSCode complains that RTOS related functions are undefined. A check of the clangd output shows that it is choosing the wrong compile commands.
The issue can be reproduced from the CSolution SimpleTrustZone project as follows:
To Reproduce
Expected behavior
The clangd extension is using build commands from the 'CM33_s' cproject for file from the 'CM33_s' project.
Code sample and logs
The cland output windows show the following:
and:
Additional context
It can be seen that the compile command folders from both CProject folders are provided to clangd, but it is choosing the wrong compilation options. The AST worker is using a compilation command inferred from a CM33_ns CProject file to build and a CM33_s CProject file.
The text was updated successfully, but these errors were encountered: