coc-java icon indicating copy to clipboard operation
coc-java copied to clipboard

Stop generating .project .classpath .settings/ files

Open ghost opened this issue 3 years ago • 3 comments

This issue has already been solved in vscode-java in https://github.com/redhat-developer/vscode-java/pull/2153 and Eclipse JDT Language Server (eclipse.jdt.ls) in https://github.com/eclipse/eclipse.jdt.ls/pull/1900 and there is even a blog post about it at https://devblogs.microsoft.com/java/say-goodbye-to-project-files-in-1-1-0

coc-java running on Vim (8.2) and Node.js (16.14.0) on Fedora Linux (35) still generates those files.

ghost avatar Mar 29 '22 09:03 ghost

I was able to get things working by adding "java.jdt.ls.vmargs": "-Djava.import.generatesMetadataFilesAtProjectRoot=false" to my :CocConfig file. I'm not sure why this isn't the default from coc-java, but I haven't looked very hard into how it launches the language server.

dashea avatar Apr 28 '22 16:04 dashea

@chemzqm any insight on this?

ghost avatar May 20 '22 17:05 ghost

Need some time to upgrade coc-java, I used to have issues with java environment on my machine and some components are missing from coc.nvim.

chemzqm avatar May 21 '22 12:05 chemzqm

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

chemzqm avatar Jan 29 '23 08:01 chemzqm