java-language-server icon indicating copy to clipboard operation
java-language-server copied to clipboard

Cannot start server from Vim on Windows 7

Open augustjanse opened this issue 5 years ago • 4 comments

When I open a Java file in Vim, I get an error like this:

image

Calling the file myself works fine, however:

image

My .vimrc contains:

set shell=C:\msys64\usr\bin\bash.exe
set shellcmdflag=--login\ -c

[...]

let g:lsc_server_commands = {'java': './bin/java-language-server-master/dist/lang_server_windows.sh'}

I thought #135 was the problem, but am sorry to say that the problem persisted in Vim when I changed to a relative path. I'm on a Windows 7 machine and have set an MSYS2 shell.

augustjanse avatar Jan 23 '20 15:01 augustjanse

Looks like Cygwin Bash behaves the same way.

augustjanse avatar Jan 23 '20 15:01 augustjanse

I'm going to need some help from the VIM experts to answer this one. @leighmcculloch do you have any idea what might be going wrong here?

georgewfraser avatar Mar 07 '20 16:03 georgewfraser

Not an open channel sounds like there's no channel open to the language server. It's possible the language server isn't running, or is failing to run, or is starting up and exiting for some reason. Are you able to run the language server manually outside VIM, or are there any logs that would indicate if it is running?

leighmcculloch avatar Mar 07 '20 17:03 leighmcculloch

@leighmcculloch The second screenshot (should've copied and pasted the logs, sorry) shows the server running manually outside Vim.

augustjanse avatar Mar 10 '20 08:03 augustjanse