-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error parsing Java packages #34
Comments
Something seems to be very different when releasing it instead of using it from within the project. yarn prettier --write ../jhipster-example/**/*.java 2> errors I get two errors from the parser for code that combines strings, but everything else it runs through like crazy... Will keep this open though for the great example :) |
Please check version 0.0.4, if you remove all comments from the file it should parse! I tried that. For the status on the comments see: #32 |
Sorry but I upgraded to
|
Can you checkout this project (prettier-java) and run 'yarn test' just to give me an idea if that works. Can't test your project in total because I have not the correct node version, but I did this example project https://github.com/thorbenvh8/jhipster-prettier here, 'yarn prettier LoggingAspect.java' works for me, prints it into the console, add --write to in place replacement. Can you check if that works, thanks for investing the time solving this with me :) |
So that's definitely an improvement! |
If you could create an issue with the minimal code that we need to reproduce that error? And we still have to figure out why its not working when its standalone with comments in the other issue. Im gonna close this issue! Thanks for helping |
If you haven’t already, check out |
I'm testing with
prettier-java:0.0.2
with a specific patch for handling #31I have lots of parsing errors, it looks like Java packages are not correctly parsed, here is one example:
In order to give you a full project, which might also have more issues, please have a look at the attached Zip file.: tmp.zip
This is a @jhipster application, made from the current
master
branch (which passes our test suite, so it should be quite good).You need to run
yarn prettier:format
and it should format all.ts
and.java
files. It should be pretty comprehensive, so hopefully it will help you catch more issues.The text was updated successfully, but these errors were encountered: