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

ZLayer.derive improper behaviour #454

Open
mateuszbrzezinski opened this issue Oct 9, 2023 · 1 comment
Open

ZLayer.derive improper behaviour #454

mateuszbrzezinski opened this issue Oct 9, 2023 · 1 comment

Comments

@mateuszbrzezinski
Copy link

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:

image

Seems current plugin implementation is not aware about derive macro yet.

@hmemcpy
Copy link
Collaborator

hmemcpy commented Oct 9, 2023

Thanks! I believe derive is a fairly recent addition, so we'd have to add support for it in the plugin. Thanks for reporting!

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

No branches or pull requests

2 participants