-
Notifications
You must be signed in to change notification settings - Fork 154
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
turn off static imports format for java formatter. #756
Conversation
I swear I mentioned this before but I guess I was writing a comment on my mobile and it was lost somewhere but I am not sure what the use of upgrading the sbt-java-formatter is if its changing the meaning of the code by incorrectly formatting imports that is forcing us to add files to the ignore list and/or using It would be far better to figure out the underlying root cause, i.e. maybe there is an option to keep the import order as it was before? |
@mdedetrich There are no config for this formatter. I was added these file to When I ran the |
Then to be frank I think we should look for another formatter. If a formatter is changing the meaning of a program and at least doesn't allow a configuration to prevent that then this is a terrible design. @pjfanning thoughts? |
@mdedetrich And seems all those tests are related with |
@mdedetrich but as your comments in anther pr, it's a JDK 8 bug. |
I don't remember saying this, can you provide a link? |
@mdedetrich from #593
|
Ah right now I remember, still at odds on this because we still support JDK 8 and will likely do so for some time (especially if multi release jar module is made). Lets see what other people say |
@mdedetrich I think this is fine, anther workaround is delete the static imports, by this change we can make some progress anyway |
My current stance is to actually drop it and to add sbt-java-formatter to the ignore list for scala steward until we happen to drop JDK 8. Its not just about current code with the |
Okay, let's close it, and pin the sbt-java-formatter at 0.7.0. |
refs: #723 & #593
Update: When I run the format on Windows, there are
314
files change, so better to leave it in this pr.