Skip to content
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

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

Open
Juvwxyz opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@Juvwxyz
Copy link

Juvwxyz commented Nov 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants