chxuan / vimplus

:rocket:An automatic configuration program for vim
https://github.com/chxuan/vimplus
MIT License
3.88k stars 1.13k forks source link

vimplus打开后打印错误:The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_60709_stde rr_mr4mmubw.log' to check the logs. #196

Open ghost opened 4 years ago

ghost commented 4 years ago

系统:Linux pc 5.2.21-1-MANJARO GCC:9.2

ghost commented 4 years ago

运行:YcmToggleLogs后,显示的错误日志 2019-10-23 09:18:43,083 - ERROR - The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_32793_stderr_rc9806lz.log' to check the logs. 2019-10-23 09:18:49,669 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=32793): Max retries exceeded with url: /debug_info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2b8bee5890>: Failed to establish a new connection: [Errno 111] 拒绝连接'))

chxuan commented 4 years ago

你好,你在安装vimplus的时候,vimplus会自动下载ycm并编译,在这个过程中有没有报错呢?有安装过程截图吗?

ghost commented 4 years ago

安装过程很顺利,ycm编译过程没有报错,下面是打印的信息: [hjf@pc .vimplus]$ ./install.sh Platform type: Linux Linux distro: ManjaroLinux Find /home/hjf/.vimrc already exists,backup /home/hjf/.vimrc to /home/hjf/.vimrc_bak_20191023103322[Y/N]:y Find /home/hjf/.vim already exists,backup /home/hjf/.vim to /home/hjf/.vim_bak_20191023103333[Y/N]:n [sudo] hjf 的密码: 警告:vim-8.1.2102-1 已经为最新 -- 重新安装 警告:ctags-1:r20190522+g3fdf28bc-1 已经为最新 -- 重新安装 警告:automake-1.16.1-1 已经为最新 -- 重新安装 警告:gcc-9.2.0-2 已经为最新 -- 重新安装 警告:cmake-3.15.4-1 已经为最新 -- 重新安装 警告:python-3.7.4-2 已经为最新 -- 重新安装 警告:python2-2.7.16-1 已经为最新 -- 重新安装 警告:curl-7.66.0-1 已经为最新 -- 重新安装 警告:ack-3.1.1-1 已经为最新 -- 重新安装 警告:git-2.23.0-1 已经为最新 -- 重新安装 警告:fontconfig-2:2.13.1+12+g5f5ec56-2 已经为最新 -- 重新安装 正在解析依赖关系... 正在查找软件包冲突...

软件包 (11) ack-3.1.1-1 automake-1.16.1-1 cmake-3.15.4-1 ctags-1:r20190522+g3fdf28bc-1 curl-7.66.0-1 fontconfig-2:2.13.1+12+g5f5ec56-2 gcc-9.2.0-2 git-2.23.0-1 python-3.7.4-2 python2-2.7.16-1 vim-8.1.2102-1

下载大小: 95.79 MiB 全部安装大小: 440.36 MiB 净更新大小: 0.00 MiB

:: 进行安装吗? [Y/n] :: 正在获取软件包...... automake-1.16.1-1-any 598.6 KiB 2.97M/s 00:00 [#########################################] 100% gcc-9.2.0-2-x86_64 33.9 MiB 11.2M/s 00:03 [#########################################] 100% curl-7.66.0-1-x86_64 986.4 KiB 690K/s 00:01 [#########################################] 100% vim-8.1.2102-1-x86_64 1487.9 KiB 414K/s 00:04 [#########################################] 100% ctags-1:r20190522+g3fdf28bc-1-x86_64 355.4 KiB 705K/s 00:01 [#########################################] 100% cmake-3.15.4-1-x86_64 6.2 MiB 7.68M/s 00:01 [#########################################] 100% python-3.7.4-2-x86_64 34.1 MiB 6.49M/s 00:05 [#########################################] 100% python2-2.7.16-1-x86_64 11.7 MiB 11.2M/s 00:01 [#########################################] 100% git-2.23.0-1-x86_64 5.6 MiB 3.05M/s 00:02 [#########################################] 100% fontconfig-2:2.13.1+12+g5f5ec56-2-x86_64 874.2 KiB 6.10M/s 00:00 [#########################################] 100% ack-3.1.1-1-any 60.6 KiB 19.7M/s 00:00 [#########################################] 100% (11/11) 正在检查密钥环里的密钥 [#########################################] 100% (11/11) 正在检查软件包完整性 [#########################################] 100% (11/11) 正在加载软件包文件 [#########################################] 100% (11/11) 正在检查文件冲突 [#########################################] 100% (11/11) 正在检查可用存储空间 [#########################################] 100% :: 正在处理软件包的变化... ( 1/11) 正在重新安装 vim [#########################################] 100% ( 2/11) 正在重新安装 ctags [#########################################] 100% ( 3/11) 正在重新安装 automake [#########################################] 100% ( 4/11) 正在重新安装 gcc [#########################################] 100% ( 5/11) 正在重新安装 curl [#########################################] 100% ( 6/11) 正在重新安装 cmake [#########################################] 100% ( 7/11) 正在重新安装 python [#########################################] 100% ( 8/11) 正在重新安装 python2 [#########################################] 100% ( 9/11) 正在重新安装 ack [#########################################] 100% (10/11) 正在重新安装 git [#########################################] 100% (11/11) 正在重新安装 fontconfig [#########################################] 100% Rebuilding fontconfig cache... done. :: 正在运行事务后钩子函数... (1/8) Creating system user accounts... (2/8) Warn about old perl modules (3/8) Updating icon theme caches... (4/8) Reloading system manager configuration... (5/8) Arming ConditionNeedsUpdate... (6/8) Updating the info directory file... (7/8) Updating the desktop file MIME type cache... (8/8) Updating the MIME type database... ln: 无法创建符号链接 '/usr/lib/libtinfo.so.5': 文件已存在 mkdir: 无法创建目录 “/home/hjf/.vim”: 文件已存在 mkdir: 无法创建目录 “/home/hjf/.fonts”: 文件已存在 /home/hjf/.fonts: 正在生成缓存,新增缓存内容:1 个字体,0 个目录 /var/cache/fontconfig: not cleaning unwritable cache directory /home/hjf/.cache/fontconfig: cleaning cache directory /home/hjf/.fontconfig: not cleaning non-existent cache directory fc-cache: 缓存生成成功 正克隆到 '/home/hjf/.vim/plugged/YouCompleteMe'... remote: Enumerating objects: 6051, done. remote: Counting objects: 100% (6051/6051), done. remote: Compressing objects: 100% (4429/4429), done. remote: Total 6051 (delta 1123), reused 6042 (delta 1119) 接收对象中: 100% (6051/6051), 59.39 MiB | 2.95 MiB/s, 完成. 处理 delta 中: 100% (1123/1123), 完成. Searching Python 2.7 libraries... #######library_dirs############ ['/usr/lib/python2.7/config', '/usr/lib64', '/usr/lib'] #######library_dirs############ filename:libpython2.7.so Found Python library: /usr/lib/python2.7/config/libpython2.7.so Found Python headers folder: /usr/include/python2.7 -- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is GNU 9.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonLibs: /usr/lib/python2.7/config/libpython2.7.so (found suitable version "2.7.16", minimum required is "2.7") -- Using libclang archive: /home/hjf/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-8.0.0-x86_64-unknown-linux-gnu.tar.bz2 -- Using libclang to provide semantic completion for C/C++/ObjC -- Using external libclang: /tmp/ycm_build_1EvypJ/lib/libclang.so.8 -- NOT using clang-tidy for static analysis. -- Configuring done -- Generating done -- Build files have been written to: /tmp/ycm_build_1EvypJ Scanning dependencies of target BoostParts [ 1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/codecvt_error_category.cpp.o [ 3%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/operations.cpp.o [ 7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path_traits.cpp.o [ 7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path.cpp.o [ 9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/portability.cpp.o [ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/unique_path.cpp.o [ 13%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o [ 15%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/windows_file_codecvt.cpp.o [ 17%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/c_regex_traits.cpp.o [ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cpp_regex_traits.cpp.o [ 21%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cregex.cpp.o [ 23%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/fileiter.cpp.o [ 25%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/icu.cpp.o [ 27%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/instances.cpp.o [ 29%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/posix_api.cpp.o [ 31%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex.cpp.o [ 33%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_debug.cpp.o [ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_raw_buffer.cpp.o [ 37%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_traits_defaults.cpp.o [ 39%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/static_mutex.cpp.o [ 41%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/usinstances.cpp.o [ 43%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/w32_regex_traits.cpp.o [ 45%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wc_regex_traits.cpp.o [ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wide_posix_api.cpp.o [ 49%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/winstances.cpp.o [ 50%] Linking CXX static library libBoostParts.a [ 50%] Built target BoostParts Scanning dependencies of target ycm_core [ 52%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o [ 54%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o [ 56%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CandidateRepository.cpp.o [ 58%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CharacterRepository.cpp.o [ 60%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o [ 62%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o [ 64%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o [ 66%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o [ 68%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o [ 70%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o [ 72%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o [ 74%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o [ 76%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o [ 78%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o [ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePointRepository.cpp.o [ 82%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o [ 84%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o [ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o [ 92%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o [ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o [ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o [100%] Linking CXX shared library /home/hjf/.vim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.so [100%] Built target ycm_core -- The C compiler identification is GNU 9.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PythonLibs: /usr/lib/python2.7/config/libpython2.7.so (found version "2.7.16") -- Configuring done -- Generating done -- Build files have been written to: /tmp/regex_build_htFcyd Scanning dependencies of target _regex [ 33%] Building C object CMakeFiles/_regex.dir/regex_2/_regex.c.o [ 66%] Building C object CMakeFiles/_regex.dir/regex_2/_regex_unicode.c.o [100%] Linking C shared library /home/hjf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_2/_regex.so [100%] Built target _regex % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 74940 100 74940 0 0 13209 0 0:00:05 0:00:05 --:--:-- 15867


/_/ / /_ ___ \ \ / / / ` \/ \/ / / / / / \ V / / / / / / / // / / /_/ ( )
_/// // // ,_
/_/\
/___/
/
/ ...is now installed!

Just enjoy it! p.s. Follow me at https://github.com/chxuan.

It takes 3 minutes.

------------------ 原始邮件 ------------------ 发件人: "chxuan"notifications@github.com; 发送时间: 2019年10月23日(星期三) 上午10:31 收件人: "chxuan/vimplus"vimplus@noreply.github.com; 抄送: "863472527"863472527@qq.com; "Author"author@noreply.github.com; 主题: Re: [chxuan/vimplus] vimplus打开后打印错误:The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_60709_stde rr_mr4mmubw.log' to check the logs. (#196)

你好,你在安装vimplus的时候,vimplus会自动下载ycm并编译,在这个过程中有没有报错呢?有安装过程截图吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ghost commented 4 years ago

我删了重新安装有这个错误 Updated. Elapsed time: 1.142911 sec.
2 [====================================x=]
3
4 - Finishing ... Done!
5 - vim-devicons: Already installed
6 x YouCompleteMe:
7 Invalid URI: https://gitee.com/chxuan/YouCompleteMe-clang.git 8 Expected: https://github.com/Valloric/YouCompleteMe.git 9 PlugClean required.
10 - prepare-code: Already installed
11 - vim-textobj-user: Already installed
......

chxuan commented 4 years ago

@Oliverfeng1 这个错误可以不用管哈,你可以看vimplus的FQA,之前那个ycm报错我也第一次遇到,看报错内容,应该是http连接错误导致的,现在重新安装了一遍还是出现这个问题没有呢?

ghost commented 4 years ago

你好,多谢回答,不过重装后还是有问题,YoucompleteMe没有在vim中运行起来,还是那个问题

------------------ 原始邮件 ------------------ 发件人: "chxuan"notifications@github.com; 发送时间: 2019年10月23日(星期三) 中午11:20 收件人: "chxuan/vimplus"vimplus@noreply.github.com; 抄送: "863472527"863472527@qq.com; "Mention"mention@noreply.github.com; 主题: Re: [chxuan/vimplus] vimplus打开后打印错误:The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_60709_stde rr_mr4mmubw.log' to check the logs. (#196)

@Oliverfeng1 这个错误可以不用管哈,你可以看vimplus的FQA,之前那个ycm报错我也第一次遇到,看报错内容,应该是http连接错误导致的,现在重新安装了一遍还是出现这个问题没有呢?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chxuan commented 4 years ago

@Oliverfeng1 可以参考下这两篇文章 http://vim.1045645.n5.nabble.com/HTTPConnectionPool-host-127-0-0-1-port-51651-Max-retries-exceeded-with-url-event-notification-Caused-td5721692.html

https://stackoverflow.com/questions/47957625/why-does-my-ycm-server-shut-down

你的系统如果安装了clang,你可以试试通过这个命令来重新编译ycm:python2.7 ./install.py --clang-completer

chxuan commented 4 years ago

@Oliverfeng1 如果上面的方法不行,你可以再这样试试,使用python3来编译ycm: cd /.vim/plugged/YouCompleteMe python3 ./install.py --clang-completer 编译完成后 将/.vimrc里的let g:ycm_server_python_interpreter = '/usr/bin/python2.7'改成let g:ycm_server_python_interpreter = '/usr/bin/python3'试试

ghost commented 4 years ago

谢谢你,成功了。解决方法: cd ~/.vim/plugged/YouCompleteMe python3 ./install.py --clang-completer 然后改.vimrc中的let g:ycm_server_python_interpreter = '/usr/bin/python3'

------------------ 原始邮件 ------------------ 发件人: "chxuan"notifications@github.com; 发送时间: 2019年10月23日(星期三) 中午11:42 收件人: "chxuan/vimplus"vimplus@noreply.github.com; 抄送: "863472527"863472527@qq.com; "Mention"mention@noreply.github.com; 主题: Re: [chxuan/vimplus] vimplus打开后打印错误:The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_60709_stde rr_mr4mmubw.log' to check the logs. (#196)

@Oliverfeng1 如果上面的方法不行,你可以再这样试试,使用python3来编译ycm

cd /.vim/plugged/YouCompleteMe python3 ./install.py --clang-completer 编译完成后 将/.vimrc里的let g:ycm_server_python_interpreter = '/usr/bin/python2.7'改成let g:ycm_server_python_interpreter = '/usr/bin/python3'试试

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chxuan commented 4 years ago

@Oliverfeng1 我已经修复了这个问题了,现在ycm提供了python2、python3编译选项供用户选择,让用户决定到底是使用python2还是使用python3

dongwenyue commented 5 months ago

我这边在 ~/.vimrc中 添加了let g:ycm_server_python_interpreter = '/usr/bin/python3'但是还是会提示:The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected error while loading the YCM core library. Type ':YcmToggleLogs ycmd_54848_stderr_frn65e7u.log' to check the logs.