zio / zio-intellij

A companion IntelliJ IDEA plugin for the ZIO library ecosystem.
Apache License 2.0
214 stars 41 forks source link

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

Open cvdsteeg opened 4 days ago

cvdsteeg commented 4 days ago

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 commented 4 days ago

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.