Simplify ycmd--request by removing sync option, so that the function always returns a deferred object. To have synchronous request use modified deferred:sync! version ycmd-deferred:sync! with the difference that the interval is smaller for the checks and we use accept-process-out for waiting, which also used in url-retrieve to wait for the synchronous request to finish.
With these changes I noticed that test were no tests failing anymore with undefined reason, which needed to be re-triggeredh until they passed.
Simplify
ycmd--request
by removingsync
option, so that the function always returns a deferred object. To have synchronous request use modifieddeferred:sync!
versionycmd-deferred:sync!
with the difference that the interval is smaller for the checks and we useaccept-process-out
for waiting, which also used inurl-retrieve
to wait for the synchronous request to finish.With these changes I noticed that test were no tests failing anymore with undefined reason, which needed to be re-triggeredh until they passed.