Skip to content
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

Print parse error details for java files #61

Closed
evoToBetter opened this issue Oct 14, 2022 · 0 comments
Closed

Print parse error details for java files #61

evoToBetter opened this issue Oct 14, 2022 · 0 comments
Milestone

Comments

@evoToBetter
Copy link

evoToBetter commented Oct 14, 2022

Is your feature request related to a problem? Please describe.
When there are errors in parseResult and parseResult.getResult() is null, impsort doesn't provide detials in log.
For example,
when there is this line in java file

String a="aa\sbb";

The plugin only provide log:

net.revelc.code.impsort.ex.ImpSortException: file: TestException1.java; reason: unable to successfully parse the Java file

Describe the solution you'd like
Add log print for parseResult.getProblems() when parseResult.getResult() is null

Describe alternatives you've considered
Add parseResult.getProblems() into message of ImpSortException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants