vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Cannot find C++20 module files with relative path in commpile_commands.json

Open Juvwxyz opened this issue 2 years ago • 1 comments

Environment

  • OS and Version: Win11 24H2
  • VS Code Version: 1.95.2
  • C/C++ Extension Version: 1.23.1

Bug Summary and Steps to Reproduce

Intellisense says it cannot find module file: Image

This path is provided from compile_commands.json generated by xmake. It's a relative path to the "directory" property: Image

If I edit the path to absolute path manually, intellisense works just fine.

Configuration and Logs

Configuration:

{
    "version": 4,
    "configurations": [
        {
            "name": "win32",
            "compileCommands": "${workspaceFolder}/compile_commands.json"
        }
    ]
}

Other Extensions

No response

Additional context

No response

Juvwxyz avatar Nov 08 '24 07:11 Juvwxyz

@Juvwxyz Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.23.2

sean-mcmanus avatar Dec 06 '24 03:12 sean-mcmanus