Comments (3)
Hello! It seems to be an issue with prettier-java v2.2.0 which is using Prettier v3:
https://github.com/jhipster/prettier-java/releases/tag/prettier-plugin-java%402.2.0
To avoid the issue, we cannot use a more recent version of prettier-java than 2.1.0.
@jhaber Is Prettier v3 support planned?
from prettier-maven-plugin.
One could think about replacing some of the node install part of this plugin with something that is not that permanent. For example the following command should provide a environment with prettier
and prettier-java
installed. It uses tea
as a temporary package manager, which will remove itself and the packages after the command is run. This has the disadvantage that nothing is cached.
sh <(curl https://tea.xyz) +classic.yarnpkg.com yarn add prettier prettier-plugin-java --dev && yarn prettier <prettier-commands>
from prettier-maven-plugin.
Should be fixed by #94 which was released as part of version 0.21 just now
from prettier-maven-plugin.
Related Issues (20)
- Fail Maven goal when Prettier commands exit with nonzero code
- Error downloading node: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException HOT 4
- Format files in /src/integration-test/java HOT 1
- Update prettier-java to support java 15 HOT 3
- Upgrade prettierJavaVersion default to 1.0.2 HOT 4
- Goal failed when attempting to lint .js files HOT 13
- Outputs violating files when running `check`
- Code formatting issues found, please run prettier-java HOT 3
- Cannot get plugin goals to execute in linked phase HOT 3
- Add prettier-java 1.5.0 support HOT 2
- Support zipped Node executables HOT 2
- Add prettier-java 1.6.0 support HOT 3
- Running on ARM HOT 4
- record keyword breaks build HOT 4
- Downloading from nodejs.org is blocked by firewall HOT 4
- Illegal char <:> at index 4: node:internal/modules/cjs/loader:936 HOT 11
- Version 18 does not reformat code but version 16 does HOT 20
- Plugin hangs forever (0.18, javaPrettierVersion 0.8.3 and above) HOT 7
- Update documentation to have latest prettierJavaVersion present in mvn repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-maven-plugin.