Closed portlek closed 11 months ago
Hello @portlek!
It might be related to how prettier is resolving plugins with v3. As @murdos said in this comment https://github.com/jhipster/prettier-java/issues/508#issuecomment-1629771971, there were some changes on this topic. I will try to have a look this weekend.
Is this happening on all code snippets?
Yes, i've tested with empty classes and on a full featured project.
I was unable to reproduce this with a barebones npm project on Linux, but was able to reproduce it when using a Gradle project leveraging the Spotless plugin (as it seems that you were). As is pointed out in diffplug/spotless#1751, Spotless does not yet support Prettier 3, so I suspect you will need to wait until the work is done there to support it.
As the diffplug/spotless#1751 issue is fixed, I will close this issue as well. Thanks for reporting it anyway !
i get parsing error while i'm using the latest versions of tools in linux.
windows 11 works fine with the latest versions.
2.8.0 and 2.1.0 version for prettier and prettier-java works fine both linux and windows.
here is the full error: