clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
592 stars 97 forks source link

The issue revolves around the inability to locate header files correctly. #617

Closed DYAAL closed 2 months ago

DYAAL commented 2 months ago

The problem I'm encountering is that I can't seem to locate header files correctly when using this plugin in vscode on Windows. Even though I've generated compile_commands.json using cmake or other tools, the plugin still fails to locate the header files properly. Is there any way to fix this bug?

HighCommander4 commented 2 months ago

Please start by reviewing the Troubleshooting page starting from https://clangd.llvm.org/troubleshooting#cant-find-includes-within-your-project.

If the answers there do not resolve your problem, please provide details as requested in the issue template. Quoting the relevant parts: