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

Disable /Library/Developer/CommandLine Tools for Peek/Goto #2979

Closed
Pusnow opened this issue Dec 29, 2018 · 3 comments
Closed

Disable /Library/Developer/CommandLine Tools for Peek/Goto #2979

Pusnow opened this issue Dec 29, 2018 · 3 comments

Comments

@Pusnow
Copy link

Pusnow commented Dec 29, 2018

Hi,
I'm currently developing a linux system program in macOS.
I've copied all linux headers to my local computer and set includePath to the directory.
However, whenever I use Peek/Goto, there are Mac related headers.
Is there any way to disable them?

My c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**",
                "~/Headers/**"
            ],
            "defines": [],
            "macFrameworkPath": [],
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "gcc-x64",
            "browse": {
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            }
        }
    ],
    "version": 4
}

2018-12-29 6 36 08

@sean-mcmanus
Copy link
Collaborator

I think this is a duplicate of #2564 . Our implementation of Go to Def for #include just needs to be improved. A possible workaround would be to add the folders you don't care about to the files.exclude setting.

@bobbrow
Copy link
Member

bobbrow commented Jan 4, 2019

The Mac system headers are included because "compilerPath" is not being set in c_cpp_properties.json.

I would recommend you set the "compilerPath" property to the compiler you're using and remove "~/Headers/**" from your "includePath". This will ensure the the system include path is configured correctly.

@Pusnow
Copy link
Author

Pusnow commented Jan 4, 2019

Setting the "compilerPath" to "" solves this issue.
Thanks.

@Pusnow Pusnow closed this as completed Jan 4, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants