There is no document formatter for 'java'-files installed.
JDK version:
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
Visual Studio Code version:
1.26.1
493869ee8e8a846b0855873886fc79d480d342de
x64
Java extension version: 0.29
I can't format any java files.
On output console I get the following error:
[Error - 12:59:23 PM] Connection to server is erroring. Shutting down server.
[Error - 12:59:23 PM] Connection to server is erroring. Shutting down server.
Could you, please, attach your project?
Sorry for late response, I don't remember how I fixed the problem, but I think just reinstalling vscode and their extensions again
I had the same problem. It seems that there is a conflict with Java Checkstyle plugin. After I uninstalled this plugin, everything works fine again.
I spent the whole day yesterday in the attempt to avoid the missing formatter for java files. Removing java checkstyle didn't help anyhow. Also deleted any vscode related folder and installed it from scratch, just Language support for java. Still the same issue.
Im now on:
any suggestion?
EDIT: additionally, after installing "prettifier" extension the default formatter worked, then I updated the url with the google code styles xml from here and now I got the same error again with any combination between the enable/disable default java formatter; optional formatter profile name and url or filepath to the eclipse formatter xml settings
Most helpful comment
I spent the whole day yesterday in the attempt to avoid the missing formatter for java files. Removing java checkstyle didn't help anyhow. Also deleted any vscode related folder and installed it from scratch, just Language support for java. Still the same issue.
Im now on:
any suggestion?
EDIT: additionally, after installing "prettifier" extension the default formatter worked, then I updated the url with the google code styles xml from here and now I got the same error again with any combination between the enable/disable default java formatter; optional formatter profile name and url or filepath to the eclipse formatter xml settings