ycmd server SHUT DOWN Unexpected exit code -11

What issue?

The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer’). Unexpected exit code -11.

Try fix

./install.py --clang-completer
cd ~/.vim/bundle/YouCompleteMe/third_party/ycmd
cd ycmd
cp default_settings.json ..
python ycmd --options_file default_settings
python3 ./build.py

Not working.

When reading source code, i found out the build.py uses sysconfig

I try to add pdb.set_trace() in the first line of function GetPossiblePythonLibraryDirectories.

In pdb shell p sysconfig.get_config_var(“LIBPL”), result show path is fault, not mine.

I try hard code absolute path in GetPossiblePythonLibraryDirectories, but no working.


Anyway, in ycm issues i found out miniconda3 has conflict issue.

so try:

rm -rf miniconda3
python3 install.py

Well, it’s working.

Environment implicit is evil, explicit is better than implicit.

git pre-commit workflow git pre-commit workflow
之前看了程序人生的一篇code is law,做了点小小的实践。想起在QQ群看到一个人的分享截图,于是就想将之前做的实践查到的资料删减翻译下整理成文章,如果万一有团队内部的技术分享会还是可以分享下的。 我想遵循pep8,我不想手动格式化
elixir set elixir set
list值的简单集合,可以包含不同的数据类型 iex> [3.14, :pie, "Apple"] [3.14, :pie, "Apple"] list内部实现为链表, 拼接使用++ iex(44)> h ++/2