{"action":"closed","issue":{"url":"https://api.github.com/repos/company-mode/company-mode/issues/383","labels_url":"https://api.github.com/repos/company-mode/company-mode/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/company-mode/company-mode/issues/383/comments","events_url":"https://api.github.com/repos/company-mode/company-mode/issues/383/events","html_url":"https://github.com/company-mode/company-mode/issues/383","id":97642493,"number":383,"title":"company evil conflict","user":{"login":"hotpxl","id":2174815,"avatar_url":"https://avatars.githubusercontent.com/u/2174815?v=3","gravatar_id":"","url":"https://api.github.com/users/hotpxl","html_url":"https://github.com/hotpxl","followers_url":"https://api.github.com/users/hotpxl/followers","following_url":"https://api.github.com/users/hotpxl/following{/other_user}","gists_url":"https://api.github.com/users/hotpxl/gists{/gist_id}","starred_url":"https://api.github.com/users/hotpxl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotpxl/subscriptions","organizations_url":"https://api.github.com/users/hotpxl/orgs","repos_url":"https://api.github.com/users/hotpxl/repos","events_url":"https://api.github.com/users/hotpxl/events{/privacy}","received_events_url":"https://api.github.com/users/hotpxl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-07-28T08:14:03Z","updated_at":"2016-01-31T21:01:48Z","closed_at":"2016-01-31T21:01:48Z","body":"There is a conflict between `company-mode` and `evil-mode`. It happens with nearly any backend. I have a minimal `.emacs` file to reproduce the problem.\r\n\r\n    (package-initialize)\r\n    (require 'company)\r\n    (add-hook 'after-init-hook 'global-company-mode)\r\n    (setq company-idle-delay 0)\r\n    (global-set-key (kbd \"S-<tab>\") 'company-complete)\r\n    (require 'evil)\r\n    (add-hook 'after-init-hook (lambda () (evil-mode 1)))\r\n\r\nTo reproduce the problem. Open any C++ file. Get to a point where you can get some autocompletion.\r\n\r\n    #include <vector>\r\n\r\n    int main() {\r\n      std::vector<int> a;\r\n      a. // <- cursor here\r\n      return 0;\r\n    }\r\n\r\nMake sure you hadn't auto-completed anything before in this Emacs process. After you typed \".\", hit <kbd>S-tab</kbd> like crazy (in fact I think you need only once to make it happen). It says `company-complete` for me, manually invoking completion. Then open Messages buffer, you will get something like:\r\n\r\n    Error in post-command-hook (evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil)\r\n\r\nThis happens (at least) once per process. Removing `company-complete-common` from `evil-declare-change-repeat` and add it to `evil-declare-no-repeat` could make this error disappear."}}