Skip to content

Fix #10466: Update rootPosition to Position.ofMacroExpansion #10467

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

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

nicolasstucki
Copy link
Contributor

[test_sbt]

@nicolasstucki nicolasstucki marked this pull request as ready for review November 24, 2020 07:49
@nicolasstucki nicolasstucki added this to the 3.0.0-M2 milestone Nov 24, 2020
@nicolasstucki
Copy link
Contributor Author

We need to fix this one to be able to publish 3.0.0-M2

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@griggt
Copy link
Contributor

griggt commented Nov 24, 2020

In order to get the test to pass locally, I had to give a name to the context parameter:

diff --git a/sbt-dotty/sbt-test/source-dependencies/macro-expansion-dependencies-2/changes/MacroRuntimeRuntimeError.scala b/sbt-dotty/sbt-test/source-dependencies/macro-expansion-dependencies-2/changes/MacroRuntimeRuntimeError.scala
index caa79c3d24..e917a255af 100644
--- a/sbt-dotty/sbt-test/source-dependencies/macro-expansion-dependencies-2/changes/MacroRuntimeRuntimeError.scala
+++ b/sbt-dotty/sbt-test/source-dependencies/macro-expansion-dependencies-2/changes/MacroRuntimeRuntimeError.scala
@@ -2,7 +2,7 @@ import scala.quoted._

 object MacroRuntime {

-   def impl()(using Quotes): Expr[Unit] = {
+   def impl()(using q: Quotes): Expr[Unit] = {
       '{ ??? }
    }

I have no idea why that makes a difference here.

@nicolasstucki
Copy link
Contributor Author

That changes the signature in one of the steps, which may trigger the incremental compilation recompile more.

@griggt
Copy link
Contributor

griggt commented Nov 24, 2020

Ah, that must be it. Adding a > clean before the final -> run in the test script seems to work also.

@nicolasstucki
Copy link
Contributor Author

This means that there was a regression in the incremental compilation of macros. I added the clean to unblock the release. I'm bisecting the commit to find the source of the problem and will open an issue when I find it.

@liufengyun could you have a last look at the changes I added?

@liufengyun
Copy link
Contributor

This means that there was a regression in the incremental compilation of macros. I added the clean to unblock the release. I'm bisecting the commit to find the source of the problem and will open an issue when I find it.

@liufengyun could you have a last look at the changes I added?

It looks good to me.

@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Nov 24, 2020

It looks like 80ed86a is the first commit to fail

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.

Nightly build failed (in macro-expansion-dependencies-2 sbt scripted test)
3 participants