{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1251","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1251/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1251/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1251","id":273853734,"number":1251,"title":"Extension doesn't handle compile_commands where the \"command\" doesn't begin with the compiler","user":{"login":"jwatt","id":325860,"avatar_url":"https://avatars0.githubusercontent.com/u/325860?v=4","gravatar_id":"","url":"https://api.github.com/users/jwatt","html_url":"https://github.com/jwatt","followers_url":"https://api.github.com/users/jwatt/followers","following_url":"https://api.github.com/users/jwatt/following{/other_user}","gists_url":"https://api.github.com/users/jwatt/gists{/gist_id}","starred_url":"https://api.github.com/users/jwatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwatt/subscriptions","organizations_url":"https://api.github.com/users/jwatt/orgs","repos_url":"https://api.github.com/users/jwatt/repos","events_url":"https://api.github.com/users/jwatt/events{/privacy}","received_events_url":"https://api.github.com/users/jwatt/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":348032328,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/milestones/11","html_url":"https://github.com/Microsoft/vscode-cpptools/milestone/11","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/milestones/11/labels","id":3047278,"number":11,"title":"March 2018","description":"Query default defines, compilerPath setting.\r\nfinish autocomplete.\r\n","creator":{"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},"open_issues":20,"closed_issues":6,"state":"open","created_at":"2018-01-19T02:31:03Z","updated_at":"2018-03-16T01:35:04Z","due_on":"2018-03-15T07:00:00Z","closed_at":null},"comments":12,"created_at":"2017-11-14T16:21:48Z","updated_at":"2018-03-19T15:06:21Z","closed_at":null,"author_association":"NONE","body":"It seems that when compile_commands.json is used then VSCode will *only* use include paths specified in that file, and will fail to use the clang compilers built in include paths. My understanding is that compile_commands.json should only contain the flags that are passed to the compiler though, and there should be no need for it to contain compiler built-in include paths, defines, etc.\r\n\r\nThis issues causes includes such as:\r\n\r\n`#include <new>`\r\n\r\nto fail. That header file should be found under:\r\n\r\n`/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1`\r\n\r\nI'm on macOS 10.13.1 using VSCode 1.19.0-insider with C/C++ Tools 0.14.2. "},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/374245026","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1251#issuecomment-374245026","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1251","id":374245026,"user":{"login":"tksuoran","id":994606,"avatar_url":"https://avatars2.githubusercontent.com/u/994606?v=4","gravatar_id":"","url":"https://api.github.com/users/tksuoran","html_url":"https://github.com/tksuoran","followers_url":"https://api.github.com/users/tksuoran/followers","following_url":"https://api.github.com/users/tksuoran/following{/other_user}","gists_url":"https://api.github.com/users/tksuoran/gists{/gist_id}","starred_url":"https://api.github.com/users/tksuoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tksuoran/subscriptions","organizations_url":"https://api.github.com/users/tksuoran/orgs","repos_url":"https://api.github.com/users/tksuoran/repos","events_url":"https://api.github.com/users/tksuoran/events{/privacy}","received_events_url":"https://api.github.com/users/tksuoran/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T15:06:21Z","updated_at":"2018-03-19T15:06:21Z","author_association":"NONE","body":"I have hard time getting compileCommands working. Questions:\r\n- Will absolute path work as directory?\r\n- Will absolute paths work after -I?\r\n- Does \"-Ipath/somewhere\" work (command/arguments)?\r\n- Does \"-I\", \"path/somewhere\" work in arguments? \"-I./\"\r\n- Do I need both command and arguments, or one of them?\r\n- Does command need to begin with compiler?\r\n- Does arguments need to start with compiler?\r\n- Does VSCode actually invoke the compiler?\r\n- What if my command begins with environment variables: \"FOO=bar /path/somewhere/cc ...\"; Will VSCode try to use FOO=bar as compiler, and fai)? How do I make it work?\r\n\r\nI've tried absolute paths and paths relative to workspaceRoot, and I have tried replacing FOO=bar cc with /usr/bin/clang, but I just don't get include paths to work at all with compileCommands. I do have \"C_Cpp.intelliSenseEngine\": \"Default\" in my preferences. Any insight would be helpful. Thank you.\r\n"}}
{"actor":{"display_login":"tksuoran"}}