{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4707","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4707/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4707/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4707/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/4707","id":127680441,"number":4707,"title":"C struct member autocomplete not working","user":{"login":"dexafree","id":4390656,"avatar_url":"https://avatars.githubusercontent.com/u/4390656?v=3","gravatar_id":"","url":"https://api.github.com/users/dexafree","html_url":"https://github.com/dexafree","followers_url":"https://api.github.com/users/dexafree/followers","following_url":"https://api.github.com/users/dexafree/following{/other_user}","gists_url":"https://api.github.com/users/dexafree/gists{/gist_id}","starred_url":"https://api.github.com/users/dexafree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexafree/subscriptions","organizations_url":"https://api.github.com/users/dexafree/orgs","repos_url":"https://api.github.com/users/dexafree/repos","events_url":"https://api.github.com/users/dexafree/events{/privacy}","received_events_url":"https://api.github.com/users/dexafree/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/C/C++","name":"C/C++","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-20T13:19:56Z","updated_at":"2016-01-20T13:48:37Z","closed_at":null,"body":"#### Description\r\nIf there is a struct declared in a C source code file, autocomplete does not work for trying to access members of that struct.\r\n\r\n#### Reproduction guide\r\n- Start Emacs\r\n- Create a new C source file (ie test.c)\r\n- Add the following content (for test purposes)\r\n\r\n```c\r\n#include <stdio.h>\r\n\r\ntypedef struct {\r\n    int x;\r\n    int y;\r\n} Point;\r\n\r\nint main(int argc, char **argv){\r\n    Point p;\r\n    return 0;\r\n}\r\n```\r\n\r\n- Inside the main function, below `Point p` try to write `p.`. You can press tab if you want, but the autocomplete popup is not appearing. (You can test adding `stdlib.h` and changing it by a pointer with `malloc`, won't work either).\r\n\r\nI also tried generating the CTags, but dodn't work either.\r\n\r\n\r\nDESCRIPTION OF THE OBSERVED BEHAVIOUR\r\n\r\nThe autocompletion engine doesn't show the struct members.\r\n\r\nDESCRIPTION OF THE EXPECTED BEHAVIOUR\r\n\r\nIf you wrote `p.`, or if it was a pointer, `p->`, the autocomplete should show the options *x* and *y*.\r\n\r\n#### System Info\r\n- OS: darwin\r\n- Emacs: 24.5.1\r\n- Spacemacs: 0.105.9\r\n- Spacemacs branch: master (rev. 0562f05)\r\n- Distribution: spacemacs\r\n- Editing style: vim\r\n- Completion: helm\r\n- Layers:\r\n```elisp\r\n(auto-completion emacs-lisp c-c++ haskell html latex markdown org\r\n                 (osx :variables osx-use-option-as-meta nil)\r\n                 python rust shell syntax-checking themes-megapack my-monokai-theme)\r\n```\r\n\r\n\r\n#### Backtrace\r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/173209585","html_url":"https://github.com/syl20bnr/spacemacs/issues/4707#issuecomment-173209585","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4707","id":173209585,"user":{"login":"tuhdo","id":4818719,"avatar_url":"https://avatars.githubusercontent.com/u/4818719?v=3","gravatar_id":"","url":"https://api.github.com/users/tuhdo","html_url":"https://github.com/tuhdo","followers_url":"https://api.github.com/users/tuhdo/followers","following_url":"https://api.github.com/users/tuhdo/following{/other_user}","gists_url":"https://api.github.com/users/tuhdo/gists{/gist_id}","starred_url":"https://api.github.com/users/tuhdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuhdo/subscriptions","organizations_url":"https://api.github.com/users/tuhdo/orgs","repos_url":"https://api.github.com/users/tuhdo/repos","events_url":"https://api.github.com/users/tuhdo/events{/privacy}","received_events_url":"https://api.github.com/users/tuhdo/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T13:48:37Z","updated_at":"2016-01-20T13:48:37Z","body":"@TheBB  `p.` should be enough to trigger completion.\r\n\r\n@dexafree are you doing it on an unsaved buffer? Try saving to a file, because I had this problem only in unsaved buffer. Also, you should install `clang` if you haven't."}}