{"action":"created","issue":{"url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/190","labels_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/190/comments","events_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/190/events","html_url":"https://github.com/Sarcasm/irony-mode/issues/190","id":68117453,"number":190,"title":"Trouble with compilation database","user":{"login":"p-t-g","id":11926407,"avatar_url":"https://avatars.githubusercontent.com/u/11926407?v=3","gravatar_id":"","url":"https://api.github.com/users/p-t-g","html_url":"https://github.com/p-t-g","followers_url":"https://api.github.com/users/p-t-g/followers","following_url":"https://api.github.com/users/p-t-g/following{/other_user}","gists_url":"https://api.github.com/users/p-t-g/gists{/gist_id}","starred_url":"https://api.github.com/users/p-t-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-t-g/subscriptions","organizations_url":"https://api.github.com/users/p-t-g/orgs","repos_url":"https://api.github.com/users/p-t-g/repos","events_url":"https://api.github.com/users/p-t-g/events{/privacy}","received_events_url":"https://api.github.com/users/p-t-g/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-13T14:50:16Z","updated_at":"2015-04-14T20:32:52Z","closed_at":null,"body":"First, thanks for irony-mode. It looks like a great package. I am having trouble configuring the compilation database. I've tried to sort it out with no success.\r\n\r\nBriefly: Running Emacs 24.3.1. I installed ironyfrom elpa. Then I did M-x irony-install-server and it succeeds.\r\n\r\nMy source is built outside the source tree. CMake generates the json compilation database in the build directory.\r\n\r\nTo configure the compilation database, I do M-x irony-cdb-json-add-compile-commands-path RET ~/path/to/source/root RET ~/builddir/compile_commands.json\r\n\r\nBut it doesn't seem to have any effect, and M-x irony-cdb-menu report \"No compilation database in use\". \r\n\r\nExplicitly doing M-x irony-cdb-autosetup-compile-options RET has no effect.\r\n\r\nC-h v irony--compile-options RET says the value is nil.\r\n\r\nI'm suspect I'm just doing something wrong ... but I can't figure out what. Any help much appreciated.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/comments/93051006","html_url":"https://github.com/Sarcasm/irony-mode/issues/190#issuecomment-93051006","issue_url":"https://api.github.com/repos/Sarcasm/irony-mode/issues/190","id":93051006,"user":{"login":"p-t-g","id":11926407,"avatar_url":"https://avatars.githubusercontent.com/u/11926407?v=3","gravatar_id":"","url":"https://api.github.com/users/p-t-g","html_url":"https://github.com/p-t-g","followers_url":"https://api.github.com/users/p-t-g/followers","following_url":"https://api.github.com/users/p-t-g/following{/other_user}","gists_url":"https://api.github.com/users/p-t-g/gists{/gist_id}","starred_url":"https://api.github.com/users/p-t-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-t-g/subscriptions","organizations_url":"https://api.github.com/users/p-t-g/orgs","repos_url":"https://api.github.com/users/p-t-g/repos","events_url":"https://api.github.com/users/p-t-g/events{/privacy}","received_events_url":"https://api.github.com/users/p-t-g/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T20:32:52Z","updated_at":"2015-04-14T20:32:52Z","body":"The first command returns /home/patrick/workspace/UAToolKit_NEW/Dev/\r\n\r\nExpanding the ~ did the trick! With the ~ expanded manually, the CDB is found and completion works well in .cpp files. It doesn't seem to be working in .h files though. Anything I can do to make it it give sensible results in .h files?"}}