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 3.3 ActorDocSpec java.lang.IllegalArgumentException: no matching constructor found #1082

Closed
He-Pin opened this issue Jan 30, 2024 · 5 comments · Fixed by #1083, #1220 or #1225
Closed
Assignees
Labels
bug Something isn't working build sbt or build of the project
Milestone

Comments

@He-Pin
Copy link
Member

He-Pin commented Jan 30, 2024

01-30 07:45:26.551] [info] - using watch *** FAILED *** (0 milliseconds)
[01-30 07:45:26.551] [info]   java.lang.IllegalArgumentException: no matching constructor found on class docs.actor.ActorDocSpec$$anon$29$WatchActor for arguments [class docs.actor.ActorDocSpec$$anon$29]
[01-30 07:45:26.551] [info]   at org.apache.pekko.util.Reflect$.error$1(Reflect.scala:98)
[01-30 07:45:26.551] [info]   at org.apache.pekko.util.Reflect$.findConstructor(Reflect.scala:122)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.ArgsReflectConstructor.<init>(IndirectActorProducer.scala:109)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.IndirectActorProducer$.apply(IndirectActorProducer.scala:74)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.Props.producer(Props.scala:141)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.Props.<init>(Props.scala:154)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.Props$.apply(Props.scala:123)
[01-30 07:45:26.551] [info]   at org.apache.pekko.actor.Props$.apply(Props.scala:96)
[01-30 07:45:26.551] [info]   at docs.actor.ActorDocSpec$$anon$29.<init>(ActorDocSpec.scala:600)
[01-30 07:45:26.551] [info]   at docs.actor.ActorDocSpec.f$proxy14$1(ActorDocSpec.scala:603)
[01-30 07:45:26.551] [info]   at docs.actor.ActorDocSpec.$init$$$anonfun$14(ActorDocSpec.scala:580)
[01-30 07:45:26.551] [info]   at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
[01-30 07:45:26.551] [info]   at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
[01-30 07:45:26.551] [info]   at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
[01-30 07:45:26.551] [info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
[01-30 07:45:26.552] [info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
[01-30 07:45:26.552] [info]   at org.scalatest.Transformer.apply(Transformer.scala:21)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike$$anon$3.apply(AnyWordSpecLike.scala:1118)
[01-30 07:45:26.552] [info]   at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
[01-30 07:45:26.552] [info]   at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
[01-30 07:45:26.552] [info]   at org.apache.pekko.testkit.PekkoSpec.withFixture(PekkoSpec.scala:80)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.invokeWithFixture$1(AnyWordSpecLike.scala:1124)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTest$$anonfun$1(AnyWordSpecLike.scala:1128)
[01-30 07:45:26.552] [info]   at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTest(AnyWordSpecLike.scala:1128)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTest$(AnyWordSpecLike.scala:44)
2024-01-30 07:45:26,552 ERROR org.apache.pekko.actor.OneForOneStrategy  - Kill MDC: {pekkoAddress=pekko://ActorDocSpec, pekkoUid=5742197011161865973, pekkoSource=pekko://ActorDocSpec/user/$e, sourceThread=ActorDocSpec-pekko.actor.internal-dispatcher-4, sourceActorSystem=ActorDocSpec, pekkoTimestamp=07:45:26.552UTC}
org.apache.pekko.actor.ActorKilledException: Kill
[01-30 07:45:26.552] [info]   at org.apache.pekko.testkit.PekkoSpec.runTest(PekkoSpec.scala:80)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTests$$anonfun$1(AnyWordSpecLike.scala:1187)
[01-30 07:45:26.552] [info]   at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
[01-30 07:45:26.552] [info]   at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[01-30 07:45:26.552] [info]   at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[01-30 07:45:26.552] [info]   at scala.collection.immutable.List.foreach(List.scala:333)
[01-30 07:45:26.552] [info]   at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
[01-30 07:45:26.552] [info]   at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
[01-30 07:45:26.552] [info]   at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
[01-30 07:45:26.552] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTests(AnyWordSpecLike.scala:1187)
[01-30 07:45:26.553] [info]   at org.scalatest.wordspec.AnyWordSpecLike.runTests$(AnyWordSpecLike.scala:44)
[01-30 07:45:26.553] [info]   at org.apache.pekko.testkit.PekkoSpec.runTests(PekkoSpec.scala:80)
[01-30 07:45:26.553] [info]   at org.scalatest.Suite.run(Suite.scala:1114)
[01-30 07:45:26.553] [info]   at org.scalatest.Suite.run$(Suite.scala:564)
[01-30 07:45:26.553] [info]   at org.apache.pekko.testkit.PekkoSpec.org$scalatest$wordspec$AnyWordSpecLike$$super$run(PekkoSpec.scala:80)
[01-30 07:45:26.553] [info]   at org.scalatest.wordspec.AnyWordSpecLike.run$$anonfun$1(AnyWordSpecLike.scala:1232)
[01-30 07:45:26.553] [info]   at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
[01-30 07:45:26.553] [info]   at org.scalatest.wordspec.AnyWordSpecLike.run(AnyWordSpecLike.scala:1232)
[01-30 07:45:26.553] [info]   at org.scalatest.wordspec.AnyWordSpecLike.run$(AnyWordSpecLike.scala:44)
[01-30 07:45:26.553] [info]   at org.apache.pekko.testkit.PekkoSpec.org$scalatest$BeforeAndAfterAll$$super$run(PekkoSpec.scala:80)
[01-30 07:45:26.553] [info]   at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
[01-30 07:45:26.553] [info]   at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:217)
[01-30 07:45:26.553] [info]   at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:135)
[01-30 07:45:26.553] [info]   at org.apache.pekko.testkit.PekkoSpec.run(PekkoSpec.scala:80)
[01-30 07:45:26.553] [info]   at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
[01-30 07:45:26.553] [info]   at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
[01-30 07:45:26.553] [info]   at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
[01-30 07:45:26.553] [info]   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[01-30 07:45:26.553] [info]   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[01-30 07:45:26.553] [info]   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[01-30 07:45:26.553] [info]   at java.base/java.lang.Thread.run(Thread.java:1583)

refs: https://github.com/apache/incubator-pekko/actions/runs/7707379313/job/21004465786#step:7:35225

@He-Pin He-Pin added bug Something isn't working build sbt or build of the project labels Jan 30, 2024
@He-Pin He-Pin self-assigned this Jan 30, 2024
@He-Pin He-Pin linked a pull request Jan 30, 2024 that will close this issue
@He-Pin He-Pin linked a pull request Jan 30, 2024 that will close this issue
@He-Pin He-Pin reopened this Jan 30, 2024
@He-Pin
Copy link
Member Author

He-Pin commented Jan 31, 2024

This is actually an Dotty bug.

@pjfanning
Copy link
Contributor

This also affects the 1.0.x branch - i.e this is not a new issue

@He-Pin
Copy link
Member Author

He-Pin commented Mar 23, 2024

as it's not going to be fixed in scala 3, so we should change the code then :)
refs: scala/scala3#19803

@pjfanning pjfanning added this to the 1.1.0-M1 milestone Mar 23, 2024
@pjfanning
Copy link
Contributor

@He-Pin any idea what a change would look like and whether it would be possible to get it into 1.1.0-M1?

@He-Pin
Copy link
Member Author

He-Pin commented Mar 23, 2024

@pjfanning Yes, I'm fixing it locally, I was expected Scala 3.3.3 fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment