Skip to content

When using recursive include paths for Qt, code doesn't find header files without a .h extension #2252

@nholthaus

Description

@nholthaus

Type: LanguageService
----- Input information below -----

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug

  • OS and Version: Win 10
  • VS Code Version: 1.25.0
  • C/C++ Extension Version: 0.17.6
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

Code can't find Qt headers (without a .h extension) even when the Qt source directory is added as a recursive search path.

To Reproduce
Steps to reproduce the behavior:
Provide a code sample including configuration files such as c_cpp_properties.json

{
    "configurations": [
        {
            "name": "null",
            "includePath": [
                "${workspaceFolder}/**",
                "C:/Qt/5.9.5/Src/**"
            ],
            "defines": [],
            "browse": {
                "path": [],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            },
            "intelliSenseMode": "clang-x64",
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++17"
        }
    ],
    "version": 4
}
  1. Have Qt and it's sources installed
  2. Create a cpp file and `include
  3. Watch it not be found

Expected behavior
When using recursive include paths and having Qt source available, these headers should be discovered.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions