You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sourcecode.Name does not capture back ticked macro keyword in Scala3 (200USD Bounty) #120
results in capturing something else, apparently the name of the enclosing environment, but not the val's name itself.
Other Scala keywords seem to be captured just fine.
Haoyi: To incentivize contribution, I'm putting a 200USD bounty on resolving this ticket. This is payable via bank transfer, and at my discretion in case of ambiguity. The acceptance criteria is a PR fixing this issue and updates to our test infrastructure to validate the fix
though nobody seems to care, fwiw, just reproduced this with Scala 3.1.3 and sourcecode 0.3.0
java.lang.AssertionError: assertion failed: `macro` == "Playground" not "macro" !
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at Playground$.<clinit>(main.scala:10)
at Main$.<clinit>(main.scala:15)
at Main.main(main.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at sbt.Run.invokeMain(Run.scala:143)
at sbt.Run.execute$1(Run.scala:93)
at sbt.Run.$anonfun$runWithLoader$5(Run.scala:120)
at sbt.Run$.executeSuccess(Run.scala:186)
at sbt.Run.runWithLoader(Run.scala:120)
at sbt.Run.run(Run.scala:127)
at com.olegych.scastie.sbtscastie.SbtScastiePlugin$$anon$1.$anonfun$run$1(SbtScastiePlugin.scala:38)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:17)
at sbt.ScastieTrapExit$App.run(ScastieTrapExit.scala:259)
at java.base/java.lang.Thread.run(Thread.java:831)
changed the title [-]sourcecode.Name does not capture back ticked `macro` keyword in Scala3[/-][+]sourcecode.Name does not capture back ticked `macro` keyword in Scala3 (200USD Bounty)[/+]on May 14, 2024
Activity
carueda commentedon Aug 3, 2022
though nobody seems to care, fwiw, just reproduced this with Scala 3.1.3 and sourcecode 0.3.0
[-]sourcecode.Name does not capture back ticked `macro` keyword in Scala3[/-][+]sourcecode.Name does not capture back ticked `macro` keyword in Scala3 (200USD Bounty)[/+]KacperFKorban commentedon May 14, 2024
Hi, I'd like to take a crack at it
lihaoyi commentedon May 14, 2024
@KacperFKorban go for it, no need to ask permission!
Correctly handle backticked macro keyword in Scala 3 (#163)
carueda commentedon May 22, 2024
awesome.