Comments (6)
/bounty $100
from zio.
π $100 bounty β’ ZIO
Steps to solve:
- Start working: Comment
/attempt #8834
with your implementation plan - Submit work: Create a pull request including
/claim #8834
in the PR body to claim the bounty - Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts
Thank you for contributing to zio/zio!
Add a bounty β’ Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
π’ @andrzejressel | May 20, 2024, 6:17:56 PM | #8883 |
from zio.
Index: core/shared/src/main/scala-3/zio/internal/macros/LayerMacroUtils.scala
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/shared/src/main/scala-3/zio/internal/macros/LayerMacroUtils.scala b/core/shared/src/main/scala-3/zio/internal/macros/LayerMacroUtils.scala
--- a/core/shared/src/main/scala-3/zio/internal/macros/LayerMacroUtils.scala (revision b9f54f5211389cf2fb807c3774f400e7ed336339)
+++ b/core/shared/src/main/scala-3/zio/internal/macros/LayerMacroUtils.scala (date 1716157106781)
@@ -1,8 +1,9 @@
package zio.internal.macros
-import zio._
-import scala.quoted._
-import scala.compiletime._
+import zio.*
+
+import scala.quoted.*
+import scala.compiletime.*
import zio.internal.macros.StringUtils.StringOps
import zio.internal.ansi.AnsiStringOps
@@ -61,7 +62,11 @@
case '{$lhs: ZLayer[i, e, o]} =>
rhs match {
case '{$rhs: ZLayer[i2, e2, o2]} =>
- '{$lhs.++($rhs)}
+ Expr.summon[Tag[o2]] match {
+ case Some(t) =>
+ '{$lhs.++($rhs)(using $t)}
+ case _ => throw new Error("OptionalImplicit should be always available")
+ }
}
}
Seems to fix it, but I hate it. Maybe it's compiler problem?
EDIT: Yeah - it seems that compiler will take the most outer implicit instead of closest one
EDIT2: I've asked on users forum about that: https://users.scala-lang.org/t/scala-3-when-calling-method-with-implicit-value-within-quotes-implicit-in-scope-is-not-found/10003
EDIT3: I believe the message is not from implicitnotfound
annotation, but from macro that generates Izumi tag - I'll try to verify it today
from zio.
/attempt #8834
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@andrzejressel | 6 ZIO bounties | Kotlin, Scala, Java & more |
Cancel attempt |
from zio.
π‘ @andrzejressel submitted a pull request that claims the bounty. You can visit your bounty board to reward.
from zio.
ππ @andrzejressel has been awarded $100! ππ
from zio.
Related Issues (20)
- ZLayerCompanionVersionSpecific.derive has a wrong signature confusing IntelliJ IDEA HOT 8
- `ZIO#someOrElse` does not work with covariant type constructors applied to `Nothing` HOT 8
- `TestArrow::withLocation` and `TestArrow::meta` cannot override a TestArrows location. HOT 6
- ZPipeline.rechunk could be optimized HOT 5
- ZIOΒ environment signature resolution is slow in Scala 3 HOT 4
- Unexpected behaviour with TestRandom HOT 1
- Unable to run JCStress tests
- zio 2.1.2 issue with stuck tests HOT 8
- Incorrect layer type when using a contravariant type parameter HOT 2
- ZIO Config Guide Invalid link HOT 4
- assertTrue primitive comparision regression (Scala 2) HOT 3
- 2.1.3 regression of mapZIOPar(Unordered) with Int.MaxValue level of parallelism HOT 17
- .provide triggers WartRemover ExplicitImplicitTypes error in ZIO 2.1.3
- Scala Native CI takes too long to complete, degrading DX HOT 5
- Inconsistent behaviour of `provideLayer` pre/post ZIO 2.0.7 HOT 4
- Unintuitive behaviour of `checkAll` HOT 1
- 2.1.3 regression ZLayer.Debug "You have provided more than is required"
- `Runtime.unsafe.fromLayer` deadlocks with intersection Layers HOT 2
- ZPipeline.fromFunction combined with provideEnvironment leads to an internal assert in ZEnvironment HOT 8
- Flaky test for `TestClock`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zio.