{"action":"created","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/491","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/491/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/491/events","html_url":"https://github.com/Andersbakken/rtags/issues/491","id":113729411,"number":491,"title":"complitition not works","user":{"login":"Dushistov","id":156697,"avatar_url":"https://avatars.githubusercontent.com/u/156697?v=3","gravatar_id":"","url":"https://api.github.com/users/Dushistov","html_url":"https://github.com/Dushistov","followers_url":"https://api.github.com/users/Dushistov/followers","following_url":"https://api.github.com/users/Dushistov/following{/other_user}","gists_url":"https://api.github.com/users/Dushistov/gists{/gist_id}","starred_url":"https://api.github.com/users/Dushistov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dushistov/subscriptions","organizations_url":"https://api.github.com/users/Dushistov/orgs","repos_url":"https://api.github.com/users/Dushistov/repos","events_url":"https://api.github.com/users/Dushistov/events{/privacy}","received_events_url":"https://api.github.com/users/Dushistov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-28T02:23:17Z","updated_at":"2015-10-29T09:29:24Z","closed_at":null,"body":"I open rtags/src/Source.cpp, and in Source::toString type:\r\nString Source::toString() const\r\n{\r\n    String ret = String::join(toCommandLine(IncludeCompiler|IncludeSourceFile|IncludeIncludepaths|QuoteDefines|IncludeDefines), ' ');\r\nret.\r\n\r\nSave this file, I give command:\r\nrc --code-complete-at /home/evgeniy/projects/rtags/src/Source.cpp:54:5\r\n\r\nrdm print:\r\nrc --code-complete-at /home/evgeniy/projects/rtags/src/Source.cpp:54:5\r\nGot completion request for src/Source.cpp:54:5:\r\nlibclang: crash detected during reparsing\r\n\r\nand \"rc\" return nothing as output, but\r\nif I exec clang by itself, by typing:\r\n$ clang \"-fsyntax-only\"  -DCLANG_LIBDIR=/usr/lib64 -DOS_Linux -DRTAGS_BIN=\\\"/home/evgeniy/projects/rtags/build/bin/\\\" -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -fno-rtti -std=c++11  -I../src -I../src/rct/include -I../src/rct -Isrc/rct/include/rct  -Xclang -code-completion-at=../src/Source.cpp:54:5 ../src/Source.cpp | head -n 10\r\nCOMPLETION: append : [#void#]append(<#char ch#>)\r\nCOMPLETION: append : [#void#]append(<#const String &ba#>)\r\nCOMPLETION: append : [#void#]append(<#const char *str#>{#, <#int len#>#})\r\nCOMPLETION: assign : [#void#]assign(<#const char *data#>{#, <#int len#>#})\r\nCOMPLETION: at : [#char#]at(<#int i#>)[# const#]\r\nCOMPLETION: Beginning : [#String::Pad#]Beginning\r\nCOMPLETION: CaseInsensitive : [#String::CaseSensitivity#]CaseInsensitive\r\nCOMPLETION: CaseSensitive : [#String::CaseSensitivity#]CaseSensitive\r\nCOMPLETION: chomp : [#int#]chomp(<#const String &chars#>)\r\nCOMPLETION: chomp : [#int#]chomp(<#char ch#>)\r\n\r\nSo there is problem in the way how rtags uses clang"},"comment":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/comments/152126144","html_url":"https://github.com/Andersbakken/rtags/issues/491#issuecomment-152126144","issue_url":"https://api.github.com/repos/Andersbakken/rtags/issues/491","id":152126144,"user":{"login":"Dushistov","id":156697,"avatar_url":"https://avatars.githubusercontent.com/u/156697?v=3","gravatar_id":"","url":"https://api.github.com/users/Dushistov","html_url":"https://github.com/Dushistov","followers_url":"https://api.github.com/users/Dushistov/followers","following_url":"https://api.github.com/users/Dushistov/following{/other_user}","gists_url":"https://api.github.com/users/Dushistov/gists{/gist_id}","starred_url":"https://api.github.com/users/Dushistov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dushistov/subscriptions","organizations_url":"https://api.github.com/users/Dushistov/orgs","repos_url":"https://api.github.com/users/Dushistov/repos","events_url":"https://api.github.com/users/Dushistov/events{/privacy}","received_events_url":"https://api.github.com/users/Dushistov/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T09:29:24Z","updated_at":"2015-10-29T09:29:24Z","body":">I think the issue is that you've built clang with assertions enabled. They\r\n>seem to have some non-fatal assertions in the code base. Most likely your\r\n>clang executable is not built with assertions enabled.\r\n\r\nNo, I got rtags libclang crash => I rebuild libclang with debug support => libclang start report assert\r\n\r\nAt the same time release and debug variant of clang works without crash"}}