Repository: autozimu/LanguageClient-neovim

Issue #947: invalid type: integer `0`, expected string or map
Created: 2020-01-08T15:02:11Z
Did you upgrade to latest plugin version?
Yes


Did you upgrade to/compile latest binary? Run shell command
Yes
bin/languageclient --version to get its version number.
languageclient 0.1.156 90e49e5


(Neovim users only) Did you check output of :checkhealth LanguageClient?
OK


Did you check troubleshooting?
Yes


Describe the bug
A clear and concise description of what the bug is.
After updating to the latest version in dein.vim, the title error occurred.
Environment

neovim/vim version (nvim --version or vim --version):

NVIM v0.4.3


This plugin version (git rev-parse --short HEAD):

90e49e5


This plugin's binary version (bin/languageclient --version):

languageclient 0.1.156 90e49e5


Minimal vimrc content (A minimal vimrc is the smallest vimrc that could
reproduce the issue. Refer to an example here):

set hidden	
set completeopt=menu	
set signcolumn=yes	

let g:LanguageClient_useVirtualText = 0	
let g:LanguageClient_autoStart = 1
let g:LanguageClient_loadSettings = 1

let g:LanguageClient_serverCommands = {	
    \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],	
    \ }	

let $RUST_BACKTRACE = 1
let g:LanguageClient_loggingLevel = 'INFO'
let g:LanguageClient_virtualTextPrefix = ''
let g:LanguageClient_loggingFile =  expand('~/.local/share/nvim/LanguageClient.log')
let g:LanguageClient_serverStderr = expand('~/.local/share/nvim/LanguageServer.log')


Language server link and version:

To Reproduce
Steps to reproduce the behavior:

$ git clone -b getting-started https://github.com/nabezokodaikon/rust-study.git
$ cd rust-study/ch03/bitonic-sorter
$ nvim src/first.rs
See error
23:50:15 WARN unnamed src/language_server_protocol.rs:2389 Failed to start language server automatically. invalid type: integer 0, expected string or map 

Current behavior
LanguageClient does not start.
Expected behavior
LanguageClient starts.
Additional context
It worked with tag v0.1.153.

Duplicate issue #990: Completion does not work since 0.1.156
Created: 2020-03-13T05:15:26Z
Did you upgrade to latest plugin version? YES
Did you upgrade to/compile latest binary? 0.1.156  Run shell command
bin/languageclient --version to get its version number.
(Neovim users only) Did you check output of :checkhealth LanguageClient? YES
Did you check troubleshooting? yes

Describe the bug
Completion does not work since commit 90e49e5 (binary version 0.1.156). I did bash install.sh whenever I changed commit. I uses deoplete.nvim as the completion engine.
There was warn message in the log:
 WARN unnamed src/language_server_protocol.rs:2389 Failed to start language server automatically. invalid type: integer `0`, expected string or map

With the same configuration, if I checkout commit d273439 (binary version 0.1.155, the parent of 90e49e5) and do bash install.sh, the problem is gone.
PS: may I know how can I compile the binary from the src?

Closing comment (2020-03-13T08:44:05Z): Can you share your config? I suspect this might be a dupe of #947.
To compile the binary from source just step on the folder and run make release, that should compile the binary in release mode and place the binary in the LanguageClient-neovim/bin folder.