{"action":"created","issue":{"url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/19","repository_url":"https://api.github.com/repos/zchee/deoplete-jedi","labels_url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/19/comments","events_url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/19/events","html_url":"https://github.com/zchee/deoplete-jedi/issues/19","id":141899588,"number":19,"title":"Duplicate self.mark","user":{"login":"zchee","id":6366270,"avatar_url":"https://avatars.githubusercontent.com/u/6366270?v=3","gravatar_id":"","url":"https://api.github.com/users/zchee","html_url":"https://github.com/zchee","followers_url":"https://api.github.com/users/zchee/followers","following_url":"https://api.github.com/users/zchee/following{/other_user}","gists_url":"https://api.github.com/users/zchee/gists{/gist_id}","starred_url":"https://api.github.com/users/zchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zchee/subscriptions","organizations_url":"https://api.github.com/users/zchee/orgs","repos_url":"https://api.github.com/users/zchee/repos","events_url":"https://api.github.com/users/zchee/events{/privacy}","received_events_url":"https://api.github.com/users/zchee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-18T15:34:36Z","updated_at":"2016-03-18T16:25:12Z","closed_at":null,"body":"Sometimes `self.mark` is duplicate.\r\nIn https://github.com/zchee/deoplete-jedi/blob/master/tests/test.py.\r\n\r\n![screenshot 2016-03-19 00 22 49](https://cloud.githubusercontent.com/assets/6366270/13882623/98f5a2a4-ed69-11e5-8566-01100c46acf5.png)\r\n\r\nMaybe, buffer cached module will be duplicate.\r\n\r\nIf set\r\n```vim\r\nlet g:deoplete#sources#jedi#enable_cache = 0\r\n```\r\ndoes not occur.\r\n\r\nI will debug later.\r\n/cc @tweekmonster "},"comment":{"url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/comments/198435504","html_url":"https://github.com/zchee/deoplete-jedi/issues/19#issuecomment-198435504","issue_url":"https://api.github.com/repos/zchee/deoplete-jedi/issues/19","id":198435504,"user":{"login":"tweekmonster","id":111942,"avatar_url":"https://avatars.githubusercontent.com/u/111942?v=3","gravatar_id":"","url":"https://api.github.com/users/tweekmonster","html_url":"https://github.com/tweekmonster","followers_url":"https://api.github.com/users/tweekmonster/followers","following_url":"https://api.github.com/users/tweekmonster/following{/other_user}","gists_url":"https://api.github.com/users/tweekmonster/gists{/gist_id}","starred_url":"https://api.github.com/users/tweekmonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweekmonster/subscriptions","organizations_url":"https://api.github.com/users/tweekmonster/orgs","repos_url":"https://api.github.com/users/tweekmonster/repos","events_url":"https://api.github.com/users/tweekmonster/events{/privacy}","received_events_url":"https://api.github.com/users/tweekmonster/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T16:25:12Z","updated_at":"2016-03-18T16:25:12Z","body":"Hmm.  Does deoplete.nvim modify the results dict?  If so, that may be the problem.\r\n\r\nhttps://github.com/zchee/deoplete-jedi/blob/master/rplugin/python3/deoplete/sources/deoplete_jedi.py#L183\r\n\r\nOn L183, try changing it to:\r\n\r\n```python\r\nout = cached.get('completions', [])[:]\r\n```\r\n\r\nTo return a copy of the cache."}}