ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.45k stars 2.81k forks source link

python3 install.sh --go-completer failed #3790

Closed fhstack closed 4 years ago

fhstack commented 4 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key questions: python3 install.sh --go-completer failed, but legacy-py2 successed.

  • What did you do? python3 install.sh --go-completer
  • What did you expect to happen? install successfully
  • What actually happened? install failed. please reference install command output

    Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 12 2020 17:26:06)
Included patches: 1-1424
Compiled by liufeihao.fh@n227-009-059
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      -mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       -tcl
-autoservername    +folding           +multi_byte        +termguicolors
-balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
-browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              -perl              +title
-clientserver      +job               +persistent_undo   -toolbar
-clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           +python/dyn        +visual
+conceal           +linebreak         +python3/dyn       +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       -lua               -ruby              +wildmenu
+dialog_con        +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
-dnd               +mouse             -sound             -xfontset
-ebcdic            -mouseshape        +spell             -xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              -mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim        -lm -ltinfo -lelf    -ldl 

Output of YcmDebugInfo

Paste output here

Output of YcmDiags

Paste output here

Output of git rev-parse HEAD in YouCompleteMe installation directory

c6227cb8afafd0f42b614c0fe7d8f9cad217d63c

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which enabled debug logging and other useful diagnostics. Include a link to a gist containing all of the log files listed by :YcmToggleLogs.

OS version, distribution, etc.

Include system information here.

Output of build/install commands

Include link to a gist containing the invocation and entire output of install.py if reporting an installation issue.

copying src/watchdog/utils/delayed_queue.py -> /data00/home/liufeihao.fh/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/echo.py -> /data00/home/liufeihao.fh/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/platform.py -> /data00/home/liufeihao.fh/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/unicode_paths.py -> /data00/home/liufeihao.fh/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils running egg_info creating src/watchdog.egg-info writing src/watchdog.egg-info/PKG-INFO writing dependency_links to src/watchdog.egg-info/dependency_links.txt writing entry points to src/watchdog.egg-info/entry_points.txt writing requirements to src/watchdog.egg-info/requires.txt writing top-level names to src/watchdog.egg-info/top_level.txt writing manifest file 'src/watchdog.egg-info/SOURCES.txt' reading manifest file 'src/watchdog.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' *warning: no files found matching '.h' under directory 'src'.** writing manifest file 'src/watchdog.egg-info/SOURCES.txt' go: finding golang.org v0.4.4 go: finding golang.org/x/tools/gopls v0.4.4 go: finding golang.org/x/tools v0.4.4 go: finding golang.org/x v0.4.4

puremourning commented 4 years ago

You don’t appear to be reporting any kind of actual problem.

The line in bold can be ignored.

If YCM isn’t working please raise a new issue and complete the missing sections of the template.

Otherwise lost the full output of install.py` and a description of what isn’t working.

fhstack commented 4 years ago

sorry, sorry... I verified that it's ok after executing YcmRestartServer and switch the "ycm_server_python_interpreter" from the python2 to python3

puremourning commented 4 years ago

Per the troubleshooting guide, it’s best to NOT override the python and let YCM work it out.