2025-09-18 12:26 AM
I have problem that most headers are not visible so a lot of dependent problems occured.
All files are present - the same project compoiled in STM32CubeIDE works.
There is note that "clang(pp_file_not_found)"
Tried to add paths in CMakeLists.txt but no luck.
2025-09-18 1:55 AM
@Jacek3 have you a .clangd file added by STM32Cube to your project root ?
If not maybe look at https://community.st.com/t5/stm32cube-for-visual-studio-code/after-installing-stm32cube-for-visual-studio-code-why-do-two/td-p/839930 ... not code indexing related by explain a bit proper process to end up good setup.
2025-09-19 1:04 AM
@Cartu38 OpenDev Thank You for response.
Yes, I have .clangd file, but it was created rather by VSC, not STM32Cube.
My .clangd file:
CompileFlags:
Add:
- '-ferror-limit=0'
- '-Wno-implicit-int'
CompilationDatabase: build/release/build
Diagnostics:
Suppress:
- unused-includes
- unknown_typename
- unknown_typename_suggest
- typename_requires_specqual
I have in Output window: