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

enable DottyJS, drop Scala.js 0.6.x #248

Merged
merged 3 commits into from
Nov 9, 2020
Merged

enable DottyJS, drop Scala.js 0.6.x #248

merged 3 commits into from
Nov 9, 2020

Conversation

larsrh
Copy link
Contributor

@larsrh larsrh commented Nov 8, 2020

Drop Scala.js 0.6.x and enable DottyJS for 3.0.0-M1.

I haven't enabled DottyJS for 0.27 because tests are somehow failing there.

Should help fix #199. Obsoletes #246.

@larsrh larsrh changed the title drop Scala.js 0.6.x enable DottyJS, drop Scala.js 0.6.x Nov 8, 2020
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution!

I'm OK with dropping 0.6.x support. Can we update the 0.6.x column on the website to list the 0.7.16 as the last version supporting 0.6.x? https://scalameta.org/munit/docs/getting-started.html

Screenshot 2020-11-08 at 12 19 44

A few nitpick comments regarding parentheses, otherwise looks good to me!

@@ -1,11 +1,11 @@
package munit.internal.junitinterface

trait Settings {
def trimStackTraces(): Boolean
Copy link
Member

Choose a reason for hiding this comment

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

Can we add the parentheses back here? These interfaces are meant to be mirrors of their equivalent Java interfaces https://github.com/scalameta/munit/blob/7ea3075ae51ca73c7fa84373aa9dd82cf9a6ccd7/junit-interface/src/main/java/munit/internal/junitinterface/Tag.java

I prefer to keep the two synchronized as much as possible, these are internal APIs so it shouldn't matter much whichever we use.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add them back, but that makes stuff in some other places more complicated. There are some classes that attempt to use val to override those defs (which doesn't work anymore in Dotty, so they have to be renamed). Those constructors are subsequently called with named parameters, so their call sites have to be renamed too.

I'm happy to go ahead either way, though.

Copy link
Member

Choose a reason for hiding this comment

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

I see. That makes sense, I'm glad Scala 3 is more strict about the differences between method() and method without parentheses. It's still quite a large breaking change, I always thought it was elegant that val could override parameterless defs.

Anyways, I'm fine dropping the parentheses in this case 👍

Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

No need to change the parentheses, just the Scala.js 0.6 support mention in the docs.

@@ -1,11 +1,11 @@
package munit.internal.junitinterface

trait Settings {
def trimStackTraces(): Boolean
Copy link
Member

Choose a reason for hiding this comment

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

I see. That makes sense, I'm glad Scala 3 is more strict about the differences between method() and method without parentheses. It's still quite a large breaking change, I always thought it was elegant that val could override parameterless defs.

Anyways, I'm fine dropping the parentheses in this case 👍

@larsrh larsrh requested a review from olafurpg November 9, 2020 13:38
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you!

@olafurpg olafurpg merged commit 76dd69a into scalameta:master Nov 9, 2020
@olafurpg
Copy link
Member

olafurpg commented Nov 9, 2020

Kickstarted 0.7.17 https://github.com/scalameta/munit/actions/runs/354125829

@larsrh larsrh deleted the topic/drop-scalajs-0.6 branch November 9, 2020 15:03
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.

Release Scala.js artifacts for Dotty builds
2 participants