Skip to content

MacOS, browse.path missing 2 directories #1023

@greghornby

Description

@greghornby

The default c_cpp_properties.json file gave this default array of paths for the browse.path for Mac

[
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
    "/usr/local/include",
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include",
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
    "/usr/include",
    "${workspaceRoot}"
]

but it was still saying it could not find these in the browse.path

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

After opening in XCode and revealing in finder where these libs were, I found I had to add these 2 paths to my browse.path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",

Is my XCode installed wrong or is this just because XCode has updated it's filepaths and the extension isn't caught up?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions