Closed clemenswasser closed 3 years ago
I have the same issue. Were you able to fix it by chance?
Unfortunately not.
@clemenswasser The issue is sh isn't present on windows, so the LspInstall function fails. Have you tried manually installing the language server? If so, can we update the issue to LspInstall for jdtl does not work on windows? These installers are planned to be deprecated, but it should be easy for someone to make a PR to add conditional logic and powershell commands for installing on windows.
nvim --version
:Features: -acl +iconv +tui See ":help feature-compile"
Run :checkhealth for more info
health#lspconfig#check
Checking language server protocol configuration
health#completion_nvim#check
general
completion source
snippet source
health#nvim#check
Configuration
Performance
Remote Plugins
health#provider#check
Clipboard (optional)
Python 2 provider (optional)
import neovim
. Using the first available executable for diagnostics.Python 3 provider (optional)
INFO:
g:python3_host_prog
is not set. Searching for python in the environment.INFO: Multiple python executables found. Set
g:python3_host_prog
to avoid surprises.INFO: Executable: C:\Users\cwasser\AppData\Local\Programs\Python\Python39\python.EXE
INFO: Other python executable: C:/Users/cwasser/AppData/Local/Programs/Python/Python39/python
INFO: Python version: 3.9.0
INFO: pynvim version: 0.4.2
OK: Latest pynvim is installed.
Python virtualenv
Ruby provider (optional)
ruby
andgem
must be in $PATH.ruby
andgem
commands work.Node.js provider (optional)
node
andnpm
(oryarn
) must be in $PATH.node
andnpm
(oryarn
) commands work.Perl provider (optional)
How to reproduce the problem from neovim startup
init.vim
::LspInstall jdtls
Actual behaviour
Failes to install the jdtls server with the following error message:
E5108: Error executing lua Vim:E475: Invalid value for argument cmd: 'sh'is not executable
Even if I install jdtls manually, this error is thrown, when I open a Java file:
Expected behaviour
jdtls should install and work on Windows.