Skip to content
Pavel Sychev edited this page Feb 10, 2015 · 3 revisions

Q: I have completed Building YCMD instructions, but plugin still doesn't work.

I'm getting:

[Ycmd][Notify] Error <urlopen error [Errno 111] Connection refused>

My settings file content:

{ "HMAC": "zvKh1UlOGJhR6fDA0YS4fw==", "ycmd_port": 54446, "ycmd_server": "http://127.0.0.1" }

A: You probably have no settings for ycmd daemon, so when you start ycmd, it has no information about your HMAC key.

So, you can start from reading this part of YCMD docs

Short summary of documentation:

  • You should have 2 settings files: default_settings.json and .ycm_extra_conf.py
  • You should change at least 2 fields in default_settings.json:
    • "global_ycm_extra_conf": "path/to/your/.ycm_extra_conf.py"
    • "hmac_secret": "zvKh1UlOGJhR6fDA0YS4fw=="
  • You should setup flags array in .ycm_extra_conf.py to provide needed flags for clang. You can start from default .ycm_extra_conf.py and change it only if something fails.

When you have this two settings files and you have ycmd repo, you can start ycmd daemon. If you use linux-like system, you can do like that: http://pastebin.com/wwuQnD2J