-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clangd doesn't recognize standard headers #698
Comments
Can you post verbose logs please ( |
Sure, I have replaced the verbose log in my description. |
Based on the log, standard library includes like The issue seems to be that |
Manually adding header files seems a bit cumbersome. In fact, I have to frequently switch to Microsoft's c++ tools to know which header file I should import. |
I'm trying to compile Postgres-17 using
bear
to generatecompile_commands.json
:This successfully produces the
compile_commands.json
file in the directory.When using the ms-c/c++ extension in VSCode, everything works fine once I specify the path. However, after disabling the ms-c/c++ plugin and enabling the clangd plugin, I encounter errors. It appears that certain headers, such as
stdbool.h
, are not being recognized correctly. For reference,stdbool.h
is located at /usr/lib/gcc/x86_64-linux-gnu/11/include.tried adding the following to my settings.json:
But this did not resolve the issue.
How can I fix this?
Logs
System information
The text was updated successfully, but these errors were encountered: