You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Step 'palantir-java-format' found problem in 'src/main/java/com/tisonkun/morax/directio/Getpwnam.java':
24:53: error: expected token: '.'; generated ) instead
com.palantir.javaformat.java.FormatterException: 24:53: error: expected token: '.'; generated ) instead
at com.palantir.javaformat.java.Formatter.getFormatReplacements (Formatter.java:302)
at com.palantir.javaformat.java.Formatter.formatSource (Formatter.java:277)
at com.palantir.javaformat.java.Formatter.formatSource (Formatter.java:245)
at com.diffplug.spotless.glue.pjf.PalantirJavaFormatFormatterFunc.apply (PalantirJavaFormatFormatterFunc.java:43)
at com.diffplug.spotless.FormatterFunc.apply (FormatterFunc.java:32)
at com.diffplug.spotless.FormatterStepImpl$Standard.format (FormatterStepImpl.java:82)
at com.diffplug.spotless.FormatterStep$Strict.format (FormatterStep.java:103)
at com.diffplug.spotless.Formatter.compute (Formatter.java:246)
at com.diffplug.spotless.PaddedCell.calculateDirtyState (PaddedCell.java:203)
at com.diffplug.spotless.PaddedCell.calculateDirtyState (PaddedCell.java:190)
at com.diffplug.spotless.maven.SpotlessApplyMojo.process (SpotlessApplyMojo.java:48)
at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute (AbstractSpotlessMojo.java:229)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
This should not be a spotless issue but palantir doesn't support the new syntax, but I encounter the issue during using spotless so let me report it here for others encountering the same issue first.
Config -
... on JDK 22.
This should not be a spotless issue but palantir doesn't support the new syntax, but I encounter the issue during using spotless so let me report it here for others encountering the same issue first.
Cross-refer to palantir/palantir-java-format#966
The text was updated successfully, but these errors were encountered: