You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
health#lspconfig#check
========================================================================
## Checking language server protocol configuration
- INFO: clangd: configuration checked.
- ERROR: jdtls: config.cmd error, C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:173: cmd: expected list, got nil
stack traceback:
C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:173: in function <C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:172>
[C]: in function 'pcall'
...vim-data\plugged\nvim-lspconfig\lua\lspconfig\health.lua:12: in function 'check_health'
[string ":lua"]:1: in main chunk
health#completion_nvim#check
========================================================================
## general
- OK: neovim version is supported
## completion source
- OK: all completion source are valid
## snippet source
- INFO: You haven't setup any snippet source.
health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
health#provider#check
========================================================================
## Clipboard (optional)
- OK: Clipboard tool found: win32yank
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
python2 not found in search path or not executable.
python2.7 not found in search path or not executable.
python2.6 not found in search path or not executable.
C:\Users\cwasser\AppData\Local\Programs\Python\Python39\python.EXE is Python 3.9 and cannot provide Python 2.
- INFO: Executable: Not found
## 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
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- WARNING: `ruby` and `gem` must be in $PATH.
- ADVICE:
- Install Ruby and verify that `ruby` and `gem` commands work.
## Node.js provider (optional)
- WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
- ADVICE:
- Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.
## Perl provider (optional)
- WARNING: No usable perl executable found
What language server(If the problem is related to a specific language server): jdtls
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:
E5108: Error executing lua C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:173: cmd: expected list, got nil
stack traceback:
C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:173: in function '_cmd_parts'
C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:238: in function 'validate_client_config'
C:\Program Files\Neovim\share\nvim\runtime\lua\vim\lsp.lua:442: in function 'start_client'
...\nvim-data\plugged\nvim-lspconfig\lua\lspconfig\util.lua:261: in function 'add'
...im-data\plugged\nvim-lspconfig\lua\lspconfig\configs.lua:177: in function 'try_add'
[string ":lua"]:1: in main chunk
Expected behaviour
jdtls should install and work on Windows.
The text was updated successfully, but these errors were encountered:
@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
:4f19567fb76438d39ed196ae5b4e06b749e75e16
:checkhealth
resultjdtls
Windows 10 1909
PowerShell 7.1.0
+Window Terminal Version: 1.4.3141.0
$TERM
: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.
The text was updated successfully, but these errors were encountered: