{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1637","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1637/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1637/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1637/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1637","id":302093949,"number":1637,"title":"[mac osx][gcc] #include errors (intelliSense)","user":{"login":"darrenhp","id":910701,"avatar_url":"https://avatars0.githubusercontent.com/u/910701?v=4","gravatar_id":"","url":"https://api.github.com/users/darrenhp","html_url":"https://github.com/darrenhp","followers_url":"https://api.github.com/users/darrenhp/followers","following_url":"https://api.github.com/users/darrenhp/following{/other_user}","gists_url":"https://api.github.com/users/darrenhp/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenhp/subscriptions","organizations_url":"https://api.github.com/users/darrenhp/orgs","repos_url":"https://api.github.com/users/darrenhp/repos","events_url":"https://api.github.com/users/darrenhp/events{/privacy}","received_events_url":"https://api.github.com/users/darrenhp/received_events","type":"User","site_admin":false},"labels":[{"id":355010486,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/Language%20Service","name":"Language Service","color":"c5def5","default":false},{"id":535300584,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/more%20info%20needed","name":"more info needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-04T15:20:47Z","updated_at":"2018-05-19T06:26:27Z","closed_at":null,"author_association":"NONE","body":"I use the compiler by the command \"g++-7\" (installed by homebrew).\r\nThe include paths is listed below:\r\n```\r\n$ ls -lah `which go`\r\nlrwxr-xr-x  1 darrenhp  admin    25B  2  6 22:17 /usr/local/bin/go -> ../Cellar/go/1.9.3/bin/go\r\n\r\n$ g++-7 -v -E -x c++ -\r\nUsing built-in specs.\r\nCOLLECT_GCC=g++-7\r\nTarget: x86_64-apple-darwin17.3.0\r\nConfigured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc/7.3.0 --libdir=/usr/local/Cellar/gcc/7.3.0/lib/gcc/7 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-7 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --enable-checking=release --with-pkgversion='Homebrew GCC 7.3.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls\r\nThread model: posix\r\ngcc version 7.3.0 (Homebrew GCC 7.3.0)\r\nCOLLECT_GCC_OPTIONS='-v' '-E' '-mmacosx-version-min=10.13.4' '-asm_macosx_version_min=10.13' '-shared-libgcc' '-mtune=core2'\r\n /usr/local/Cellar/gcc/7.3.0/libexec/gcc/x86_64-apple-darwin17.3.0/7.3.0/cc1plus -E -quiet -v -D__DYNAMIC__ - -fPIC -mmacosx-version-min=10.13.4 -mtune=core2\r\nignoring nonexistent directory \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../x86_64-apple-darwin17.3.0/include\"\r\n#include \"...\" search starts here:\r\n#include <...> search starts here:\r\n /usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0\r\n /usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/x86_64-apple-darwin17.3.0\r\n /usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/backward\r\n /usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include\r\n /usr/local/include\r\n /usr/local/Cellar/gcc/7.3.0/include\r\n /usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include-fixed\r\n /usr/include\r\n /System/Library/Frameworks\r\n /Library/Frameworks\r\nEnd of search list.\r\n```\r\nSo I configure  \"c_cpp_properties.json\" like this :\r\n```\r\n{\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Mac\",\r\n            \"includePath\": [\r\n                \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0\",\r\n                \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/x86_64-apple-darwin17.3.0\",\r\n                \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/backward\",\r\n                \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include\",\r\n                \"/usr/local/include\",\r\n                \"/usr/local/Cellar/gcc/7.3.0/include\",\r\n                \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include-fixed\",\r\n                \"/usr/include\",\r\n                \"/System/Library/Frameworks\",\r\n                \"/Library/Frameworks\",\r\n                \"${workspaceRoot}\"\r\n            ],\r\n            \"defines\": [\r\n             ],\r\n            \"intelliSenseMode\": \"clang-x64\",\r\n            \"browse\": {\r\n                \"path\": [\r\n                    \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0\",\r\n                    \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/x86_64-apple-darwin17.3.0\",\r\n                    \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/../../../../../../include/c++/7.3.0/backward\",\r\n                    \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include\",\r\n                    \"/usr/local/include\",\r\n                    \"/usr/local/Cellar/gcc/7.3.0/include\",\r\n                    \"/usr/local/Cellar/gcc/7.3.0/lib/gcc/7/gcc/x86_64-apple-darwin17.3.0/7.3.0/include-fixed\",\r\n                    \"/usr/include\",\r\n                    \"/System/Library/Frameworks\",\r\n                    \"/Library/Frameworks\",\r\n                    \"${workspaceRoot}\"\r\n                ],\r\n                \"limitSymbolsToIncludedHeaders\": false,\r\n                \"databaseFilename\": \"\"\r\n            },\r\n            \"macFrameworkPath\": [\r\n                \"/System/Library/Frameworks\",\r\n                \"/Library/Frameworks\"\r\n            ]\r\n        }\r\n    ],\r\n    \"version\": 3\r\n}\r\n```\r\nBut I include  <bits/stdc++.h>， got 3 errors\r\n```\r\nfile: 'file:///usr/local/Cellar/gcc/7.3.0/include/c%2B%2B/7.3.0/x86_64-apple-darwin17.3.0/bits/stdc%2B%2B.h'\r\nseverity: '信息'\r\nmessage: '#include errors detected. Please update your includePath. IntelliSense features for this translation unit (/usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0/x86_64-apple-darwin17.3.0/bits/stdc++.h) will be provided by the Tag Parser.'\r\nat: '55,1'\r\nsource: ''\r\ncode: 'undefined'\r\n```\r\n```\r\nfile: 'file:///usr/local/Cellar/gcc/7.3.0/include/c%2B%2B/7.3.0/x86_64-apple-darwin17.3.0/bits/stdc%2B%2B.h'\r\nseverity: '信息'\r\nmessage: 'cannot open source file \"cstdalign\"'\r\nat: '55,1'\r\nsource: ''\r\ncode: 'undefined'\r\n```\r\n```\r\nfile: 'file:///usr/local/Cellar/gcc/7.3.0/include/c%2B%2B/7.3.0/x86_64-apple-darwin17.3.0/bits/stdc%2B%2B.h'\r\nseverity: '信息'\r\nmessage: 'cannot open source file \"cuchar\"'\r\nat: '59,1'\r\nsource: ''\r\ncode: 'undefined'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/390383435","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1637#issuecomment-390383435","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1637","id":390383435,"user":{"login":"sean-mcmanus","id":19859882,"avatar_url":"https://avatars0.githubusercontent.com/u/19859882?v=4","gravatar_id":"","url":"https://api.github.com/users/sean-mcmanus","html_url":"https://github.com/sean-mcmanus","followers_url":"https://api.github.com/users/sean-mcmanus/followers","following_url":"https://api.github.com/users/sean-mcmanus/following{/other_user}","gists_url":"https://api.github.com/users/sean-mcmanus/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-mcmanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-mcmanus/subscriptions","organizations_url":"https://api.github.com/users/sean-mcmanus/orgs","repos_url":"https://api.github.com/users/sean-mcmanus/repos","events_url":"https://api.github.com/users/sean-mcmanus/events{/privacy}","received_events_url":"https://api.github.com/users/sean-mcmanus/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T06:26:27Z","updated_at":"2018-05-19T06:26:27Z","author_association":"COLLABORATOR","body":"Have you set your compilerPath? We have some docs at https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/c_cpp_properties.json.md .\r\n\r\nOh, this is with mac homebrew gcc -- it's possible there's some issue in that setup. @bobbrow Do you know if anyone else has gotten that to work? I don't recall.\r\n"}}
{"actor":{"display_login":"sean-mcmanus"}}