neoclide / coc-java

Java extension for coc.nvim
Eclipse Public License 1.0
448 stars 40 forks source link

Annotations with Gradle #191

Closed codyrioux closed 1 year ago

codyrioux commented 2 years ago

Hey coc-java devs,

This is more of a question than an issue but I noticed the README says that there is support for "Annotation processing support (automatic for Maven projects)". I read this as non-automatic for Gradle projects, how can this be manually executed for a Gradle project? Or am I reading this incorrectly and it is actually unsupported for Gradle?

Hoping to iron out the kinks using Lombok and coc-java together.

Thanks!

dukcode commented 2 years ago

I have same problem on gradle project. Did you solve the problem?

codyrioux commented 2 years ago

A few weeks ago I dug into the issue and it is definitely deeper at the language server level. The eclise.jdt.ls also lists annotation processing as automatic for Maven projects. I did find some instructions on Using Java Annotation Processors from Gradle and Eclipse but haven't had the chance to try a solution yet.

chemzqm commented 1 year ago

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

Latest coc-java detect gradle and maven on your project.