abingham/emacs-ycmd

Ycmd crashes without any error messages.

Closed this issue · 10 comments

As it says in the title, I can't get ycmd to work on my projects.

Maybe these lines from the Messages buffer are relevant:

gui-get-primary-selection: No selection is available
Ycmd server killed
ERROR: Ycmd server timeout

An interesting fact is that it can be used if I restart it with ycmd-open.

I am using the latest version installed by Spacemacs.

I'm not sure why you might be seeing this, but it seems to be coming from select.el. Can you use stack-trace-on-error or debug-on-error to see the context in which this is happening?

It seems to be unrelated.
It happens if I open the file by clicking on it in the home screen. If I press RET it doesn't show up.

So this happens when you start emacs and click on a file from the *spacemacs* buffer's "Recent Files" list?

What does the *ycmd-server* buffer show?

Hmmm...does ycmd-show-debug-info show anything that looks useful?

No debug info available from server

Server is not running

Ycmd Mode is enabled


Ycmd version: 1.1snapshot (package: 20170114.445)
Emacs version: 25.1.1
System: x86_64-w64-mingw32
Window system: w32

I found a workaround: setting ycmd-startup-timeout to 10 seems to fix the problem.

Maybe the timeout can be longer by default to avoid similar issues?

A longer timeout might be the right way to go, but I don't want to do that until/unless we get more reports of similar problems. Yours is the first that I know of.

What I have done, though, is added some text to the error message printed when a timeout occurs. Now is tells users that that they might need to increase the value of ycmd-startup-timeout. Thanks for working with us on this!