Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ZIO.serviceWith doesnt not show the correct type in the editor #492

Open
cvdsteeg opened this issue Nov 28, 2024 · 1 comment
Open

ZIO.serviceWith doesnt not show the correct type in the editor #492

cvdsteeg opened this issue Nov 28, 2024 · 1 comment

Comments

@cvdsteeg
Copy link

in the case below, the editor shows length as type String (see image), however, it should be Int. This broke since a few versions back.

length                     <- ZIO.serviceWith[String](_.length)
image
@hmemcpy
Copy link
Collaborator

hmemcpy commented Nov 28, 2024

Thanks for the report! I believe this is related to the bug in IntelliJ with partially-applied functions. It was recently fixed but only in the nightly builds of the Scala plugin. I believe once this is merged in the release build it will be solved.

This also relates to #490. I'll keep this open until the fix from the Scala plugin is released.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants