-
Notifications
You must be signed in to change notification settings - Fork 59
add scalafmt #578
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
add scalafmt #578
Conversation
this can be rebased once #535 is merged |
hey @olafurpg I'm getting this:
looks like somehow org.scalamacros#paradise and org.scalameta#paradise are both getting pulled in |
@olafurpg I do recall that you were previously skeptical about having scalafix in the community build (#499 (comment)), probably those same concerns about evolution and fragility apply here too |
I tried building only |
arggghhh, I think I used olafurpg/scalafmt when I should have used scalameta/scalafmt. let me fix that and see whether that helps... |
sigh, now I get but then if I try add to add
@olafurpg this looks might it might be easily resolvable by |
with a newer scalameta,
but then we also need a newer scalafix, and meta-paradise doesn't compile |
it looks like this is doomed because scalafmt wants scalameta 1.7 but scalafix wants 2.0 and there are definite source incompatibilities or rather, doomed unless we use dbuild's spaces feature to keep this stuff separate which might not be very hard actually. nothing down near the dependency trunk uses meta, just leaves or near-leaves, so splitting is okay |
Scalafmt will likely be stuck on scalameta 1.7 for a while. The complications are caused by its dependency on scalameta/paradise, which we plan to sunset in favor of scalamacros/scalamacros soon. I think it's best to keep scalafmt out of the CB for now until the new macro annotations stabilize. FWIW, scalafix recently dropped its dependency on scalameta/paradise macro annotations. |
having refreshed my memory of how dbuild spaces work in order to accommodate the jawn 0.10/0.11 split, I'm (again) interested in revisiting this. scalafmt is core to the ecosystem, so I'd like to get it in if at all possible. |
Heads up, scalafmt depends on an old version of scalameta (1.7) that is incompatible with scalameta 2.1 which scalafix depends on. I really wish this wasn't the case, but I'm afraid scalafmt v1.x is stuck on scalameta 1.x for the upcoming future unless I'm able to dedicate some work hours to do the fairly painful upgrade. |
yeah I think I can build both versions of scalameta and keep them separate using dbuild's spaces feature. I think it's worth a try, anyway. |
if/when I tackle this I'll start over with a new PR |
new round of wip on this at https://github.com/sethtisue/community-builds/tree/add-scalafmt-spaces |
No description provided.