eye.helpers.ycm.daemon module

YouCompleteMe daemon control module

exception eye.helpers.ycm.daemon.ServerError[source]

Bases: RuntimeError

class eye.helpers.ycm.daemon.Ycm(**kwargs)[source]

Bases: QObject, CategoryMixin

YCMD instance control

CHECK_REPLY_SIGNATURE = True
IDLE_SUICIDE = 120

Maximum time after which ycmd should quit if it has received no requests.

A periodic ping is sent by Ycm objects.

TIMEOUT = 10
YCMD_CMD = ['ycmd']

Base ycmd command.

Useful if ycmd is not in PATH or set permanent arguments

accept_extra_conf(filepath, filetype, contents)[source]
addr = <Mock object>

Address of the ycmd server.

check_reply(reply)[source]

Check the ycmd reply is a success.

Checks the reply has a HTTP 200 status code and the signature is valid. In case of error, raises a ServerError.

connect_to(addr)[source]
is_running()[source]
make_config()[source]
ping()[source]
port = <Mock object>

TCP port of the ycmd server.

proc_error(error)[source]

This slot has signature proc_error(QProcess.ProcessError).

proc_finished(code, status)[source]

This slot has signature proc_finished(int, QProcess.ExitStatus).

proc_started()[source]

This slot has signature proc_started().

query_completions(filepath, filetype, contents, line, col)[source]
query_subcommand(filepath, filetype, contents, line, col, *args)[source]
query_subcommands_list(filepath, filetype, contents, line, col)[source]
ready = Signal()
reject_extra_conf(filepath, filetype, contents)[source]
send_parse(filepath, filetype, contents, retry_extra=True)[source]
start()[source]
stop(wait=0.2)[source]

This slot has signature stop().

eye.helpers.ycm.daemon.build_daemon()[source]
eye.helpers.ycm.daemon.get_daemon()[source]
eye.helpers.ycm.daemon.is_daemon_available()[source]