autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 273 forks source link

Navigation blocked when long error message #361

Closed stouf closed 6 years ago

stouf commented 6 years ago

Description

An error message (related to the code being edited) shows up at the bottom of the vim window and blocks the navigation asking me to hit the ENTER key to continue.

Steps to reproduce

  1. introduce an error in the JavaScript code being edited
  2. make sure the error message is larger than the vim window
  3. navigate (with word jumping or with the h-j-k-l keys) to the line where the error is
  4. the error gets displayed at the bottom of the vim window
  5. try to keep navigating through
  6. vim asks you to hit the ENTER key to continue at the bottom of the vim window

Notes

Environment information

Logs

Server

Empty

Client


2018-04-05T15:51:40.745478853+09:00 DEBUG languageclient::vim - state.id: 4 ==> 5
2018-04-05T15:51:40.745606226+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["[!!get(g:, 'LanguageClient_autoStart', 1), get(g:, 'LanguageClient_serverCommands', {}), get(g:, 'LanguageClient_selectionUI', v:null), get(g:, 'LanguageClient_trace', v:null), get(g:, 'LanguageClient_settingsPath', '.vim/settings.json'), !!get(g:, 'LanguageClient_loadSettings', 1), get(g:, 'LanguageClient_rootMarkers', v:null), get(g:, 'LanguageClient_changeThrottle', v:null), !!get(g:, 'LanguageClient_diagnosticsEnable', 1), get(g:, 'LanguageClient_diagnosticsList', v:null), get(g:, 'LanguageClient_diagnosticsDisplay', {}), get(g:, 'LanguageClient_windowLogMessageLevel', 'Warning'), has('nvim')]"],"id":5}
2018-04-05T15:51:40.746030401+09:00 INFO languageclient::vim - <= {"id":5,"jsonrpc":"2.0","result":[1,{"javascript":["flow-language-server","--stdio"]},null,null,".vim/settings.json",1,null,null,1,null,{},"Warning",0]}
2018-04-05T15:51:40.746390062+09:00 DEBUG languageclient::vim - state.id: 5 ==> 6
2018-04-05T15:51:40.746490599+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["get(g:, 'loaded_fzf')"],"id":6}
2018-04-05T15:51:40.746944382+09:00 INFO languageclient::vim - <= {"id":6,"jsonrpc":"2.0","result":1}
2018-04-05T15:51:40.747374309+09:00 DEBUG languageclient::vim - state.serverCommands.javascript: null ==> ["flow-language-server","--stdio"]
2018-04-05T15:51:40.747390413+09:00 DEBUG languageclient::vim - state.loadSettings: false ==> true
2018-04-05T15:51:40.747396490+09:00 DEBUG languageclient::vim - state.trace: null ==> "off"
2018-04-05T15:51:40.747401786+09:00 DEBUG languageclient::vim - state.selectionUI: "LocationList" ==> "FZF"
2018-04-05T15:51:40.747974773+09:00 DEBUG languageclient::vim - state.child_ids.javascript: null ==> 16099
2018-04-05T15:51:40.748027867+09:00 INFO languageclient::languageclient - End languageClient/startServer
2018-04-05T15:51:40.748036511+09:00 INFO languageclient::languageclient - Define signs
2018-04-05T15:51:40.748062849+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo | execute 'sign define LanguageClientInformation text=ℹ texthl=ALEInfoSign' | execute 'sign define LanguageClientError text=✖ texthl=ALEErrorSign' | execute 'sign define LanguageClientHint text=➤ texthl=ALEInfoSign' | execute 'sign define LanguageClientWarning text=⚠ texthl=ALEWarningSign'"]}
2018-04-05T15:51:40.748076505+09:00 INFO languageclient::languageclient - Define signs
2018-04-05T15:51:40.748086720+09:00 INFO languageclient::languageclient - Begin initialize
2018-04-05T15:51:40.748093726+09:00 INFO languageclient::languageclient - gather_args: [LanguageId, Filename] = [String("javascript"), String("/tmp/test-error/index.js")]
2018-04-05T15:51:40.748104819+09:00 INFO languageclient::languageclient - Some arguments are not available. Requesting from vim. Keys: ["rootPath", "hasSnippetSupport"]. Exps: ["v:null", "s:hasSnippetSupport()"]
2018-04-05T15:51:40.748224255+09:00 DEBUG languageclient::vim - state.id: 6 ==> 7
2018-04-05T15:51:40.748352578+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["[v:null, s:hasSnippetSupport()]"],"id":7}
2018-04-05T15:51:40.749140309+09:00 INFO languageclient::vim - <= {"id":7,"jsonrpc":"2.0","result":[null,0]}
2018-04-05T15:51:40.749478684+09:00 INFO languageclient::languageclient - gather_args: [("rootPath", "v:null"), ("hasSnippetSupport", "s:hasSnippetSupport()")] = [Null, Number(0)]
2018-04-05T15:51:40.749524736+09:00 WARN languageclient::utils - Unknown project type. Fallback to use dir as project root: Ok("/tmp/test-error")
2018-04-05T15:51:40.749534417+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echomsg 'LanguageClient project root: /tmp/test-error'"]}
2018-04-05T15:51:40.749544082+09:00 INFO languageclient::languageclient - Project root: /tmp/test-error
2018-04-05T15:51:40.749636569+09:00 DEBUG languageclient::vim - state.roots.javascript: null ==> "/tmp/test-error"
2018-04-05T15:51:40.749658120+09:00 DEBUG languageclient::languageclient - Project settings: {}
2018-04-05T15:51:40.749662853+09:00 DEBUG languageclient::languageclient - Project settings.initializationOptions: null
2018-04-05T15:51:40.749741160+09:00 DEBUG languageclient::vim - state.id: 7 ==> 8
2018-04-05T15:51:40.749832407+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{"commitCharactersSupport":null,"documentationFormat":null,"snippetSupport":false},"dynamicRegistration":null}}},"initializationOptions":null,"processId":16090,"rootPath":"/tmp/test-error","rootUri":"file:///tmp/test-error","trace":"off"},"id":8}
2018-04-05T15:51:41.114837294+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.113] [INFO] flow-versions - Determining the version of flow for your project..."}}
2018-04-05T15:51:41.114982157+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.132681733+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.131] [WARN] flow-versions - No valid version of flow specified in .flowconfig or flow-bin dependency of package.json. It is strongly recommended you specify a version in your .flowconfig."}}
2018-04-05T15:51:41.132779291+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.132] [INFO] flow-versions - Looking for a version of flow matching *..."}}
2018-04-05T15:51:41.132843936+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.132953891+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.150257985+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.149] [INFO] nuclide-commons/process - 8ms: which flow"}}
2018-04-05T15:51:41.150395062+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.220524757+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.220] [INFO] nuclide-commons/process - 67ms: /usr/bin/flow version --json"}}
2018-04-05T15:51:41.220646373+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.223057638+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.222] [INFO] flow-versions - Using the system flow at /usr/bin/flow."}}
2018-04-05T15:51:41.223159167+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.225972068+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.225] [INFO] nuclide-flow-rpc - [unknown]: Flow server in /tmp/test-error"}}
2018-04-05T15:51:41.226070640+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.226883437+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Flow status: unknown"}}
2018-04-05T15:51:41.226976445+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.227087084+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.226] [INFO] Diagnostics - Beginning to observe diagnostics"}}
2018-04-05T15:51:41.227175234+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.229158732+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.229] [INFO] nuclide-flow-rpc - Creating Flow IDE connection stream"}}
2018-04-05T15:51:41.229227614+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.229504992+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.229] [INFO] nuclide-flow-rpc - Got a subscriber for the Flow IDE connection stream"}}
2018-04-05T15:51:41.229597741+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.230051345+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.229] [INFO] nuclide-flow-rpc - Attempting to start IDE connection..."}}
2018-04-05T15:51:41.230145800+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.233178850+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.233] [INFO] index - Flow language server started"}}
2018-04-05T15:51:41.233274584+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.236845352+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","id":8,"result":{"capabilities":{"textDocumentSync":2,"definitionProvider":true,"documentSymbolProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":["."]},"hoverProvider":true}}}
2018-04-05T15:51:41.237249180+09:00 DEBUG languageclient::vim - state.capabilities.javascript: null ==> {"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":["."]},"definitionProvider":true,"documentSymbolProvider":true,"hoverProvider":true,"textDocumentSync":2}}
2018-04-05T15:51:41.237274446+09:00 INFO languageclient::languageclient - End initialize
2018-04-05T15:51:41.237278564+09:00 INFO languageclient::languageclient - Begin register NCM source
2018-04-05T15:51:41.237397391+09:00 DEBUG languageclient::vim - state.id: 8 ==> 9
2018-04-05T15:51:41.237500142+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["exists('g:cm_matcher')"],"id":9}
2018-04-05T15:51:41.238106928+09:00 INFO languageclient::vim - <= {"id":9,"jsonrpc":"2.0","result":0}
2018-04-05T15:51:41.238368900+09:00 INFO languageclient::languageclient - Begin textDocument/didOpen
2018-04-05T15:51:41.238381281+09:00 INFO languageclient::languageclient - Some arguments are not available. Requesting from vim. Keys: ["text"]. Exps: ["s:Text()"]
2018-04-05T15:51:41.238497714+09:00 DEBUG languageclient::vim - state.id: 9 ==> 10
2018-04-05T15:51:41.238598671+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["[s:Text()]"],"id":10}
2018-04-05T15:51:41.239141847+09:00 INFO languageclient::vim - <= {"id":10,"jsonrpc":"2.0","result":[["'use strict';","// @flow","","const anObject = {","  foo: 'bar'","};","","const a = anObject.aPropertyThatDoesNotExist;","","const notImportantLine = 1 + 1;",""]]}
2018-04-05T15:51:41.239409741+09:00 INFO languageclient::languageclient - gather_args: [Buftype, LanguageId, Filename, Text] = [String(""), String("javascript"), String("/tmp/test-error/index.js"), Array([String("\'use strict\';"), String("// @flow"), String(""), String("const anObject = {"), String("  foo: \'bar\'"), String("};"), String(""), String("const a = anObject.aPropertyThatDoesNotExist;"), String(""), String("const notImportantLine = 1 + 1;"), String("")])]
2018-04-05T15:51:41.239556289+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"javascript","text":"'use strict';\n// @flow\n\nconst anObject = {\n  foo: 'bar'\n};\n\nconst a = anObject.aPropertyThatDoesNotExist;\n\nconst notImportantLine = 1 + 1;\n","uri":"file:///tmp/test-error/index.js","version":0}}}
2018-04-05T15:51:41.239685083+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["setlocal omnifunc=LanguageClient#complete"]}
2018-04-05T15:51:41.239699783+09:00 INFO languageclient::languageclient - End textDocument/didOpen
2018-04-05T15:51:41.239705906+09:00 INFO languageclient::languageclient - Begin textDocument/didChange
2018-04-05T15:51:41.239715233+09:00 INFO languageclient::languageclient - gather_args: [Buftype, LanguageId, Filename] = [String(""), String("javascript"), String("/tmp/test-error/index.js")]
2018-04-05T15:51:41.239732496+09:00 INFO languageclient::languageclient - Some arguments are not available. Requesting from vim. Keys: ["text"]. Exps: ["s:Text()"]
2018-04-05T15:51:41.239858795+09:00 DEBUG languageclient::vim - state.id: 10 ==> 11
2018-04-05T15:51:41.240000896+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["[s:Text()]"],"id":11}
2018-04-05T15:51:41.240933379+09:00 INFO languageclient::vim - <= {"id":11,"jsonrpc":"2.0","result":[["'use strict';","// @flow","","const anObject = {","  foo: 'bar'","};","","const a = anObject.aPropertyThatDoesNotExist;","","const notImportantLine = 1 + 1;",""]]}
2018-04-05T15:51:41.241157897+09:00 INFO languageclient::languageclient - gather_args: [Text] = [Array([String("\'use strict\';"), String("// @flow"), String(""), String("const anObject = {"), String("  foo: \'bar\'"), String("};"), String(""), String("const a = anObject.aPropertyThatDoesNotExist;"), String(""), String("const notImportantLine = 1 + 1;"), String("")])]
2018-04-05T15:51:41.241188186+09:00 INFO languageclient::languageclient - Texts equal. Skipping didChange.
2018-04-05T15:51:41.241355722+09:00 DEBUG languageclient::vim - state.id: 11 ==> 12
2018-04-05T15:51:41.241532349+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["exists('#User#LanguageClientStarted')"],"id":12}
2018-04-05T15:51:41.242084733+09:00 INFO languageclient::vim - <= {"id":12,"jsonrpc":"2.0","result":0}
2018-04-05T15:51:41.242291649+09:00 INFO languageclient::languageclient - End languageClient/handleBufReadPost
2018-04-05T15:51:41.246258417+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.246] [INFO] nuclide-commons/process - 10ms: /usr/lib/node_modules/flow-bin/flow-linux64-v0.69.0/flow status --retry-if-init false --retries 0 --no-auto-start --from nuclide"}}
2018-04-05T15:51:41.246413236+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.247509696+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.247] [INFO] nuclide-flow-rpc - [not running]: Flow server in /tmp/test-error"}}
2018-04-05T15:51:41.247613596+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.248702876+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Flow status: not running"}}
2018-04-05T15:51:41.248771428+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.268370125+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.268] [INFO] nuclide-commons/process - 4ms: which nice"}}
2018-04-05T15:51:41.268493079+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.270033334+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":1,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:41.270115270+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:41.270124437+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(1)]
2018-04-05T15:51:41.270258365+09:00 DEBUG languageclient::vim - state.last_cursor_line: 0 ==> 1
2018-04-05T15:51:41.270363125+09:00 DEBUG languageclient::vim - state.last_line_diagnostic: " " ==> ""
2018-04-05T15:51:41.270455958+09:00 DEBUG languageclient::vim - state.id: 12 ==> 13
2018-04-05T15:51:41.270548647+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["&columns"],"id":13}
2018-04-05T15:51:41.270932568+09:00 INFO languageclient::vim - <= {"id":13,"jsonrpc":"2.0","result":130}
2018-04-05T15:51:41.271166979+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo ''"]}
2018-04-05T15:51:41.271181391+09:00 INFO languageclient::languageclient - End languageClient/handleCursorMoved
2018-04-05T15:51:41.272787443+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.272] [INFO] nuclide-commons/process - 2ms: which ionice"}}
2018-04-05T15:51:41.272869340+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.277513670+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:41.277] [INFO] nuclide-commons/process - 10ms: /usr/lib/node_modules/flow-bin/flow-linux64-v0.69.0/flow status --retry-if-init false --retries 0 --no-auto-start --from nuclide"}}
2018-04-05T15:51:41.277598630+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:41.473073281+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":2,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:41.473237896+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:41.473266677+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(2)]
2018-04-05T15:51:41.473503035+09:00 DEBUG languageclient::vim - state.last_cursor_line: 1 ==> 2
2018-04-05T15:51:41.638076471+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":3,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:41.638220191+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:41.638230583+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(3)]
2018-04-05T15:51:41.638370656+09:00 DEBUG languageclient::vim - state.last_cursor_line: 2 ==> 3
2018-04-05T15:51:41.796033490+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":4,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:41.796172281+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:41.796185281+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(4)]
2018-04-05T15:51:41.796327691+09:00 DEBUG languageclient::vim - state.last_cursor_line: 3 ==> 4
2018-04-05T15:51:42.026998473+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":5,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:42.027121058+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:42.027134426+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(5)]
2018-04-05T15:51:42.027272574+09:00 DEBUG languageclient::vim - state.last_cursor_line: 4 ==> 5
2018-04-05T15:51:42.224229809+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":6,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:42.224416341+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:42.224434871+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(6)]
2018-04-05T15:51:42.224615193+09:00 DEBUG languageclient::vim - state.last_cursor_line: 5 ==> 6
2018-04-05T15:51:42.291635998+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:42.291] [INFO] nuclide-commons/process - 9ms: /usr/lib/node_modules/flow-bin/flow-linux64-v0.69.0/flow status --retry-if-init false --retries 0 --no-auto-start --from nuclide"}}
2018-04-05T15:51:42.291739915+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.291912932+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:42.291] [INFO] nuclide-flow-rpc - [ready]: Flow server in /tmp/test-error"}}
2018-04-05T15:51:42.291969814+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.291981897+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Flow status: ready"}}
2018-04-05T15:51:42.292066711+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.303325569+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:42.303] [INFO] nuclide-flow-rpc - Flow IDE process stderr:  Connecting to server...\n"}}
2018-04-05T15:51:42.303422690+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.303478220+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:42.303] [INFO] nuclide-flow-rpc - Flow IDE process stderr:  Connected to server\nreceived subscribe request\n"}}
2018-04-05T15:51:42.303573189+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.304685462+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"[2018-04-05 15:51:42.304] [INFO] nuclide-flow-rpc - Flow IDE process stderr:  sent diagnostics notification\n"}}
2018-04-05T15:51:42.304780777+09:00 INFO languageclient::languageclient - Begin window/logMessage
2018-04-05T15:51:42.307700726+09:00 INFO languageclient::vim - <= {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/test-error/index.js","diagnostics":[{"range":{"start":{"line":7,"character":19},"end":{"line":7,"character":44}},"severity":1,"source":"Flow","relatedLocations":[{"message":"[1]","location":{"uri":"/tmp/test-error/index.js","range":{"start":{"line":3,"character":17},"end":{"line":5,"character":1}}}}],"message":"Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1]."}]}}
2018-04-05T15:51:42.307797918+09:00 INFO languageclient::languageclient - Begin textDocument/publishDiagnostics
2018-04-05T15:51:42.307986393+09:00 DEBUG languageclient::vim - state.diagnostics./tmp/test-error/index.js: null ==> [{"code":null,"message":"Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1].","range":{"end":{"character":44,"line":7},"start":{"character":19,"line":7}},"severity":1,"source":"Flow"}]
2018-04-05T15:51:42.308008147+09:00 INFO languageclient::languageclient - End textDocument/publishDiagnostics
2018-04-05T15:51:42.308108822+09:00 DEBUG languageclient::vim - state.id: 13 ==> 14
2018-04-05T15:51:42.308216817+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["s:Expand('%:p')"],"id":14}
2018-04-05T15:51:42.308664943+09:00 INFO languageclient::vim - <= {"id":14,"jsonrpc":"2.0","result":"/tmp/test-error/index.js"}
2018-04-05T15:51:42.309225255+09:00 DEBUG languageclient::vim - state.signs./tmp/test-error/index.js: null ==> [{"id":75028,"line":8,"severity":1,"text":"const a = anObject.aPropertyThatDoesNotExist;"}]
2018-04-05T15:51:42.309242819+09:00 INFO languageclient::languageclient - Command to update signs: echo | execute 'sign place 75028 line=8 name=LanguageClientError file=/tmp/test-error/index.js'
2018-04-05T15:51:42.309248692+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo | execute 'sign place 75028 line=8 name=LanguageClientError file=/tmp/test-error/index.js'"]}
2018-04-05T15:51:42.309435178+09:00 DEBUG languageclient::vim - state.id: 14 ==> 15
2018-04-05T15:51:42.309641766+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"setqflist","params":[[{"col":20,"filename":"/tmp/test-error/index.js","lnum":8,"nr":null,"text":"Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1].","type":"E"}]],"id":15}
2018-04-05T15:51:42.310847928+09:00 INFO languageclient::vim - <= {"id":15,"jsonrpc":"2.0","result":0}
2018-04-05T15:51:42.311219149+09:00 DEBUG languageclient::vim - state.id: 15 ==> 16
2018-04-05T15:51:42.311458806+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["has('nvim')"],"id":16}
2018-04-05T15:51:42.322139378+09:00 INFO languageclient::vim - <= {"id":16,"jsonrpc":"2.0","result":0}
2018-04-05T15:51:42.322442999+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:42.322458487+09:00 INFO languageclient::languageclient - Some arguments are not available. Requesting from vim. Keys: ["buftype", "filename", "line"]. Exps: ["&buftype", "s:Expand(\'%:p\')", "line(\'.\') - 1"]
2018-04-05T15:51:42.322642761+09:00 DEBUG languageclient::vim - state.id: 16 ==> 17
2018-04-05T15:51:42.322777824+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["[&buftype, s:Expand('%:p'), line('.') - 1]"],"id":17}
2018-04-05T15:51:42.323127129+09:00 INFO languageclient::vim - <= {"id":17,"jsonrpc":"2.0","result":["","/tmp/test-error/index.js",6]}
2018-04-05T15:51:42.323351403+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(6)]
2018-04-05T15:51:42.323467706+09:00 DEBUG languageclient::vim - state.id: 17 ==> 18
2018-04-05T15:51:42.323572624+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["exists('#User#LanguageClientDiagnosticsChanged')"],"id":18}
2018-04-05T15:51:42.323971548+09:00 INFO languageclient::vim - <= {"id":18,"jsonrpc":"2.0","result":0}
2018-04-05T15:51:42.416068707+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":7,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:42.416255267+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:42.416273752+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(7)]
2018-04-05T15:51:42.416513756+09:00 DEBUG languageclient::vim - state.last_cursor_line: 6 ==> 7
2018-04-05T15:51:42.416676159+09:00 DEBUG languageclient::vim - state.last_line_diagnostic: "" ==> "[Error]Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1]."
2018-04-05T15:51:42.416817069+09:00 DEBUG languageclient::vim - state.id: 18 ==> 19
2018-04-05T15:51:42.416951147+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["&columns"],"id":19}
2018-04-05T15:51:42.417449162+09:00 INFO languageclient::vim - <= {"id":19,"jsonrpc":"2.0","result":130}
2018-04-05T15:51:42.417787383+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo '[Error]Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in o...'"]}
2018-04-05T15:51:42.417811659+09:00 INFO languageclient::languageclient - End languageClient/handleCursorMoved
2018-04-05T15:51:43.410115620+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":8,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:43.410280232+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:43.410301835+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(8)]
2018-04-05T15:51:43.410533873+09:00 DEBUG languageclient::vim - state.last_cursor_line: 7 ==> 8
2018-04-05T15:51:43.410700785+09:00 DEBUG languageclient::vim - state.last_line_diagnostic: "[Error]Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1]." ==> ""
2018-04-05T15:51:43.410853105+09:00 DEBUG languageclient::vim - state.id: 19 ==> 20
2018-04-05T15:51:43.411009864+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"eval","params":["&columns"],"id":20}
2018-04-05T15:51:43.411038008+09:00 INFO languageclient::vim - <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":9,"buftype":"","filename":"/tmp/test-error/index.js"}}
2018-04-05T15:51:43.411152002+09:00 INFO languageclient::languageclient - Begin languageClient/handleCursorMoved
2018-04-05T15:51:43.411168173+09:00 INFO languageclient::languageclient - gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-error/index.js"), Number(9)]
2018-04-05T15:51:43.411363090+09:00 DEBUG languageclient::vim - state.last_cursor_line: 8 ==> 9
2018-04-05T15:51:43.412166104+09:00 INFO languageclient::vim - <= {"id":20,"jsonrpc":"2.0","result":130}
2018-04-05T15:51:43.412430919+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo ''"]}
2018-04-05T15:51:43.412445587+09:00 INFO languageclient::languageclient - End languageClient/handleCursorMoved
2018-04-05T15:51:46.485059462+09:00 INFO languageclient::vim - <= {"method":"exit","jsonrpc":"2.0","params":{"languageId":"javascript","buftype":""}}
2018-04-05T15:51:46.485223689+09:00 INFO languageclient::languageclient - Begin exit
2018-04-05T15:51:46.485237866+09:00 INFO languageclient::languageclient - gather_args: [LanguageId] = [String("javascript")]
2018-04-05T15:51:46.485250650+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"exit","params":null}
2018-04-05T15:51:46.485625377+09:00 DEBUG languageclient::vim - state.last_cursor_line: 9 ==> 0
2018-04-05T15:51:46.485634950+09:00 DEBUG languageclient::vim - state.child_ids.javascript: 16099 ==> null
2018-04-05T15:51:46.485790076+09:00 DEBUG languageclient::vim - state.signs./tmp/test-error/index.js: [{"id":75028,"line":8,"severity":1,"text":"const a = anObject.aPropertyThatDoesNotExist;"}] ==> null
2018-04-05T15:51:46.485801227+09:00 DEBUG languageclient::vim - state.text_documents./tmp/test-error/index.js: {"languageId":"javascript","text":"'use strict';\n// @flow\n\nconst anObject = {\n  foo: 'bar'\n};\n\nconst a = anObject.aPropertyThatDoesNotExist;\n\nconst notImportantLine = 1 + 1;\n","uri":"file:///tmp/test-error/index.js","version":0} ==> null
2018-04-05T15:51:46.485811304+09:00 DEBUG languageclient::vim - state.roots.javascript: "/tmp/test-error" ==> null
2018-04-05T15:51:46.485816259+09:00 DEBUG languageclient::vim - state.diagnostics./tmp/test-error/index.js: [{"code":null,"message":"Cannot get `anObject.aPropertyThatDoesNotExist` because property `aPropertyThatDoesNotExist` is missing in object literal [1].","range":{"end":{"character":44,"line":7},"start":{"character":19,"line":7}},"severity":1,"source":"Flow"}] ==> null
2018-04-05T15:51:46.485840985+09:00 INFO languageclient::vim - => {"jsonrpc":"2.0","method":"execute","params":["echo | execute 'sign unplace 75028 file=/tmp/test-error/index.js'"]}
2018-04-05T15:51:46.486048124+09:00 DEBUG languageclient::vim - state.id: 20 ==> 21
2018-04-05T15:51:48.044177995+09:00 ERROR languageclient::languageclient - Error: NoLanguageServer { languageId: "vim" }
2018-04-05T15:51:48.044229135+09:00 ERROR languageclient::languageclient - Error: ErrorMessage { msg: "No project root found! languageId: vim" }

Code triggering these logs

'use strict';
// @flow

const anObject = {
  foo: 'bar'
};

const a = anObject.aPropertyThatDoesNotExist;

const notImportantLine = 1 + 1;
autozimu commented 6 years ago

I cannot reproduce here locally.

From the log though, the line is truncated as expected

echo '[Error]Cannot get anObject.aPropertyThatDoesNotExist because property aPropertyThatDoesNotExist is missing in o...'

Might be the column width reported by vim is not consistent with the actual width.

What is your detailed vim version number?

stouf commented 6 years ago

Thanks for taking a look at it :)

I cannot reproduce here locally.

Yeah, I got a friend of mine to give it a shot and it didn't occur for him :( Maybe it's related to my environment? If it helps, you can find my full vimrc file there: https://github.com/stouf/my-dev-configs/blob/vim-language-server/vim/vimrc

What is your detailed vim version number?

8.0.1542-2

autozimu commented 6 years ago

I'm not looking into full vimrc.

stouf commented 6 years ago

I'm not asking for a vimrc review, I just posted it in case it helps ;-) Why did you close this issue by the way?

autozimu commented 6 years ago

I closed it because it couldn’t be reproduced with provided min vimrc and reproduction steps. There is nothing can be done for this.

You can reopen if you could provide reproduction steps.

On Thu, Apr 5, 2018 at 23:33 stouf notifications@github.com wrote:

I'm not asking for a vimrc review, I just posted it in case it helps ;-) Why did you close the issue by the way?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/autozimu/LanguageClient-neovim/issues/361#issuecomment-379161616, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYt72Z8AzwCiHxLpAhh8X0457jfV_ikks5tlwwlgaJpZM4TH8Wu .

stouf commented 6 years ago

Got it. Thank you for looking into it anyway.

stouf commented 6 years ago

From the log though, the line is truncated as expected

Sorry for coming back on this, but I just realized the error message actually does not get truncated.

screenshot from 2018-04-06 18-13-12

The expected message is as follow:

screenshot from 2018-04-06 18-15-25

Not sure if this helps...

stouf commented 6 years ago

I put :set cmdheight=2 in my vimrc and here is the result:

screenshot from 2018-04-06 18-26-10

This time it can truncate the message and does not block the navigation through the file. It seems that it originally doesn't have enough space to add the three dots when it truncates...?

I also tried to use the following options:

But none of them could prevent the "Hit ENTER to continue" message to show up.

stouf commented 6 years ago

Also, when the preview window appears, the filename of the current buffer and the line and column numbers apparently move one line up, leaving more space to the error message to be displayed. As a result, the error message is successfully truncated and there is no "Hit ENTER to continue" message blocking the navigation.

screenshot from 2018-04-06 18-50-54

autozimu commented 6 years ago

So, setting cmdheight=2 solves the issue?

autozimu commented 6 years ago

Should resolve with https://github.com/autozimu/LanguageClient-neovim/commit/d5326305b00773d9ca79a2dca9e83dd925c5903d

stouf commented 6 years ago

I updated to the latest version but it's apparently not solving the issue here :( It seems that now, the message doesn't even get truncated.

With set cmdheight=2

screenshot from 2018-04-08 11-58-11

With set cmdheight=3, we can see the actual output and see that the message doesn't get truncated.

screenshot from 2018-04-08 12-13-44

Before https://github.com/autozimu/LanguageClient-neovim/commit/d5326305b00773d9ca79a2dca9e83dd925c5903d, as we can see with https://github.com/autozimu/LanguageClient-neovim/issues/361#issuecomment-379199697, setting cmdheight to 2 would reveal the actual output and we would see that the message gets truncated but was still a little too long to be displayed, causing the "Hit ENTER to continue" message to appear.

Maybe I'm missing something?

autozimu commented 6 years ago

Please attach again the log file.

stouf commented 6 years ago

Here are the logs:

/tmp/LanguageClient.log:

#######
LanguageClient 0.1.67 
#######
09:31:35 WARN Handler-main src/utils.rs:69 Unknown project type. Fallback to use dir as project root: Ok("/tmp/test-flow")
09:31:42 INFO Handler-main src/languageclient.rs:1713 End languageClient/setLoggingLevel
09:31:42 INFO Handler-main src/vim.rs:97 => {"jsonrpc":"2.0","result":null,"id":1}
09:31:43 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":1,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:43 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:43 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(1)]
09:31:43 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 0 ==> 1
09:31:43 DEBUG Handler-main src/vim.rs:273 state.last_line_diagnostic: " " ==> ""
09:31:43 DEBUG Handler-main src/vim.rs:273 state.id: 13 ==> 14
09:31:43 INFO Handler-main src/vim.rs:128 => {"jsonrpc":"2.0","method":"s:EchoEllipsis","params":[""],"id":14}
09:31:43 INFO main src/vim.rs:336 <= {"id":14,"jsonrpc":"2.0","result":0}
09:31:43 INFO Handler-main src/languageclient.rs:1871 End languageClient/handleCursorMoved
09:31:43 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":2,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:43 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:43 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(2)]
09:31:43 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 1 ==> 2
09:31:43 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":3,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:43 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:43 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(3)]
09:31:43 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 2 ==> 3
09:31:43 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":4,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:43 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:43 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(4)]
09:31:43 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 3 ==> 4
09:31:44 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":5,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:44 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:44 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(5)]
09:31:44 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 4 ==> 5
09:31:44 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":6,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:44 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:44 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(6)]
09:31:44 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 5 ==> 6
09:31:44 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":7,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:44 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:44 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(7)]
09:31:44 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 6 ==> 7
09:31:44 DEBUG Handler-main src/vim.rs:273 state.last_line_diagnostic: "" ==> "[Error]Cannot get `myObject.asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` because property `asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` is missing in object literal [1]."
09:31:44 DEBUG Handler-main src/vim.rs:273 state.id: 14 ==> 15
09:31:44 INFO Handler-main src/vim.rs:128 => {"jsonrpc":"2.0","method":"s:EchoEllipsis","params":["[Error]Cannot get `myObject.asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` because property `asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` is missing in object literal [1]."],"id":15}
09:31:44 INFO main src/vim.rs:336 <= {"id":15,"jsonrpc":"2.0","result":0}
09:31:44 INFO Handler-main src/languageclient.rs:1871 End languageClient/handleCursorMoved
09:31:45 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":8,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:45 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:45 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(8)]
09:31:45 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 7 ==> 8
09:31:45 DEBUG Handler-main src/vim.rs:273 state.last_line_diagnostic: "[Error]Cannot get `myObject.asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` because property `asvnaswejklbvnaskbvasjkbvasbnvkjasbvkjqwbvjiowbejkvbqwejkbvskajbvaskljbvaskjb` is missing in object literal [1]." ==> ""
09:31:45 DEBUG Handler-main src/vim.rs:273 state.id: 15 ==> 16
09:31:45 INFO Handler-main src/vim.rs:128 => {"jsonrpc":"2.0","method":"s:EchoEllipsis","params":[""],"id":16}
09:31:45 INFO main src/vim.rs:336 <= {"method":"languageClient/handleCursorMoved","jsonrpc":"2.0","params":{"languageId":"javascript","line":9,"buftype":"","filename":"/tmp/test-flow/index.js"}}
09:31:45 INFO Handler-main src/languageclient.rs:1837 Begin languageClient/handleCursorMoved
09:31:45 INFO Handler-main src/languageclient.rs:47 gather_args: [Buftype, Filename, Line] = [String(""), String("/tmp/test-flow/index.js"), Number(9)]
09:31:45 DEBUG Handler-main src/vim.rs:273 state.last_cursor_line: 8 ==> 9
09:31:45 INFO main src/vim.rs:336 <= {"id":16,"jsonrpc":"2.0","result":0}
09:31:45 INFO Handler-main src/languageclient.rs:1871 End languageClient/handleCursorMoved

(/tmp/LanguageServer.log is empty)

autozimu commented 6 years ago

You probably need to ticker with the magic number here.

https://github.com/autozimu/LanguageClient-neovim/blob/6c545eba610d3b399bf3f7a67b5023253420a1e8/autoload/LanguageClient.vim#L12

Please file a PR if this number doesn't work for you.

stouf commented 6 years ago

Awesome! I confirm it has fixed the issue. Thank you very much! :D