LSP error on basic C inlucdes:
Also, if i remove the problem line, the next include is also an error, compile_commands.json is properly generated. Also this setup worked fine without errors on another C library...
Logs clangd::stderr clangd log
System information
Output of clangd --version: Debian clangd version 11.0.1-2
Editor/LSP plugin: Emacs/LSP
Operating system: Debian 11
Edit: found out that by not generating the compile_commands.json file the stdio.h error goes away?!
Edit2: I found this: stdio.h and FPU errors in Neovim using clangd LSP
so in config.yaml i added:
CompileFlags:
Add: ['--sysroot=/usr/lib/gcc/arm-none-eabi/8.3.1/']
and the issue persists...