Skip to content

IntelliSense error with C++20 standard module. #13169

Closed as duplicate of#6302
Closed as duplicate of#6302
@sheldonyancy

Description

Environment

  • OS and Version: Darwin arm64 24.2.0 (MacOS Sequoia)
  • VS Code Version: 1.96.4 (Universal)
  • C/C++ Extension Version: 1.3.0
  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

Bug Summary:

When using the C++20 standard module, the program can be compiled and run normally, but IntelliSense prompts an error: module not found. See the screenshot below.

Image

Configuration and Logs

//settings.json
{
    "cmake.showOptionsMovedNotification": false,
    "cmake.pinnedCommands": [
        "workbench.action.tasks.configureTaskRunner",
        "workbench.action.tasks.runTask"
    ],
    "cmake.cmakePath": "/opt/homebrew/bin/cmake",
    "workbench.startupEditor": "none",
    "explorer.confirmDelete": false,
    "workbench.editor.enablePreview": false,
    "cmake.showConfigureWithDebuggerNotification": false,
    "security.workspace.trust.untrustedFiles": "open",
    "window.confirmSaveUntitledWorkspace": false,
    "C_Cpp.default.cStandard": "c23",
    "C_Cpp.default.cppStandard": "c++23",
    "C_Cpp.default.compilerPath": "/opt/homebrew/opt/llvm/bin/clang++",
    "C_Cpp.experimentalFeatures": "enabled",
    "C_Cpp.default.intelliSenseMode": "macos-clang-arm64",
    "C_Cpp.errorSquiggles": "enabled",
    "C_Cpp.default.enableConfigurationSquiggles": false,
    "C_Cpp.codeAnalysis.clangTidy.enabled": true,
    "C_Cpp.autocompleteAddParentheses": true,
    "C_Cpp.clang_format_fallbackStyle": "LLVM",
    "debug.onTaskErrors": "debugAnyway",
}

//c_cpp_properties.json
{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "macFrameworkPath": [
                "/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks"
            ]
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response

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