abingham / emacs-ycmd

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

Skip ycmd completion response deferred error #487

Open ChoppinBlockParty opened 5 years ago

ChoppinBlockParty commented 5 years ago

Today have installed latest ycmd and lates emacs packages. Now I am completion is not working, I am getting this error. Any ideas?

Skip ycmd completion response [7 times]
deferred error : (wrong-type-argument number-or-marker-p nil)

Ycmd seems to be working fine.

LoveGlitchCoffee commented 5 years ago

I encountered this error recently and couldn't figured out why, until literally just now I figured out it was because I was accessing my machine over ssh ... When accessing my machine directly, emacs-ycmd asks me to load my project ycm_extra_config, whereas it does not over ssh.

EDIT: Did just solve this by running emacs --daemon on my machine and accesing as emacsclient over ssh

ChoppinBlockParty commented 5 years ago

I am working on the machine directly.

abingham commented 5 years ago

Is it possible to get more information about the bug, e.g. by using toggle-debug-on-error?

ChoppinBlockParty commented 5 years ago

Hmm, weird, for some reasons I do not see any debug information in *Messages* buffer. Am I missing something?

ChoppinBlockParty commented 5 years ago

I found out it was proxy on my site. It start working but I need env -u HTTPS_PROXY -u HTTP_PROXY -u https_proxy -u http_proxy emacs to make it work. I have

NO_PROXY=localhost,127.0.0.0/8,::1
no_proxy=localhost,127.0.0.0/8,::1

in my environment variables, but that does not help. How can I keep the proxy for everything except localhost?

This does not help

(setq url-proxy-services '(("no_proxy" . "^\\(localhost\\|127\\..*\\|192\\.168\\..*\\)")))
dvzubarev commented 4 years ago

Maybe duplicate of #490