We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some complex types, particularly those you see when using client/server builders in smithy4s, Metals may struggle to infer a useful type.
To reproduce:
Demo.scala
package hello import smithy4s.http4s.SimpleRestJsonBuilder import org.http4s.client.Client import cats.effect.IO import hello.WeatherService object Demo { val b = SimpleRestJsonBuilder(WeatherService).client(??? : Client[IO]) b@@ }
@@
b
Any
(on this screenshot, ignore the grey suggestion, it's from github copilot)
The inferred type should be smithy4s.http4s.SimpleRestJsonBuilder.ClientBuilder[hello.WeatherServiceGen, cats.effect.IO]
smithy4s.http4s.SimpleRestJsonBuilder.ClientBuilder[hello.WeatherServiceGen, cats.effect.IO]
macOS
VS Code
v1.0.1
You can also see the inferred type show up as Any if you try to insert the inferred type of val b.
val b
The text was updated successfully, but these errors were encountered:
Closed by #5763
Sorry, something went wrong.
No branches or pull requests
Describe the bug
For some complex types, particularly those you see when using client/server builders in smithy4s, Metals may struggle to infer a useful type.
To reproduce:
Demo.scala
:@@
b
shows up asAny
(on this screenshot, ignore the grey suggestion, it's from github copilot)
Expected behavior
The inferred type should be
smithy4s.http4s.SimpleRestJsonBuilder.ClientBuilder[hello.WeatherServiceGen, cats.effect.IO]
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.0.1
Extra context or search terms
You can also see the inferred type show up as Any if you try to insert the inferred type of
val b
.The text was updated successfully, but these errors were encountered: