Closed ghost closed 7 years ago
Works for me. The ycmd
commit you mention only affects the debug_info
request, which is not used when starting the server.
What is the output in the *ycmd-server*
window?
Empty, no ycmd processes running. I'll try to reproduce on a pure install (because I'm running spacemacs, and, well, you know, variables aplenty). Probably a misconfiguration (or a bug in a different component, it may have happened after a package update).
Yeah, I'd check *Messages*
and, if possible, *ycmd-server*
for clues. I'm on spacemacs as well, and sometimes dependencies get out of whack.
Yeah, I'd check
*Messages*
and, if possible,*ycmd-server*
for clues.
There was nothing there to shed any light on the nature of the problem, alas. The only ycmd-related messages were "server timeout" and "server killed" in Messages.
Anyway, false alarm. I nuked elpa
, reinstalled everything, and it started working again. I swear, doing this with spacemacs every other day is exhausting.
I'm glad you could solve the issue. Happy completing!
Same issue here. ycmd-server just doesn't start. The server works well in vim. Not sure what's going wrong. I'm pretty surprised there is no exceptions printed for me to debug. Is this the elisp way to handle errors?
Same problem. I tried nuking my ELPA directory, by simply trashing it and then waiting half an hour for spacemacs to reinstall all the packages, still doesn't work for me. I've reinstalled ycmd 6 times (normally that fixes it for a little while).
Whenever I run ycmd-open, the following three lines are printed to the messages buffer
Ycmd server killed
ERROR: Ycmd server timeout. If this happens regularly you may need to increase ‘ycmd-startup-timeout’.
Ycmd server is not running. Can’t send ‘semantic_completion_available’ request!
Edit:
I tried to sort out the issue. This command curl -LO 'https://raw.githubusercontent.com/ycm-core/ycmd/master/ycmd/default_settings.json' 2>/dev/null && py -3 '/path/to/ycmd/ycmd' --options_file default_settings.json
will let you run ycmd outside of emacs and I found out that for me (on windows) it didn't even start up. I received a stacktrace ending with the message "OSError: [WinError 193] %1 is not a valid Win32 application". Exploring further, I found that libclang.dll was causing this error. I cleared and then reinstalled ycmd, that didn't help. Then I tried building ycmd with the --all flag and for now it's working. Initially I only enabled a handful of completers because I didn't need all of them. If anyones having any troubles, I suggest installing all of them.
Edit: Edit:
All things considered I would like to say a better error message would be appreciated here. Emacs simply telling me the server isn't running, doesn't help me to diagnose the problem at all. if the ycmd process dies almost immeadiately after starting (and before any request has been sent or responded to) maybe it'd be best to dump the processess stderr stream to the messages buffer.
After upgrading ycmd to the (currently) latest revision 0bc9870, emacs-ycmd refuses to start with the generic "Ycmd server killed"/"Server timeout" messages.
This may be related to the ycmd revision ec4f335. Here's the log message for that revision:
Downgrading ycmd to revision 96aabdc as a temporary solution works.