abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
383 stars 46 forks source link

ERROR: Invalid function: ycmd-deferred:timeout #426

Closed noxdafox closed 7 years ago

noxdafox commented 7 years ago

Recent update of emacs-ycmd broke Company completion.

Company: An error occurred in auto-begin
Company: backend company-ycmd error "Invalid function: ycmd-deferred:timeout" with args (candidates reques)

To be sure, I updated ycmd code to its last revision as well. The issue is still present.

ycmd-server logs don't show anything suspicious.

noxdafox commented 7 years ago

I suspect this is the broken commit: https://github.com/abingham/emacs-ycmd/commit/091a873899a64b0f7ba8730ff05c2e9db0e889d2

ptrv commented 7 years ago

@noxdafox Can you please try to remove you company-ycmd folder and reinstall?

See: https://github.com/abingham/emacs-ycmd/issues/425

noxdafox commented 7 years ago

EDIT: Ignore this comment, I figure out what has changed.

Sorry for opening a duplicate ticket (search did not show me #425)

ptrv commented 7 years ago

I think the problem is that company-ycmd and ycmd was outdated and package.el updated company-ycmd before ycmd and byte-compiled it with the not yet defined ycmd-deferred:timeout macro.

noxdafox commented 7 years ago

Yes it probably is the issue. Maybe converting ycmd-deferred to an actual function?