{"action":"closed","issue":{"url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/330","repository_url":"https://api.github.com/repos/abingham/emacs-ycmd","labels_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/330/comments","events_url":"https://api.github.com/repos/abingham/emacs-ycmd/issues/330/events","html_url":"https://github.com/abingham/emacs-ycmd/issues/330","id":170539020,"number":330,"title":"emacs-ycmd cannot figure out port number","user":{"login":"stanford-scs","id":4564109,"avatar_url":"https://avatars.githubusercontent.com/u/4564109?v=3","gravatar_id":"","url":"https://api.github.com/users/stanford-scs","html_url":"https://github.com/stanford-scs","followers_url":"https://api.github.com/users/stanford-scs/followers","following_url":"https://api.github.com/users/stanford-scs/following{/other_user}","gists_url":"https://api.github.com/users/stanford-scs/gists{/gist_id}","starred_url":"https://api.github.com/users/stanford-scs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanford-scs/subscriptions","organizations_url":"https://api.github.com/users/stanford-scs/orgs","repos_url":"https://api.github.com/users/stanford-scs/repos","events_url":"https://api.github.com/users/stanford-scs/events{/privacy}","received_events_url":"https://api.github.com/users/stanford-scs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-10T23:03:56Z","updated_at":"2016-08-11T20:32:34Z","closed_at":"2016-08-11T20:32:34Z","body":"I'm using ycmd-20160809.355 from elpa on arch linux with emacs 24.5.1 and vim-youcompleteme-git. emacs-ycmd does not seem to be able to figure out the port number, and always dies with the error:\r\n\r\n`REQUEST [error] Error (error) while connecting to http://127.0.0.1:0/shutdown.`\r\n\r\nNote the port number of 0.  In my .emacs I set:\r\n\r\n```\r\n(setq ycmd-server-command\r\n      '(\"python2\" \"-u\" \"/usr/share/vim/vimfiles/third_party/ycmd/ycmd\"))\r\n```\r\n\r\nThis leads to emacs-ycmd spawning commands like this:\r\n\r\n`/usr/bin/python2 -u /usr/share/vim/vimfiles/third_party/ycmd/ycmd --options_file=/tmp/ycmd-options28261nwu --log=debug --keep_logfile --idle_suicide_seconds=10800`\r\n\r\nHowever, when I run `(ycmd--create-options-file \"blah\")` and then manually execute such a command, I don't see any output of the form `serving on http://...`, so as expected `ycmd--server-actual-port` is always 0.  For example:\r\n\r\n```\r\n$ /usr/bin/python2 -u /usr/share/vim/vimfiles/third_party/ycmd/ycmd --options_file=/tmp/ycmd-options28261Nci --log=debug --keep_logfile --idle_suicide_seconds=10800\r\n2016-08-10 15:53:23,778 - DEBUG - No global extra conf, not calling method YcmCorePreload\r\n```\r\n[After which it waits serving HTTP requests on a dynamically allocated port such as 35787, though it changes each time, so I have to discover it with a tool like lsof.]\r\n\r\nI realize this must be a pretty basic problem, because clearly a lot of people use this package and yet it doesn't work at all for me.  However, I've lost a lot of time on this.  At the very least consider this a documentation request to give an example of an actually working configuration, because from the available materials I don't understand how this package is ever supposed to work."}}
{"actor":{"display_login":"ptrv"}}