Skip to content

compile_commands.json include directories not being seen #11492

@wjk

Description

@wjk

Environment

  • OS and Version: macOS 14.0
  • VS Code Version: 1.82.2
  • C/C++ Extension Version: 1.17.5
  • If using SSH remote, specify OS of remote machine: N/A

Bug Summary and Steps to Reproduce

Bug Summary:

My project contains its own SDK (standard headers and whatnot). As such, the -nostdinc flag is used. This also means that I must supply the location of every header used on the command line. I am doing this. Everything compiles. However, every file in part of the project says that it cannot find any #include files. I have verified that the correct -I flags are present in my compile_commands.json.

Steps to reproduce:

  1. Clone https://github.com/PureDarwin/PureDarwin
  2. Open VSCode and configure CMake, using vscode/settings.json to ensure CMAKE_EXPORT_COMPILE_COMMANDS is TRUE.
  3. Open the following file: src/Kernel/Extensions/ApplePS2Controller/ApplePS2Controller.cpp
  4. See error

Expected behavior:

All headers should resolve and autocompletion should function normally.

Configuration and Logs

c_cpp_properties.json: not using
C/C++ Log Diagnostics command: see attached file below
Language server output: see attached file below

Other Extensions

No response

Additional context

Since the logs are too long to paste into GitHub directly, here are links to the log files requested above:

C/C++ Log Diagnostics command output
Language server input

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions