{"action":"created","issue":{"url":"https://api.github.com/repos/cquery-project/cquery/issues/629","repository_url":"https://api.github.com/repos/cquery-project/cquery","labels_url":"https://api.github.com/repos/cquery-project/cquery/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/cquery-project/cquery/issues/629/comments","events_url":"https://api.github.com/repos/cquery-project/cquery/issues/629/events","html_url":"https://github.com/cquery-project/cquery/issues/629","id":315308477,"number":629,"title":"Can't find C++ headers on OSX","user":{"login":"xster","id":156888,"avatar_url":"https://avatars2.githubusercontent.com/u/156888?v=4","gravatar_id":"","url":"https://api.github.com/users/xster","html_url":"https://github.com/xster","followers_url":"https://api.github.com/users/xster/followers","following_url":"https://api.github.com/users/xster/following{/other_user}","gists_url":"https://api.github.com/users/xster/gists{/gist_id}","starred_url":"https://api.github.com/users/xster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xster/subscriptions","organizations_url":"https://api.github.com/users/xster/orgs","repos_url":"https://api.github.com/users/xster/repos","events_url":"https://api.github.com/users/xster/events{/privacy}","received_events_url":"https://api.github.com/users/xster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-18T02:37:20Z","updated_at":"2018-04-18T06:08:54Z","closed_at":null,"author_association":"NONE","body":"I'm trying cquery from homebrew on this repo\r\nhttps://github.com/flutter/engine\r\n\r\nA typical line from compile_commands.json (from ninja) looks like:\r\n```\r\n  {\r\n    \"directory\": \".../engine/src/out/ios_debug_unopt\",\r\n    \"command\": \"../../buildtools/mac-x64/clang/bin/clang++ -MMD -MF obj/flutter/common/common/settings.o.d -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTOOLCHAIN_VERSION=ae85410691b10aa2469695c2421b1fe751843e64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DFLUTTER_AOT=1 -I../.. -Igen -I../.. -I../../garnet/public -I../../topaz/public -Igen/garnet/public -Igen/topaz/public -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk -miphoneos-version-min=8.0   -fno-strict-aliasing -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wunguarded-availability -fvisibility=hidden -stdlib=libc++ -Wheader-hygiene -Wstring-conversion -Wthread-safety -O0 -g2 -fvisibility-inlines-hidden -std=c++14 -fno-rtti -fno-exceptions -c ../../flutter/common/settings.cc -o obj/flutter/common/common/settings.o\",\r\n    \"file\": \"../../flutter/common/settings.cc\"\r\n  },\r\n```\r\n\r\nIn this case, the actual headers are at either\r\n`/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/4.2.1` (we're building for iOS) or `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1`. \r\n\r\nPutting those directories into `cquery.misc.resourceDirectory` in VSCode doesn't work either however.\r\n"},"comment":{"url":"https://api.github.com/repos/cquery-project/cquery/issues/comments/382273415","html_url":"https://github.com/cquery-project/cquery/issues/629#issuecomment-382273415","issue_url":"https://api.github.com/repos/cquery-project/cquery/issues/629","id":382273415,"user":{"login":"xster","id":156888,"avatar_url":"https://avatars2.githubusercontent.com/u/156888?v=4","gravatar_id":"","url":"https://api.github.com/users/xster","html_url":"https://github.com/xster","followers_url":"https://api.github.com/users/xster/followers","following_url":"https://api.github.com/users/xster/following{/other_user}","gists_url":"https://api.github.com/users/xster/gists{/gist_id}","starred_url":"https://api.github.com/users/xster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xster/subscriptions","organizations_url":"https://api.github.com/users/xster/orgs","repos_url":"https://api.github.com/users/xster/repos","events_url":"https://api.github.com/users/xster/events{/privacy}","received_events_url":"https://api.github.com/users/xster/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T06:08:54Z","updated_at":"2018-04-18T06:08:54Z","author_association":"NONE","body":"Ah awesome. It looks like it's fixed on head (installed via `brew install --HEAD cquery`).\r\n\r\nThere's some remaining issues for iOS where some frameworks like <Foundation/Foundation.h> can't be found but <UIKit/UIKit.h> works. \r\n\r\nBut otherwise all the C++ headers look good!"}}
{"actor":{"display_login":"xster"}}