artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim
Vim License
973 stars 83 forks source link

Cannot start server #344

Closed brailsmt closed 7 years ago

brailsmt commented 7 years ago

Actual behavior (Required!)

On save of App.java from a newly created maven project.

line   17:
E121: Undefined variable: port
E116: Invalid arguments for function add
Error detected while processing function <SNR>110_RemoveCurrentFromCache[8]..javacomplete#server#Communicate[2]..javacomplete#server#Start:
line   17:
E121: Undefined variable: port
E116: Invalid arguments for function add
Error detected while processing function <SNR>110_RemoveCurrentFromCache[13]..javacomplete#server#Communicate[2]..javacomplete#server#Start:
line   17:
E121: Undefined variable: port
E116: Invalid arguments for function add

Expected behavior (Required!)

Success!

The steps to reproduce actual behavior (Required!)

  1. mvn
  2. vim $(find . -name App.java)
  3. :w

Environment (Required!)

Optional features included (+) or not (-): +acl +iconv +jemalloc +tui For differences from Vim, see :help vim-differences

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.0_1/share/nvim"


## Q&A
* Yes, I tried minimal .vimrc configuraion.
* Yes, I have enabled logs with `JCdebugEnableLogs` and can put here content of `JCdebugGetLogContent` command, if you need.
* Even, if you wish, I can set `g:JavaComplete_JavaviDebug` to `1`, than set `g:JavaComplete_JavaviLogfileDirectory`, and put here server logs, too.

## Screenshot (Optional)

## The output of :redir and :message (Optional)

"unit-test-example/src/main/java/com/cerner/devacademy/App.java" 13L, 184C function javacomplete#Start[1]..javacomplete#server#Start[1]..115_Poll[9]..provider#python#Call[9]..remote#host#Require[10]..provider#pythonx#Require, line 15 Vim(if):ch 2 was closed by the client Traceback (most recent call last): File "", line 1, in ImportError: No module named neovim Failed to load python host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_FILE set and opening the generated log file. Also, the host stderr is available in messages. Error detected while processing function javacomplete#Start[1]..javacomplete#server#Start: line 17: E121: Undefined variable: port E116: Invalid arguments for function add "src/main/java/com/cerner/devacademy/App.java" 13L, 184C written Error detected while processing function 110_RemoveCurrentFromCache[7]..javacomplete#server#Communicate[2]..javacomplete#server#Start: line 17: E121: Undefined variable: port E116: Invalid arguments for function add Error detected while processing function 110_RemoveCurrentFromCache[8]..javacomplete#server#Communicate[2]..javacomplete#server#Start: line 17: E121: Undefined variable: port E116: Invalid arguments for function add Error detected while processing function 110_RemoveCurrentFromCache[13]..javacomplete#server#Communicate[2]..javacomplete#server#Start: line 17: E121: Undefined variable: port E116: Invalid arguments for function add Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E121: Undefined variable: s:serverVersionOutput Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E116: Invalid arguments for function join(s:serverVersionOutput) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E15: Invalid expression: join(s:serverVersionOutput) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 4: E121: Undefined variable: serverVersion Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 4: E116: Invalid arguments for function javacomplete#version#CheckServerCompatibility(serverVersion) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 4: E15: Invalid expression: !javacomplete#version#CheckServerCompatibility(serverVersion) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 10: E108: No such variable: "s:serverVersionOutput" Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E121: Undefined variable: s:serverVersionOutput Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E116: Invalid arguments for function join(s:serverVersionOutput) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance: line 3: E15: Invalid expression: join(s:serverVersionOutput) Error detected while processing function 57_JobNeoVimResponseHandler[3]..javacomplete#server#CheckServerAccordance:


Output of :CheckHealth:

health#deoplete#check

deoplete.nvim

health#nvim#check

Configuration

Performance

Remote Plugins

terminal

tmux

health#provider#check

Clipboard (optional)

Python 2 provider (optional)

Python 3 provider (optional)

Ruby provider (optional)

Output of pip2 install neovim:

Requirement already satisfied: neovim in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: greenlet in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already satisfied: msgpack-python>=0.4.0 in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already satisfied: trollius in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already satisfied: futures in /usr/local/lib/python2.7/site-packages (from trollius->neovim)
Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from trollius->neovim)
brailsmt commented 7 years ago

This was a PEBKAC of the first order. I had the wrong python configured in neovim config.