{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1930","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1930/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1930/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1930/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1930","id":127929556,"number":1930,"title":"The plugin does nothing with the g:ycm_semantic_triggers option","user":{"login":"bittwiddler1","id":2100425,"avatar_url":"https://avatars.githubusercontent.com/u/2100425?v=3","gravatar_id":"","url":"https://api.github.com/users/bittwiddler1","html_url":"https://github.com/bittwiddler1","followers_url":"https://api.github.com/users/bittwiddler1/followers","following_url":"https://api.github.com/users/bittwiddler1/following{/other_user}","gists_url":"https://api.github.com/users/bittwiddler1/gists{/gist_id}","starred_url":"https://api.github.com/users/bittwiddler1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bittwiddler1/subscriptions","organizations_url":"https://api.github.com/users/bittwiddler1/orgs","repos_url":"https://api.github.com/users/bittwiddler1/repos","events_url":"https://api.github.com/users/bittwiddler1/events{/privacy}","received_events_url":"https://api.github.com/users/bittwiddler1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T13:57:52Z","updated_at":"2016-01-21T14:59:26Z","closed_at":null,"body":"Hello,\r\n\r\nI'm having trouble adding '_' as a semantic trigger for C++ code. I am working heavily with SDL, and I would like the semantic completion operate on that character, since it denotes API functions.\r\n\r\nI found Issue #1228, in which the Dlang completion engine was blamed and the issue was closed. Before this is marked as a duplicate, I would like to emphasize that *I can't find that variable in the code at __all__.*\r\n\r\nI've `grep'ed` the YouCompleteMe source tree and haven't found any references to this variable inside the plugin code. I've compared it to a variable that actually does something,  `ycm_always_populate_location_list` (see below)\r\n\r\n```\r\n~/.vim/bundle/YouCompleteMe $ grep -nire ycm_semantic_triggers                                                                                                                                                              [0/73]\r\ndoc/youcompleteme.txt:112:  41. The |g:ycm_semantic_triggers| option\r\ndoc/youcompleteme.txt:2317:The *g:ycm_semantic_triggers* option\r\ndoc/youcompleteme.txt:2342:  let g:ycm_semantic_triggers =  {\r\ndoc/tags:71:g:ycm_semantic_triggers     youcompleteme.txt       /*g:ycm_semantic_triggers*\r\nREADME.md:2103:### The `g:ycm_semantic_triggers` option\r\nREADME.md:2129:let g:ycm_semantic_triggers =  {\r\n\r\n~/.vim/bundle/YouCompleteMe $ grep -nire ycm_always_populate_location_list                                                                                                                                                        \r\ndoc/youcompleteme.txt:84:  13. The |g:ycm_always_populate_location_list| option\r\ndoc/youcompleteme.txt:1236:g:ycm_always_populate_location_list = 1' in your vimrc). A good way to toggle\r\ndoc/youcompleteme.txt:1877:The *g:ycm_always_populate_location_list* option\r\ndoc/youcompleteme.txt:1892:  let g:ycm_always_populate_location_list = 0\r\ndoc/tags:34:g:ycm_always_populate_location_list youcompleteme.txt       /*g:ycm_always_populate_location_list*\r\nplugin/youcompleteme.vim:152:let g:ycm_always_populate_location_list =\r\nplugin/youcompleteme.vim:153:      \\ get( g:, 'ycm_always_populate_location_list',\r\nREADME.md:996:g:ycm_always_populate_location_list = 1` in your vimrc). A good way to toggle\r\nREADME.md:1627:### The `g:ycm_always_populate_location_list` option\r\nREADME.md:1643:let g:ycm_always_populate_location_list = 0\r\n```\r\n\r\nObviously I am using the clang completer, and as you can tell the grep searches I have preformed are recursive, so it *should* delve into the clang_completer's code as well.\r\n\r\nThe same thing happens when I try a [github search](https://github.com/Valloric/YouCompleteMe/search?utf8=%E2%9C%93&q=ycm_semantic_triggers). It's possible that the variable was lost during refactoring?\r\n"},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/173596822","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1930#issuecomment-173596822","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1930","id":173596822,"user":{"login":"puremourning","id":10584846,"avatar_url":"https://avatars.githubusercontent.com/u/10584846?v=3","gravatar_id":"","url":"https://api.github.com/users/puremourning","html_url":"https://github.com/puremourning","followers_url":"https://api.github.com/users/puremourning/followers","following_url":"https://api.github.com/users/puremourning/following{/other_user}","gists_url":"https://api.github.com/users/puremourning/gists{/gist_id}","starred_url":"https://api.github.com/users/puremourning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puremourning/subscriptions","organizations_url":"https://api.github.com/users/puremourning/orgs","repos_url":"https://api.github.com/users/puremourning/repos","events_url":"https://api.github.com/users/puremourning/events{/privacy}","received_events_url":"https://api.github.com/users/puremourning/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T14:59:26Z","updated_at":"2016-01-21T14:59:26Z","body":"Can you explain what you are trying to achieve and what options you have set to what? A reproducible minimal test case is what is requested in CONTRIBUTING.md. please take a read of that. \n\nThe way the user options are passed in the code and shared between the client and server obfuscates a little, so grepping doesn't directly work. \n\n> On 21 Jan 2016, at 14:09, bittwiddler1 <notifications@github.com> wrote:\n> \n> I've found mention of a semantic_triggers variable in the python code in ycmd, but I don't believe YouCompleteMe is passing this option to the completer when invoking it.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}