When creating a new java file with vim (or nvim), the eclipse-jdt-ls server starts running but nothing happens.
I am using the ddc.vim plugin for auto-completion and ale for displaying errors and warnings, with plugins to bridge between vim-lsp and those two plugins. Neither of the two plugins show any information from vim-lsp, so I am guessing the problem is with vim-lsp.
Steps to reproduce
Install eclipse-jdt-ls using :LspInstallServer (if using vim-lsp-settings plugin)
mkdir newFolder && cd newFolder
vim NewFile.java
Wait until :LspStatus displays eclipse-jdt-ls: running
Start writing the keyword public or any other java code and see that vim-lsp does nothing
vim version: 9.0.1950
nvim version: 0.9.2
OS: macOS 12.6
Relevant parts of my .vimrc (all plugins using the latest version on github):
" To Install Plugins with Vundle: :PluginInstall
" To Update Plugins with Vundle: :PluginUpdate
" To Delete Plugins with Vundle: :PluginClean
" Setting up Vundle
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
Plugin 'dense-analysis/ale' " Linter
Plugin 'prabirshrestha/vim-lsp' " Use Language Server Protocol
Plugin 'mattn/vim-lsp-settings' " Easily install LSP servers for vim-lsp
Plugin 'vim-denops/denops.vim' " Let ddc use deno (javascript)
Plugin 'Shougo/ddc.vim' " Autocomplete
Plugin 'Shougo/ddc-ui-native' " UI for ddc
Plugin 'tani/ddc-fuzzy' " Fuzzy matcher, sorter, and converter
" Bridge vim-lsp -> ALE, vim-lsp -> ddc
Plugin 'rhysd/vim-lsp-ale' " Give LSP info from vim-lsp to ALE for errors and warnings
Plugin 'shun/ddc-source-vim-lsp' " Give LSP info from vim-lsp to ddc for autocomplete
call vundle#end()
filetype plugin indent on " required (for Vundle)
" -- ddc plugin settings
call ddc#custom#patch_global('ui', 'native')
call ddc#custom#patch_global('sources', ['vim-lsp'])
call ddc#custom#patch_global('sourceOptions', #{
\ vim-lsp: #{
\ mark: 'lsp',
\ },
\ _: #{
\ sorters: ['sorter_fuzzy'],
\ matchers: ['matcher_fuzzy'],
\ converters: ['converter_fuzzy'],
\ },
\ })
Bug description
When creating a new java file with vim (or nvim), the
eclipse-jdt-ls
server starts running but nothing happens.I am using the
ddc.vim
plugin for auto-completion andale
for displaying errors and warnings, with plugins to bridge betweenvim-lsp
and those two plugins. Neither of the two plugins show any information fromvim-lsp
, so I am guessing the problem is withvim-lsp
.Steps to reproduce
eclipse-jdt-ls
using:LspInstallServer
(if usingvim-lsp-settings
plugin)mkdir newFolder && cd newFolder
vim NewFile.java
:LspStatus
displayseclipse-jdt-ls: running
public
or any other java code and see thatvim-lsp
does nothinghttps://github.com/prabirshrestha/vim-lsp/assets/80112484/c83598ef-e3f5-402c-a21b-f0ea0d560400
Environment
vim version: 9.0.1950 nvim version: 0.9.2 OS: macOS 12.6
Relevant parts of my
.vimrc
(all plugins using the latest version on github):