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

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

Open
sheldonyancy opened this issue Jan 18, 2025 · 0 comments
Open

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

sheldonyancy opened this issue Jan 18, 2025 · 0 comments

Comments

@sheldonyancy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant