Giter Club home page Giter Club logo

Comments (5)

chemzqm avatar chemzqm commented on June 2, 2024

It's problem of your jdt.ls, you can download older version of jdt.ls.

from coc-java.

bgx90 avatar bgx90 commented on June 2, 2024

Okay, thanks. I updated the server via the CocCommand java.updateLanguageServer. Does that command just download the absolute latest version of jdt.ls? I was thinking that it would download the latest version of jdt.ls known to work with the installed version of coc; could it be made to do that to prevent this problem in the future?

from coc-java.

bgx90 avatar bgx90 commented on June 2, 2024

I reverted back to the version of jdt.ls that was working for me before I upgraded (jdt-language-server-0.37.0-201904162228.tar.gz). Automatic imports work again, but the missing candidates problem persists as before. When adding an Entity annotation I only see the org.hibernate.annotations.Entity option in the autocompletion list, but importing javax.persistence.Entity is still an option in the code actions, so I know the server is aware of that class. I did not have this issue before with this version jdt.ls, so is it possible that the newest version of coc is removing javax.persistence.Entity from the autocomplete options as if it were a duplicate of the org.hibernate.annotations.Entity list item?

BTW, I am now on this commit from the coc release branch

## versions

vim version: NVIM v0.3.4
node version: v10.16.0
coc.nvim version: 0.0.72-d87103178f
term: xterm-256color
platform: linux

from coc-java.

bgx90 avatar bgx90 commented on June 2, 2024

The missing autocomplete candidate problem seems to be with coc. I reverted to commit 25e10368d5f9b61ee3a448fb7810597bdd5533ca on the release branch and now see both javax.persistence.Entity and org.hibernate.annotations.Entity in the autocomplete options list.

Now on this version:

## versions

vim version: NVIM v0.3.4
node version: v10.16.0
coc.nvim version: 0.0.72-8c7241d7e3
term: xterm-256color
platform: linux

from coc-java.

chemzqm avatar chemzqm commented on June 2, 2024

Should be fixed on recent version of coc-java, try upgrade coc.nvim to latest release and coc-java to version 1.14.0.

from coc-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.