{"action":"created","issue":{"url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/389","repository_url":"https://api.github.com/repos/abingham/emacs-ycmd","labels_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/389/comments","events_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/389/events","html_url":"https://github.com/abingham/emacs-ycmd/issues/389","id":193482411,"number":389,"title":"buffer is using the wrong compilation flags.","user":{"login":"amosbird","id":5085485,"avatar_url":"https://avatars3.githubusercontent.com/u/5085485?v=4","gravatar_id":"","url":"https://api.github.com/users/amosbird","html_url":"https://github.com/amosbird","followers_url":"https://api.github.com/users/amosbird/followers","following_url":"https://api.github.com/users/amosbird/following{/other_user}","gists_url":"https://api.github.com/users/amosbird/gists{/gist_id}","starred_url":"https://api.github.com/users/amosbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amosbird/subscriptions","organizations_url":"https://api.github.com/users/amosbird/orgs","repos_url":"https://api.github.com/users/amosbird/repos","events_url":"https://api.github.com/users/amosbird/events{/privacy}","received_events_url":"https://api.github.com/users/amosbird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-12-05T12:18:22Z","updated_at":"2017-09-29T12:33:46Z","closed_at":"2017-09-29T12:33:46Z","author_association":"NONE","body":"I'm using `Bear` to generate `compile_commands.json` in a Makefile project. When creating new `cc` files, emacs-ycmd keeps using the old compilation flags. I have to restart emacs to make it right.\r\n\r\ni've tried `ycmd-clear-compilation-flag-cache (C-c Y C)`, `ycmd-restart-semantic-server (C-c Y O)` and `ycmd-mode` toggling. None of them works.\r\n\r\n```\r\nYcmd debug information for buffer 450.cc in c++-mode:\r\n\r\n\r\n\"Server has Clang support compiled in: True\r\nClang version: clang version 3.9.0 (tags/RELEASE_390/final)\r\nC-family completer debug information:\r\n  Configuration file found and loaded\r\n  Configuration path: /home/amos/.emacs.d/layers/+tools/ycmd/global_conf.py\r\n  Flags: ['c++', '-x', 'c++', '-g', '-O0', '-std=c++11', '432.cc', '-resource-dir=/home/amos/ycmd/ycmd/../clang_includes', '-fspell-checking']\"\r\n\r\n\r\nServer is running at: 127.0.0.1:43842\r\n\r\nYcmd Mode is enabled\r\n\r\n--------------------\r\n\r\nYcmd version:   1.1snapshot (package: 20161128.358)\r\nEmacs version:  25.1.1\r\nSystem:         x86_64-unknown-linux-gnu\r\nWindow system:  x\r\n```"},"comment":{"url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/comments/333114010","html_url":"https://github.com/abingham/emacs-ycmd/issues/389#issuecomment-333114010","issue_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/389","id":333114010,"user":{"login":"amosbird","id":5085485,"avatar_url":"https://avatars3.githubusercontent.com/u/5085485?v=4","gravatar_id":"","url":"https://api.github.com/users/amosbird","html_url":"https://github.com/amosbird","followers_url":"https://api.github.com/users/amosbird/followers","following_url":"https://api.github.com/users/amosbird/following{/other_user}","gists_url":"https://api.github.com/users/amosbird/gists{/gist_id}","starred_url":"https://api.github.com/users/amosbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amosbird/subscriptions","organizations_url":"https://api.github.com/users/amosbird/orgs","repos_url":"https://api.github.com/users/amosbird/repos","events_url":"https://api.github.com/users/amosbird/events{/privacy}","received_events_url":"https://api.github.com/users/amosbird/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T12:33:46Z","updated_at":"2017-09-29T12:33:46Z","author_association":"NONE","body":"Yeah, it works fine now. Thanks!"}}
{"actor":{"display_login":"amosbird"}}