ycm-core / lsp-examples

Use any language server with YouCompleteMe.
https://ycm-core.github.io/YouCompleteMe
Apache License 2.0
82 stars 26 forks source link

Vue completer not working #21

Closed airglow923 closed 3 years ago

airglow923 commented 3 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:

Include steps to reproduce here.

  1. Clone this repository
  2. Run ./install.py --all
  3. Append source /path/to/clone/vimrc.generated to .vimrc
  4. Open a vue file
  5. Use :YcmCompleter GoToDefinition

Include description of a minimal test case, including any actual code required to reproduce the issue.

If you made changes to vimrc_ycm_minimal, pase them here:

None

Include description of the expected behaviour.

Go to the definition of a method.

Include description of the observed behaviour, including actual output, screenshots, etc.

vim shows

RuntimeError: Server is initializing. Please wait.

Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 11 2020 17:00:59)
Included patches: 1-716
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 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            +visual
+conceal           +linebreak         +python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       +lua               -ruby              +wildmenu
+dialog_con_gui    +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_interact
+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"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-It0QT5/vim-8.2.0716=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.30/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lm     

Output of YcmDebugInfo

Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_k7bq2qjw.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.8.6
-- Server has Clang support compiled in: True
-- Clang version: clang version 11.0.0 (git@github.com:ycm-core/llvm ff1d9b2bb8f62c1924db137b544598b8e974ada8)
-- Extra configuration file found and loaded
-- Extra configuration path: /home/hyundeok/.vim/.ycm_extra_conf.py
-- GenericLSP completer debug information:
--   vueCompleter not running
--   vueCompleter executable: ['/home/hyundeok/git/lsp-examples/vue/node_modules/.bin/vls']
--   vueCompleter logfiles:
--     /tmp/vuecompleter_stderr22qkzu8o.log
--   vueCompleter Server State: Dead
--   vueCompleter Project Directory: /home/hyundeok/Programming/JavaScript/rest-api-example/js/client
--   vueCompleter Settings: {}
-- Server running at: http://127.0.0.1:45201
-- Server process ID: 23122
-- Server logfiles:
--   /tmp/ycmd_45201_stdout_k7x76hsm.log
--   /tmp/ycmd_45201_stderr_sp0igbjy.log

Output of YcmDiags

No warning or error detected.

Output of git rev-parse HEAD in YouCompleteMe installation directory

2434b104065be4590f07ad950d0943b7194f01e6

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.

Output of YcmToggleLogs

/tmp/vuecompleter_stderr22qkzu8o.log
/tmp/ycm_k7bq2qjw.log
/tmp/ycmd_45201_stderr_sp0igbjy.log
/tmp/ycmd_45201_stdout_k7x76hsm.log

Output of /tmp/vuecompleter_stderr22qkzu8o.log is here.

Output of /tmp/ycm_k7bq2qjw.log is here.

Output of /tmp/ycmd_45201_stderr_sp0igbjy.log is here.

Output of /tmp/ycmd_45201_stdout_k7x76hsm.log is here.

OS version, distribution, etc.

Include system information here.

Output of uname -a:

Linux LAPTOP-PNJMVIIU 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Output of build/install commands

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

The excerpt from my .vimrc:

Plug 'ycm-core/YouCompleteMe', {'do': './install.py --all --clangd-completer'}

The installation of lsp-examples is mentioned above, but restate here:

./install.py --all
bstaletic commented 3 years ago

https://gist.github.com/airglow923/def642bffafb6b4bd42ec760fce3718e#file-ycm-core-lsp-examples-issue-log-3-L19

You should recompile YCM.

https://gist.github.com/airglow923/def642bffafb6b4bd42ec760fce3718e#file-ycm-core-lsp-examples-issue-log-3-L47

The server died.

https://gist.github.com/airglow923/4e4a0a686d66fefb88f5d59714f879ab#file-ycm-core-lsp-examples-issue-log-1-L5

For that reason.

For further debugging, turn on debug logs.

airglow923 commented 3 years ago

Recompilation did not solve the issue. libclang.so.11 does exist in YouCompleteMe/third_party/ycmd/third_party/clang/lib/libclang.so.11. Can it be a linking problem?

bstaletic commented 3 years ago

Remove that files and recompile without --clang-completer.

airglow923 commented 3 years ago

Installed with:

./install.py --clangd-completer

The libclang.so.11 error is now gone, but the r [Error]: Method not found for vue still persists.

Output of ycmd stderr:

2021-02-27 00:40:57,685 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 00:40:57,685 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 00:40:57,686 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 00:40:57,686 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 00:40:57,729 - INFO - Received ready request
2021-02-27 00:40:57,744 - INFO - Received signature help available request
2021-02-27 00:40:57,746 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 00:40:57,754 - INFO - Received event notification
2021-02-27 00:40:57,760 - INFO - Received event notification
2021-02-27 00:40:57,761 - INFO - Adding buffer identifiers for file: /home/hyundeok/Programming/JavaScript/rest-api-example/js/client/src/components/UserList.vue
2021-02-27 00:40:57,764 - INFO - Starting vueCompleter: ['/home/hyundeok/git/lsp-examples/vue/node_modules/.bin/vls']
2021-02-27 00:40:57,781 - INFO - vueCompleter started with PID 10037
2021-02-27 00:40:57,858 - INFO - Received filetype completion available request
2021-02-27 00:40:59,175 - INFO - None: Language server requires resolve request
2021-02-27 00:40:59,176 - INFO - None: Language server requires sync type of Incremental
2021-02-27 00:40:59,176 - INFO - vue: Using trigger characters for semantic triggers: .,:,<,",',/,@,*, 
2021-02-27 00:40:59,176 - INFO - vue: Using characters for signature triggers: (
2021-02-27 00:40:59,766 - ERROR - The language server communication channel closed unexpectedly. Issue a RestartServer command to recover.
Traceback (most recent call last):
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 363, in run
    self._ReadMessages()
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 482, in _ReadMessages
    data, read_bytes, headers = self._ReadHeaders( data )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 546, in _ReadHeaders
    data = self.ReadData()
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 744, in ReadData
    raise RuntimeError( "Connection to server died" )
RuntimeError: Connection to server died
2021-02-27 00:41:01,611 - INFO - Received defined subcommands request
2021-02-27 00:41:01,612 - INFO - Found executeCommandProvider support for command ExecuteCommand in vue
2021-02-27 00:41:01,612 - INFO - Found codeActionProvider support for command FixIt in vue
2021-02-27 00:41:01,612 - INFO - Found definitionProvider support for command GoToDefinition in vue
2021-02-27 00:41:01,612 - INFO - Found definitionProvider support for command GoToDeclaration in vue
2021-02-27 00:41:01,613 - INFO - Found definitionProvider support for command GoTo in vue
2021-02-27 00:41:01,613 - INFO - No support for GoToType command in server for vue
2021-02-27 00:41:01,613 - INFO - No support for GoToImplementation command in server for vue
2021-02-27 00:41:01,613 - INFO - Found referencesProvider support for command GoToReferences in vue
2021-02-27 00:41:01,613 - INFO - No support for RefactorRename command in server for vue
2021-02-27 00:41:01,613 - INFO - No support for Format command in server for vue
2021-02-27 00:41:01,613 - INFO - No support for GoToSymbol command in server for vue
2021-02-27 00:41:01,613 - INFO - Always supporting StopServer for vue
2021-02-27 00:41:01,613 - INFO - Always supporting RestartServer for vue
2021-02-27 00:41:01,614 - INFO - Always supporting GetHover for vue
2021-02-27 00:41:01,623 - INFO - Received command request
2021-02-27 00:41:01,623 - INFO - Found executeCommandProvider support for command ExecuteCommand in vue
2021-02-27 00:41:01,623 - INFO - Found codeActionProvider support for command FixIt in vue
2021-02-27 00:41:01,623 - INFO - Found definitionProvider support for command GoToDefinition in vue
2021-02-27 00:41:01,624 - INFO - Found definitionProvider support for command GoToDeclaration in vue
2021-02-27 00:41:01,624 - INFO - Found definitionProvider support for command GoTo in vue
2021-02-27 00:41:01,624 - INFO - No support for GoToType command in server for vue
2021-02-27 00:41:01,624 - INFO - No support for GoToImplementation command in server for vue
2021-02-27 00:41:01,624 - INFO - Found referencesProvider support for command GoToReferences in vue
2021-02-27 00:41:01,624 - INFO - No support for RefactorRename command in server for vue
2021-02-27 00:41:01,624 - INFO - No support for Format command in server for vue
2021-02-27 00:41:01,624 - INFO - No support for GoToSymbol command in server for vue
2021-02-27 00:41:01,624 - INFO - Always supporting StopServer for vue
2021-02-27 00:41:01,625 - INFO - Always supporting RestartServer for vue
2021-02-27 00:41:01,625 - INFO - Always supporting GetHover for vue
Traceback (most recent call last):
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper
    return callback( *args, **kwargs )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper
    body = callback( *args, **kwargs )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 94, in RunCompleterCommand
    return _JsonResponse( completer.OnUserCommand(
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 472, in OnUserCommand
    return command( self, request_data, arguments[ 1: ] )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/generic_lsp_completer.py", line 70, in <lambda>
    self._GetHover( request_data ) }
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/generic_lsp_completer.py", line 74, in _GetHover
    raw_hover = self.GetHoverResponse( request_data )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 2330, in GetHoverResponse
    raise RuntimeError( 'Server is initializing. Please wait.' )
RuntimeError: Server is initializing. Please wait.
2021-02-27 00:41:05,829 - INFO - Received command request
2021-02-27 00:41:05,829 - INFO - Found executeCommandProvider support for command ExecuteCommand in vue
2021-02-27 00:41:05,829 - INFO - Found codeActionProvider support for command FixIt in vue
2021-02-27 00:41:05,829 - INFO - Found definitionProvider support for command GoToDefinition in vue
2021-02-27 00:41:05,830 - INFO - Found definitionProvider support for command GoToDeclaration in vue
2021-02-27 00:41:05,830 - INFO - Found definitionProvider support for command GoTo in vue
2021-02-27 00:41:05,830 - INFO - No support for GoToType command in server for vue
2021-02-27 00:41:05,830 - INFO - No support for GoToImplementation command in server for vue
2021-02-27 00:41:05,830 - INFO - Found referencesProvider support for command GoToReferences in vue
2021-02-27 00:41:05,830 - INFO - No support for RefactorRename command in server for vue
2021-02-27 00:41:05,830 - INFO - No support for Format command in server for vue
2021-02-27 00:41:05,830 - INFO - No support for GoToSymbol command in server for vue
2021-02-27 00:41:05,830 - INFO - Always supporting StopServer for vue
2021-02-27 00:41:05,830 - INFO - Always supporting RestartServer for vue
2021-02-27 00:41:05,830 - INFO - Always supporting GetHover for vue
Traceback (most recent call last):
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper
    return callback( *args, **kwargs )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper
    body = callback( *args, **kwargs )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 94, in RunCompleterCommand
    return _JsonResponse( completer.OnUserCommand(
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 472, in OnUserCommand
    return command( self, request_data, arguments[ 1: ] )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/generic_lsp_completer.py", line 70, in <lambda>
    self._GetHover( request_data ) }
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/generic_lsp_completer.py", line 74, in _GetHover
    raw_hover = self.GetHoverResponse( request_data )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 2330, in GetHoverResponse
    raise RuntimeError( 'Server is initializing. Please wait.' )
RuntimeError: Server is initializing. Please wait.
2021-02-27 00:41:17,526 - INFO - Received debug info request
2021-02-27 00:44:47,684 - INFO - Received health request
2021-02-27 00:50:13,477 - INFO - Received debug info request
bstaletic commented 3 years ago

Like I said, you'll need to set g:ycm_log_level to 'debug' to make the logs useful.

puremourning commented 3 years ago

2021-02-27 00:40:59,766 - ERROR - The language server communication channel closed unexpectedly. Issue a RestartServer command to recover.

This usually means that the server threw some sort of exception or produced garbage on its output stream.

On 26 Feb 2021, at 17:00, Hyundeok Park notifications@github.com wrote:

2021-02-27 00:40:59,766 - ERROR - The language server communication channel closed unexpectedly. Issue a RestartServer command to recover.

airglow923 commented 3 years ago

Output of ycmd stderr after setting g:ycm_log_level to debug:

2021-02-27 09:37:16,204 - DEBUG - Global extra conf not loaded or no function YcmCorePreload
2021-02-27 09:37:16,233 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 09:37:16,233 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 09:37:16,233 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 09:37:16,234 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 09:37:16,312 - INFO - Received ready request
2021-02-27 09:37:16,327 - INFO - Received signature help available request
2021-02-27 09:37:16,329 - INFO - Completion config: 50, detailing -1 candiates
2021-02-27 09:37:16,345 - INFO - Received event notification
2021-02-27 09:37:16,346 - DEBUG - Event name: FileReadyToParse
2021-02-27 09:37:16,346 - INFO - Adding buffer identifiers for file: /home/hyundeok/Programming/JavaScript/rest-api-example/js/client/src/components/UserList.vue
2021-02-27 09:37:16,349 - INFO - Received event notification
2021-02-27 09:37:16,349 - DEBUG - Event name: BufferVisit
2021-02-27 09:37:16,355 - INFO - Starting vueCompleter: ['/home/hyundeok/git/lsp-examples/vue/node_modules/.bin/vls']
2021-02-27 09:37:16,369 - INFO - vueCompleter started with PID 11926
2021-02-27 09:37:16,370 - DEBUG - TX: Sending message: b'Content-Length: 1132\r\n\r\n{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["plaintext","markdown"]},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"contentFormat":["plaintext","markdown"]},"signatureHelp":{"signatureInformation":{"documentationFormat":["plaintext","markdown"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true}},"workspace":{"applyEdit":true,"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"workspaceEdit":{"documentChanges":true}}},"initializationOptions":{},"processId":11871,"rootPath":"/home/hyundeok/Programming/JavaScript/rest-api-example/js/client","rootUri":"file:///home/hyundeok/Programming/JavaScript/rest-api-example/js/client"}}'
2021-02-27 09:37:16,450 - INFO - Received filetype completion available request
2021-02-27 09:37:17,883 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"Vetur initialized"}}'
2021-02-27 09:37:17,884 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":2,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}},"completionProvider":{"resolveProvider":true,"triggerCharacters":[".",":","<","\\"","\'","/","@","*"," "]},"signatureHelpProvider":{"triggerCharacters":["("]},"documentFormattingProvider":false,"hoverProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentSymbolProvider":true,"definitionProvider":true,"referencesProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"],"resolveProvider":true},"colorProvider":true,"executeCommandProvider":{"commands":[]},"foldingRangeProvider":true}}}'
2021-02-27 09:37:17,884 - INFO - None: Language server requires resolve request
2021-02-27 09:37:17,884 - INFO - None: Language server requires sync type of Incremental
2021-02-27 09:37:17,885 - DEBUG - vue: Server declares trigger characters: ['.', ':', '<', '"', "'", '/', '@', '*', ' ']
2021-02-27 09:37:17,885 - INFO - vue: Using trigger characters for semantic triggers: .,:,<,",',/,@,*, 
2021-02-27 09:37:17,885 - DEBUG - vue: Server declares signature trigger characters: ['(']
2021-02-27 09:37:17,885 - INFO - vue: Using characters for signature triggers: (
2021-02-27 09:37:17,886 - DEBUG - TX: Sending notification: b'Content-Length: 52\r\n\r\n{"jsonrpc":"2.0","method":"initialized","params":{}}'
2021-02-27 09:37:17,886 - DEBUG - TX: Sending notification: b'Content-Length: 86\r\n\r\n{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{}}}'
2021-02-27 09:37:17,886 - DEBUG - Refreshing file /home/hyundeok/Programming/JavaScript/rest-api-example/js/client/src/components/UserList.vue: State is Open/action Open
2021-02-27 09:37:17,887 - DEBUG - TX: Sending notification: b'Content-Length: 2996\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"vue","text":"<template>\\n    <input\\n      v-model=\\"title\\"\\n      type=\\"text\\"\\n      class=\\"form-control\\"\\n      placeholder=\\"Email\\"\\n    >\\n      <button\\n        class=\\"btn btn-outline-secondary\\"\\n        type=\\"button\\"\\n        @click=\\"searchByEmail\\"\\n      >\\n        Search\\n      </button>\\n  <h4>User List</h4>\\n  <ul class=\\"list-group\\">\\n    <li\\n      v-for=\\"(user, index) in users\\"\\n      :key=\\"index\\"\\n      class=\\"list-group-item\\"\\n      :class=\\"{ active: index == currentIndex }\\"\\n      @click=\\"setActiveUser(user, index)\\"\\n    >\\n      {{ user.email + \' | \' + user.password }}\\n    </li>\\n  </ul>\\n\\n  <button\\n    class=\\"m-3 btn btn-sm btn-danger\\"\\n    @click=\\"removeAllUsers\\"\\n  >\\n    Remove All\\n  </button>\\n  <div v-if=\\"currentUser\\">\\n    <h4>Tutorial</h4>\\n    <div>\\n      <label><strong>Title:</strong></label> {{ currentUser.title }}\\n    </div>\\n    <div>\\n      <label><strong>Description:</strong></label> {{ currentUser.description }}\\n    </div>\\n    <div>\\n      <label><strong>Status:</strong></label>\\n      {{ currentUser.published ? \\"Published\\" : \\"Pending\\" }}\\n    </div>\\n\\n    <a\\n      class=\\"badge badge-warning\\"\\n      :href=\\"\'/users/\' + currentUser.id\\"\\n    >\\n      Edit\\n    </a>\\n  </div>\\n  <div v-else>\\n    <br>\\n    <p>Please click on a user...</p>\\n  </div>\\n</template>\\n\\n<script>\\nimport UserDataService from \'../services/UserDataService\';\\nimport { Console } from \'../commons\';\\n\\nexport default {\\n  name: \'TutorialsList\',\\n  data() {\\n    return {\\n      users: [],\\n      currentUser: null,\\n      currentIndex: -1,\\n      email: \'\',\\n    };\\n  },\\n  mounted() {\\n    this.retrieveUsers();\\n  },\\n  methods: {\\n    retrieveUsers() {\\n      UserDataService.getAllUsers()\\n        .then((res) => {\\n          this.users = res.data;\\n        })\\n        .catch((e) => {\\n          Console.error(e);\\n        });\\n    },\\n\\n    refreshList() {\\n      this.retrieveUsers();\\n      this.currentUser = null;\\n      this.currentIndex = -1;\\n    },\\n\\n    setActiveUser(user, index) {\\n      this.currentUser = user;\\n      this.currentIndex = index;\\n    },\\n\\n    removeUser({ commit }) {\\n      UserDataService.unregisterByUser(this.currentUser)\\n        .then(() => {\\n          commit(\'DELETE_CURRENT_USER\');\\n        });\\n    },\\n\\n    removeAllUsers() {\\n      UserDataService.unregisterAll()\\n        .then(() => {\\n          this.refreshList();\\n        })\\n        .catch((e) => {\\n          Console.error(e);\\n        });\\n    },\\n\\n    searchByEmail() {\\n      UserDataService.search(this.email)\\n        .then((res) => {\\n          this.users = res.data;\\n        })\\n        .catch((e) => {\\n          Console.error(e);\\n        });\\n    },\\n  },\\n};\\n</script>\\n\\n<style>\\n</style>\\n","uri":"file:///home/hyundeok/Programming/JavaScript/rest-api-example/js/client/src/components/UserList.vue","version":1}}}'
2021-02-27 09:37:17,888 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"id":"46261606-742c-40d6-bf28-139d620c6c73","method":"textDocument/formatting","registerOptions":{"documentSelector":[{"language":"vue"}]}}]}}'
2021-02-27 09:37:17,888 - DEBUG - TX: Sending response: b'Content-Length: 38\r\n\r\n{"id":0,"jsonrpc":"2.0","result":null}'
2021-02-27 09:37:17,945 - DEBUG - Server reported: Vetur initialized
2021-02-27 09:37:18,359 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Find node_modules paths in /home/hyundeok/Programming/JavaScript/rest-api-example/js/client - 200ms"}}'
2021-02-27 09:37:18,359 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled typescript@4.2.2."}}'
2021-02-27 09:37:18,359 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled prettier."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled @starptech/prettyhtml."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled prettier-eslint."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled prettier-tslint."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled stylus-supremacy."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[INFO ] Loaded bundled @prettier/plugin-pug."}}'
2021-02-27 09:37:18,360 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":1,"method":"window/showMessageRequest","params":{"type":2,"message":"Vetur can\'t find `tsconfig.json` or `jsconfig.json` in /home/hyundeok/Programming/JavaScript/rest-api-example/js/client.","actions":[{"title":"Learn More"}]}}'
2021-02-27 09:37:18,360 - DEBUG - TX: Sending response: b'Content-Length: 77\r\n\r\n{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}'
2021-02-27 09:37:18,360 - DEBUG - Server reported: [INFO ] Find node_modules paths in /home/hyundeok/Programming/JavaScript/rest-api-example/js/client - 200ms
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled typescript@4.2.2.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled prettier.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled @starptech/prettyhtml.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled prettier-eslint.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled prettier-tslint.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled stylus-supremacy.
2021-02-27 09:37:18,361 - DEBUG - Server reported: [INFO ] Loaded bundled @prettier/plugin-pug.
2021-02-27 09:37:21,171 - ERROR - The language server communication channel closed unexpectedly. Issue a RestartServer command to recover.
Traceback (most recent call last):
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 363, in run
    self._ReadMessages()
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 482, in _ReadMessages
    data, read_bytes, headers = self._ReadHeaders( data )
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 546, in _ReadHeaders
    data = self.ReadData()
  File "/home/hyundeok/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 744, in ReadData
    raise RuntimeError( "Connection to server died" )
RuntimeError: Connection to server died
2021-02-27 09:37:22,182 - INFO - Received debug info request
puremourning commented 3 years ago

What about the vue completer logs?

airglow923 commented 3 years ago

With or without --clang-completer, the result has not changed from the initial run.

puremourning commented 3 years ago

Well that’s clearly the vue language server bugging and crashing.

Apologies for not seeing that in your excellent detailed issue report!

I think this needs to be taken up with the upstream server.

airglow923 commented 3 years ago

Thank you for your kind participation. I will file a bug for vetur instead.