When you create layer using ZLayer.derive IDEA recognizes the type as:
val layer: ZLayer[Nothing, Any, KafkaConsumerImpl] = ZLayer.derive[KafkaConsumerImpl] which is wrong.
if I correct that manually to use proper environment dependency, to use some other service, code is ofc correct and compiles, but then IDE marks that line as error:
Seems current plugin implementation is not aware about derive macro yet.
When you create layer using ZLayer.derive IDEA recognizes the type as:
val layer: ZLayer[Nothing, Any, KafkaConsumerImpl] = ZLayer.derive[KafkaConsumerImpl]
which is wrong.if I correct that manually to use proper environment dependency, to use some other service, code is ofc correct and compiles, but then IDE marks that line as error:
Seems current plugin implementation is not aware about
derive
macro yet.