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
Assignees
Labels
bug Feature: Compile Commands fixed Check the Milestone for the release in which the fix is or will be available. Language Service modules
Milestone

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

@Colengms Colengms self-assigned this Nov 15, 2024
@Colengms Colengms moved this to Pull Request in cpptools Nov 15, 2024
@Colengms Colengms added this to the 1.23.2 milestone Nov 15, 2024
@Colengms Colengms added the fixed Check the Milestone for the release in which the fix is or will be available. label Nov 18, 2024
@Colengms Colengms moved this from Pull Request to Done in cpptools Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Feature: Compile Commands fixed Check the Milestone for the release in which the fix is or will be available. Language Service modules
Projects
Status: Done
Development

No branches or pull requests

3 participants