{"action":"created","issue":{"url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/5","labels_url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/5/comments","events_url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/5/events","html_url":"https://github.com/m2mdas/phpcomplete-extended-symfony/issues/5","id":54195603,"number":5,"title":"Doesn't work with YCM","user":{"login":"mkusher","id":523021,"avatar_url":"https://avatars.githubusercontent.com/u/523021?v=3","gravatar_id":"","url":"https://api.github.com/users/mkusher","html_url":"https://github.com/mkusher","followers_url":"https://api.github.com/users/mkusher/followers","following_url":"https://api.github.com/users/mkusher/following{/other_user}","gists_url":"https://api.github.com/users/mkusher/gists{/gist_id}","starred_url":"https://api.github.com/users/mkusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkusher/subscriptions","organizations_url":"https://api.github.com/users/mkusher/orgs","repos_url":"https://api.github.com/users/mkusher/repos","events_url":"https://api.github.com/users/mkusher/events{/privacy}","received_events_url":"https://api.github.com/users/mkusher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-13T13:51:34Z","updated_at":"2015-01-15T21:11:20Z","closed_at":"2015-01-15T21:11:20Z","body":"When I'm using `YCM`, this plugin don't add suggestions for templates, services etc., but `phpcomplete-extended` works fine. When I turn off `YCM` and enable `neocomplete` it works just fine, but I prefer ycm, so I'd like to make it works with ycm "},"comment":{"url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/comments/70162384","html_url":"https://github.com/m2mdas/phpcomplete-extended-symfony/issues/5#issuecomment-70162384","issue_url":"https://api.github.com/repos/m2mdas/phpcomplete-extended-symfony/issues/5","id":70162384,"user":{"login":"mkusher","id":523021,"avatar_url":"https://avatars.githubusercontent.com/u/523021?v=3","gravatar_id":"","url":"https://api.github.com/users/mkusher","html_url":"https://github.com/mkusher","followers_url":"https://api.github.com/users/mkusher/followers","following_url":"https://api.github.com/users/mkusher/following{/other_user}","gists_url":"https://api.github.com/users/mkusher/gists{/gist_id}","starred_url":"https://api.github.com/users/mkusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkusher/subscriptions","organizations_url":"https://api.github.com/users/mkusher/orgs","repos_url":"https://api.github.com/users/mkusher/repos","events_url":"https://api.github.com/users/mkusher/events{/privacy}","received_events_url":"https://api.github.com/users/mkusher/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T21:11:20Z","updated_at":"2015-01-15T21:11:20Z","body":"The solution is that you need to add quotes to ycm_semantic_triggers for php, like `'php' : ['->', '::', '\"', \"'\"]`. For example in my vimrc:\r\n```\r\nlet g:ycm_semantic_triggers =  {\r\n  \\   'c' : ['->', '.'],\r\n  \\   'objc' : ['->', '.'],\r\n  \\   'ocaml' : ['.', '#'],\r\n  \\   'cpp,objcpp' : ['->', '.', '::'],\r\n  \\   'perl' : ['->'],\r\n  \\   'php' : ['->', '::', '\"', \"'\"],\r\n  \\   'cs,java,javascript,d,python,perl6,scala,vb,elixir,go' : ['.'],\r\n  \\   'vim' : ['re![_a-zA-Z]+[_\\w]*\\.'],\r\n  \\   'ruby' : ['.', '::'],\r\n  \\   'lua' : ['.', ':'],\r\n  \\   'erlang' : [':'],\r\n  \\ }\r\n```"}}