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

Scala 2.13.6 & -Xsource:3 support #221

Merged
merged 2 commits into from
May 19, 2021
Merged

Scala 2.13.6 & -Xsource:3 support #221

merged 2 commits into from
May 19, 2021

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented May 18, 2021

@bjaglin bjaglin changed the title Scala 2.136 & -Xsource:3 support Scala 2.13.6 & -Xsource:3 support May 18, 2021
*/
package fix

open class Source3
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

settings = Seq(
scalacOptions += "-P:semanticdb:synthetics:on"
Copy link
Collaborator Author

@bjaglin bjaglin May 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

force-pushed: this was not used!

settings = Seq(
scalacOptions += "-P:semanticdb:synthetics:on"
scalacOptions += "-Xsource:3"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this shows how nice sbt-projectmatrix can be!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. The only thing I am worried about, is if we are the only project that use it. It introduces some new syntax to understand/learn, especially that sbt is usually not something that people master correctly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule authors shouldn't have to touch anything in projects bootstrapped by scalacenter/scalafix.g8#19 unless they need to disable scala3 testing (which I enabled on purpose). Maybe that's something to discuss on the PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe they want to write only for scala 3. I think it should be easy to remove axes that the authors don't want?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's discuss this on the PR.

@bjaglin bjaglin marked this pull request as ready for review May 18, 2021 08:31
@bjaglin bjaglin requested a review from mlachkar May 18, 2021 08:31
@bjaglin
Copy link
Collaborator Author

bjaglin commented May 18, 2021

CI is broken at the moment https://www.githubstatus.com/incidents/m16jzl31gnqt

open class Source3

object Source3 {
implicit class XtensionVal(val str: String) extends AnyVal {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just amended the last commit yo move this inside an object to avoid

[info] [error] /tmp/sbt_5a68d1e4/cross-build/scala213/src/main/scala/Source3.scala:3:16: XtensionVal is already defined as (compiler-generated) method XtensionVal

@bjaglin bjaglin merged commit 97eb494 into scalacenter:main May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants