-
Notifications
You must be signed in to change notification settings - Fork 59
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 more scalafix projects #1673
Comments
Actually, the current behavior of |
Let me know if/how I can help. I will try to get dbuild running locally this week, understanding how the scala/scalameta versions get injected specifically, evaluating their impact through projects using scalafix-testkit . I realized that I never followed up on your previous request, apologies for that. Now that I have a bit more free time to invest on OSS, I definitely want to help on that front, to continue detecting regressions like scalacenter/scalafix#1556 💪 |
@bjaglin I'm very glad you're interested in helping — but note that I have so much experience troubleshooting dbuild issues that the most efficient approach is probably for me to be the next one to dig, and then let you know if I have questions |
you are right — it's
but if I add
this is the opposite of what I assumed. |
okay, the + "removeScalacOptions -release 8" |
as for the thing where it doesn't work with a 2.13.12 nightly but does work with
it looks like this has to do with some custom code in the Scalafix build; at val project = matrix.jvm(sv)
Def.setting((project / key).value) @bjaglin if you want to try this yourself outside of dbuild and make it possible to do |
references scala#1673
oh, just getting the build to load is easy; editing - val scala213 = "2.13.11"
+ val scala213 = "2.13.12-bin-1a2373b" seems to do the trick I'm trying out a change of the form - val scala213 = "2.13.11"
+ val scala213 = sys.props.getOrElse("scala.nightly", "2.13.11") since I can control system properties from dbuild |
references scala#1673
I merged #1674 which gains us some good ground that I'm pleased with. There's two areas in which further progress might be possible: One: of the five repos which use scalafix-testkit, #1674 was only able to enable testing in one. The other four seem to be on too-old Scalafix versions. It might be nice to get those repos on a newer version, to increase the overall amount of testing Scalafix gets in the community build. (Or maybe you or me attempting that would be an out-of-scope fishing expedition...) Two: you'll see in #1674 that I'm still excluding some tests, namely |
Note that in #1674 I forked Scalafix in order to include this change: scalacommunitybuild/scalafix@df9636f @bjaglin would you take the change if I PRed it? Or can you think of a better way to make it work with Scala nightlies? |
@bjaglin ping |
I think I was confused in my previous comment. We have:
so that's good, and yes we are still excluding some tests but we normally track that kind of with comments in the |
as per scalacenter/scalafix#1699 (previous history: #1602),
-release:8
should allow code that referencessun.misc.Unsafe
to compile. I'll need to dig into why it isn't working in the dbuild contextI'm also having a weird Scala version thing where the project extracts with
version=2.13.11
but there's an error message (that I don't have handy) when the nightly version number is usedThe text was updated successfully, but these errors were encountered: