{"action":"created","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/385","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/385/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/385/events","html_url":"https://github.com/Andersbakken/rtags/issues/385","id":97834975,"number":385,"title":"Symbols file deleted on fast file writes","user":{"login":"sphaerophoria","id":1069811,"avatar_url":"https://avatars.githubusercontent.com/u/1069811?v=3","gravatar_id":"","url":"https://api.github.com/users/sphaerophoria","html_url":"https://github.com/sphaerophoria","followers_url":"https://api.github.com/users/sphaerophoria/followers","following_url":"https://api.github.com/users/sphaerophoria/following{/other_user}","gists_url":"https://api.github.com/users/sphaerophoria/gists{/gist_id}","starred_url":"https://api.github.com/users/sphaerophoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphaerophoria/subscriptions","organizations_url":"https://api.github.com/users/sphaerophoria/orgs","repos_url":"https://api.github.com/users/sphaerophoria/repos","events_url":"https://api.github.com/users/sphaerophoria/events{/privacy}","received_events_url":"https://api.github.com/users/sphaerophoria/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T01:26:19Z","updated_at":"2015-07-29T07:50:43Z","closed_at":"2015-07-29T05:13:40Z","body":"When saving a file multiple times (only tested from vim) the symbols file for the file get deleted and cannot be restored. \r\n\r\nNoticed and tested on both Ubuntu 15.04 and 14.04 with vim from the repos and neovim from the official neovim ppa.\r\n\r\nTo reproduce create a simple test file\r\n\r\n    testuser@cavetroll:~/test$ cat test.cpp\r\n    #include <iostream>\r\n    int main(void)\r\n    {\r\n            int x = 5;\r\n            std::cout << x << std::endl;\r\n    }\r\n\r\n    testuser@cavetroll:~/test$ rc --project-root . -c \"clang++ -o test test.cpp\"\r\n    testuser@cavetroll:~/test$ rc --project-root . -f test.cpp:6:15\r\n    /home/testuser/test/test.cpp:5:6:               int x = 5;\r\n    testuser@cavetroll:~/test$ vim -c \":w\" -c \":w\" -c \":wq\" test.cpp\r\n    testuser@cavetroll:~/test$ rc --project-root . -f test.cpp:6:15\r\n\r\nwith rdm showing the following\r\n\r\n    [100%] 1/1 18:22:09 ~/test/test.cpp in 123ms. (10 syms, 10 symNames, 1 includes, 1 of 96 files, symbols: 12 of 3319, 0 queried) (121/2/0ms). (priority 0)\r\n    Jobs took 0.14s. We're using 4mb of memory.\r\n    rc --project-root . -f test.cpp:6:15\r\n    => /home/testuser/test/test.cpp:5:6:            int x = 5;\r\n    rc --project-root . -f test.cpp:6:15\r\n    Failed to open /home/testuser/.rtags/_home_testuser_test_._/4/symbols /home/testuser/test/test.cpp (2) 71\r\n\r\nThe file is never restored, rc -V does nothing, I have to re-pass the compilation command to get it back. The folder /home/testuser/.rtags/_home_testuser_test_._/4 does not exist at all."},"comment":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/comments/125873132","html_url":"https://github.com/Andersbakken/rtags/issues/385#issuecomment-125873132","issue_url":"https://api.github.com/repos/Andersbakken/rtags/issues/385","id":125873132,"user":{"login":"sphaerophoria","id":1069811,"avatar_url":"https://avatars.githubusercontent.com/u/1069811?v=3","gravatar_id":"","url":"https://api.github.com/users/sphaerophoria","html_url":"https://github.com/sphaerophoria","followers_url":"https://api.github.com/users/sphaerophoria/followers","following_url":"https://api.github.com/users/sphaerophoria/following{/other_user}","gists_url":"https://api.github.com/users/sphaerophoria/gists{/gist_id}","starred_url":"https://api.github.com/users/sphaerophoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphaerophoria/subscriptions","organizations_url":"https://api.github.com/users/sphaerophoria/orgs","repos_url":"https://api.github.com/users/sphaerophoria/repos","events_url":"https://api.github.com/users/sphaerophoria/events{/privacy}","received_events_url":"https://api.github.com/users/sphaerophoria/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T07:50:43Z","updated_at":"2015-07-29T07:50:43Z","body":"Awesome, looks good. My day at work tomorrow will be much more pleasant :)."}}