Skip to content

cpptools goto framework headers error #13993

@debugee

Description

@debugee

Environment

Version: 1.102.3
Commit: 488a1f239235055e34e673291fb8d8c810886f81
Date: 2025-07-29T03:00:23.339Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin x64 23.6.0

-------- Diagnostics - 2025/10/12 11:38:35
Version: 1.26.5
Current Configuration:
{
"name": "Mac",
"includePath": [
"/Users/admin/Desktop/qt-test/"
],
"defines": [],
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-x64",
"intelliSenseModeIsExplicit": false,
"cStandardIsExplicit": false,
"cppStandardIsExplicit": false,
"mergeConfigurations": false,
"recursiveIncludes": {},
"recursiveIncludesReduceIsExplicit": false,
"recursiveIncludesPriorityIsExplicit": false,
"recursiveIncludesOrderIsExplicit": false,
"compilerPath": "/usr/bin/clang++",
"compilerPathIsExplicit": true,
"configurationProvider": "ms-vscode.cmake-tools",
"browse": {
"limitSymbolsToIncludedHeaders": true
}
}
Modified Settings:
{
"C_Cpp.default.compilerPath": "/usr/bin/clang++"
}
Additional Tracked Settings:
{
"editorTabSize": 4,
"editorInsertSpaces": true,
"editorAutoClosingBrackets": "languageDefined",
"filesEncoding": "utf8",
"filesAssociations": {
".cpp": "cpp",
"
.qrc": "xml",
"qmainwindow": "cpp",
"qmessagebox": "cpp"
},
"filesExclude": {
"
/.git": true,
"/.svn": true,
"
/.hg": true,
"/.DS_Store": true,
"
/Thumbs.db": true
},
"filesAutoSaveAfterDelay": false,
"editorInlayHintsEnabled": true,
"editorParameterHintsEnabled": true,
"searchExclude": {
"/node_modules": true,
"
/bower_components": true,
"**/*.code-search": true
},
"workbenchSettingsEditor": "ui"
}
Custom browse configuration:
{
"browsePath": [
"/Users/admin/Desktop/qt-test-build/CMakeFiles",
"/Users/admin/Desktop/qt-test-build",
"/Users/admin/Desktop/qt-test-build/qt-test_autogen/include",
"/Users/admin/Qt/6.7.2/macos/lib/QtCore.framework/Headers",
"/Users/admin/Qt/6.7.2/macos/mkspecs/macx-clang",
"/Users/admin/Qt/6.7.2/macos/include",
"/Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers",
"/Users/admin/Qt/6.7.2/macos/lib/QtGui.framework/Headers",
"/Users/admin/Desktop/qt-test",
"/Users/admin/Qt/6.7.2/macos/lib",
"/Users/admin/Desktop/qt-test-build/qt-test_autogen",
"/Users/admin/Desktop/qt-test-build/.qt/rcc"
],
"compilerPath": "/usr/bin/clang++",
"compilerArgs": [],
"compilerFragments": [
"-g -std=gnu++17 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
]
}
cpptools version (native): 1.26.4.0
Current database path: /Users/admin/Library/Caches/vscode-cpptools/45ab2c909f9b34cdcc4ccd8e6f09dab9/.browse.VC.db
Translation Unit Mappings:
[ /Users/admin/Desktop/qt-test/main.cpp - source TU]:
/Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers/qmainwindow.h
Translation Unit Configurations:
[ /Users/admin/Desktop/qt-test/main.cpp ]
Process ID: 7263
Memory Usage: 15 MB
Compiler Path: /usr/bin/clang++
Include paths:
include: /Users/admin/Desktop/qt-test-build/qt-test_autogen/include
include: /Users/admin/Qt/6.7.2/macos/lib/QtCore.framework/Headers
include: /Users/admin/Qt/6.7.2/macos/mkspecs/macx-clang
include: /Users/admin/Qt/6.7.2/macos/include
include: /Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers
include: /Users/admin/Qt/6.7.2/macos/lib/QtGui.framework/Headers
include: /Users/admin/Qt/6.7.2/macos/lib
system include: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1
system include: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include
system include: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include
system include: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
system framework search path (default): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks
Defines:
QT_CORE_LIB
QT_GUI_LIB
QT_WIDGETS_LIB
Standard Version: c++17
IntelliSense Mode: macos-clang-x64
Other Flags:
--clang
--clang_version=160000
Total Memory Usage: 15 MB

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 18218
Number of files parsed: 1429

my main.cpp use #include can goto /Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers/QApplication
but if I use #include <QtWidgets/QApplication> can't goto the file
cpptools not trans <QtWidgets/QApplication> to /Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers/QApplication, not find the file

Image

but qt have many internal file use <framework/header.h>

Image
  • (i.e. #include <OpenGLES/ES2/gl.h>, mapping to OpenGLES.framework/Headers/ES2/gl.h).

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior:

Configuration and Logs

-------- Diagnostics - 2025/10/12 11:38:35
Version: 1.26.5
Current Configuration:
{
    "name": "Mac",
    "includePath": [
        "/Users/admin/Desktop/qt-test/**"
    ],
    "defines": [],
    "cStandard": "c17",
    "cppStandard": "c++17",
    "intelliSenseMode": "macos-clang-x64",
    "intelliSenseModeIsExplicit": false,
    "cStandardIsExplicit": false,
    "cppStandardIsExplicit": false,
    "mergeConfigurations": false,
    "recursiveIncludes": {},
    "recursiveIncludesReduceIsExplicit": false,
    "recursiveIncludesPriorityIsExplicit": false,
    "recursiveIncludesOrderIsExplicit": false,
    "compilerPath": "/usr/bin/clang++",
    "compilerPathIsExplicit": true,
    "configurationProvider": "ms-vscode.cmake-tools",
    "browse": {
        "limitSymbolsToIncludedHeaders": true
    }
}
Modified Settings:
{
    "C_Cpp.default.compilerPath": "/usr/bin/clang++"
}
Additional Tracked Settings:
{
    "editorTabSize": 4,
    "editorInsertSpaces": true,
    "editorAutoClosingBrackets": "languageDefined",
    "filesEncoding": "utf8",
    "filesAssociations": {
        "*.cpp": "cpp",
        "*.qrc": "xml",
        "qmainwindow": "cpp",
        "qmessagebox": "cpp"
    },
    "filesExclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/.DS_Store": true,
        "**/Thumbs.db": true
    },
    "filesAutoSaveAfterDelay": false,
    "editorInlayHintsEnabled": true,
    "editorParameterHintsEnabled": true,
    "searchExclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/*.code-search": true
    },
    "workbenchSettingsEditor": "ui"
}
Custom browse configuration: 
{
    "browsePath": [
        "/Users/admin/Desktop/qt-test-build/CMakeFiles",
        "/Users/admin/Desktop/qt-test-build",
        "/Users/admin/Desktop/qt-test-build/qt-test_autogen/include",
        "/Users/admin/Qt/6.7.2/macos/lib/QtCore.framework/Headers",
        "/Users/admin/Qt/6.7.2/macos/mkspecs/macx-clang",
        "/Users/admin/Qt/6.7.2/macos/include",
        "/Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers",
        "/Users/admin/Qt/6.7.2/macos/lib/QtGui.framework/Headers",
        "/Users/admin/Desktop/qt-test",
        "/Users/admin/Qt/6.7.2/macos/lib",
        "/Users/admin/Desktop/qt-test-build/qt-test_autogen",
        "/Users/admin/Desktop/qt-test-build/.qt/rcc"
    ],
    "compilerPath": "/usr/bin/clang++",
    "compilerArgs": [],
    "compilerFragments": [
        "-g -std=gnu++17 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
    ]
}
cpptools version (native): 1.26.4.0
Current database path: /Users/admin/Library/Caches/vscode-cpptools/45ab2c909f9b34cdcc4ccd8e6f09dab9/.browse.VC.db
Translation Unit Mappings:
[ /Users/admin/Desktop/qt-test/main.cpp - source TU]:
    /Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers/qmainwindow.h
Translation Unit Configurations:
[ /Users/admin/Desktop/qt-test/main.cpp ]
    Process ID: 7263
    Memory Usage: 15 MB
    Compiler Path: /usr/bin/clang++
    Include paths:
        include: /Users/admin/Desktop/qt-test-build/qt-test_autogen/include
        include: /Users/admin/Qt/6.7.2/macos/lib/QtCore.framework/Headers
        include: /Users/admin/Qt/6.7.2/macos/mkspecs/macx-clang
        include: /Users/admin/Qt/6.7.2/macos/include
        include: /Users/admin/Qt/6.7.2/macos/lib/QtWidgets.framework/Headers
        include: /Users/admin/Qt/6.7.2/macos/lib/QtGui.framework/Headers
        include: /Users/admin/Qt/6.7.2/macos/lib
        system include: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1
        system include: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include
        system include: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include
        system include: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
        system framework search path (default): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks
    Defines:
        QT_CORE_LIB
        QT_GUI_LIB
        QT_WIDGETS_LIB
    Standard Version: c++17
    IntelliSense Mode: macos-clang-x64
    Other Flags:
        --clang
        --clang_version=160000
Total Memory Usage: 15 MB

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 18218
Number of files parsed: 1429

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage Servicemore info neededThe issue report is not actionable in its current state

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions