{"action":"created","issue":{"url":"https://api.github.com/repos/dgutov/robe/issues/36","labels_url":"https://api.github.com/repos/dgutov/robe/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/dgutov/robe/issues/36/comments","events_url":"https://api.github.com/repos/dgutov/robe/issues/36/events","html_url":"https://github.com/dgutov/robe/issues/36","id":38827703,"number":36,"title":"Company robe hangs before presenting completions","user":{"login":"dgtized","id":6784,"avatar_url":"https://avatars.githubusercontent.com/u/6784?v=3","gravatar_id":"","url":"https://api.github.com/users/dgtized","html_url":"https://github.com/dgtized","followers_url":"https://api.github.com/users/dgtized/followers","following_url":"https://api.github.com/users/dgtized/following{/other_user}","gists_url":"https://api.github.com/users/dgtized/gists{/gist_id}","starred_url":"https://api.github.com/users/dgtized/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgtized/subscriptions","organizations_url":"https://api.github.com/users/dgtized/orgs","repos_url":"https://api.github.com/users/dgtized/repos","events_url":"https://api.github.com/users/dgtized/events{/privacy}","received_events_url":"https://api.github.com/users/dgtized/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2014-07-26T22:31:40Z","updated_at":"2015-02-12T09:33:36Z","closed_at":null,"body":"I've been encountering a problem where completion frequently hangs. I enter 3 characters pause for a second, completion kicks in, and just hangs with the message \"Contacting host: 127.0.0.1:24969\". I've waited at least 30s and had no response. After using `C-g` to abort, it immediately presents a list of completions. \r\n\r\nI benchmarked the robe server by adding request time information to the requests, and all completion lists were handled in < 0.25s, so it's not hanging on the server. I also benchmarked calling `robe-request` and that responded quickly, so it does not appear to be anything on the parsing edge of emacs.\r\n\r\n```elisp\r\n(benchmark-run 10\r\n  (robe-request \"complete_method\" \"after\" nil \"ApplicationController\" nil))\r\n\r\n;; => (0.22050937399999998 0 0.0)\r\n```\r\n\r\nI then tried edebug on `company-abort` and found that `C-g` was not triggering that. So I used `(setq debug-on-quit t)` to diagnose what was blocking. Sometimes this resulted in the completion working without blocking, but when it did, the abort backtrace was:\r\n\r\n```\r\nDebugger entered--Lisp error: (quit)\r\n  redisplay_internal\\ \\(C\\ function\\)()\r\n```\r\n\r\nSo as soon as that is aborted it jumps back into company and displays the options.\r\n\r\nI tried mucking around with `company-echo-delay`, and have a hunch this is related to eldoc making timer requests at the same time as robe. I haven't had much luck disabling eldoc. It's also tricky to test because occasionally completion just works, so it's tricky to tell if fiddling with something improved it, or I just randomly got a couple of completions to work.\r\n\r\nI'm happy to try and work on a test case, but wanted to document what I have thus far, and see if anyone else had ideas.\r\n"},"comment":{"url":"https://api.github.com/repos/dgutov/robe/issues/comments/74041829","html_url":"https://github.com/dgutov/robe/issues/36#issuecomment-74041829","issue_url":"https://api.github.com/repos/dgutov/robe/issues/36","id":74041829,"user":{"login":"dgutov","id":271877,"avatar_url":"https://avatars.githubusercontent.com/u/271877?v=3","gravatar_id":"","url":"https://api.github.com/users/dgutov","html_url":"https://github.com/dgutov","followers_url":"https://api.github.com/users/dgutov/followers","following_url":"https://api.github.com/users/dgutov/following{/other_user}","gists_url":"https://api.github.com/users/dgutov/gists{/gist_id}","starred_url":"https://api.github.com/users/dgutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgutov/subscriptions","organizations_url":"https://api.github.com/users/dgutov/orgs","repos_url":"https://api.github.com/users/dgutov/repos","events_url":"https://api.github.com/users/dgutov/events{/privacy}","received_events_url":"https://api.github.com/users/dgutov/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T09:33:36Z","updated_at":"2015-02-12T09:33:36Z","body":"@chalmagean Was installing company-mode the only change? Does the problem go away if you uninstall it, restart Emacs, then launch Robe and try to use it?"}}