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

`java.codeGeneration.toString` settings are ignored

Open kmoschcau opened this issue 2 years ago • 2 comments

Hi, I habe configured both the codeStyle and template sub settings in the above, but they are just simply ignored and the defaults are used instead. I also don't see anything in the Java server output that seems related.

kmoschcau avatar May 12 '22 08:05 kmoschcau

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

chemzqm avatar May 12 '22 09:05 chemzqm

I enabled trace, found the request and response. I looked through the request and the only parameters in there are the fields to generate for and the position in the file. There is no indication that any of the options are passed to the server.

kmoschcau avatar May 12 '22 11:05 kmoschcau

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

The settings could be not recognized by your jdt.ls, from 1.14.0, coc-java comes with bundled jdt.ls,

chemzqm avatar Jan 29 '23 08:01 chemzqm