{"action":"opened","issue":{"url":"https://api.github.com/repos/Valloric/ycmd/issues/250","labels_url":"https://api.github.com/repos/Valloric/ycmd/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/ycmd/issues/250/comments","events_url":"https://api.github.com/repos/Valloric/ycmd/issues/250/events","html_url":"https://github.com/Valloric/ycmd/issues/250","id":111569215,"number":250,"title":"ycm can't find std lib relative to compiler path.","user":{"login":"d0k","id":16542,"avatar_url":"https://avatars.githubusercontent.com/u/16542?v=3","gravatar_id":"","url":"https://api.github.com/users/d0k","html_url":"https://github.com/d0k","followers_url":"https://api.github.com/users/d0k/followers","following_url":"https://api.github.com/users/d0k/following{/other_user}","gists_url":"https://api.github.com/users/d0k/gists{/gist_id}","starred_url":"https://api.github.com/users/d0k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d0k/subscriptions","organizations_url":"https://api.github.com/users/d0k/orgs","repos_url":"https://api.github.com/users/d0k/repos","events_url":"https://api.github.com/users/d0k/events{/privacy}","received_events_url":"https://api.github.com/users/d0k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T08:35:58Z","updated_at":"2015-10-15T08:35:58Z","closed_at":null,"body":"If I have a cmdline in my compilation database like '/foo/bar/bin/clang -c test.cc' and my stdlib is relative to the clang binary, i. e. /foo/bar/include/c++, ycmd won't find it. This is a libclang issue and ycm is currently cutting of argv[0] when it passes it on.\r\n\r\nSee also http://lists.llvm.org/pipermail/cfe-dev/2015-October/045537.html"}}