-
Notifications
You must be signed in to change notification settings - Fork 76
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
"value x$2" when wiring a parametrised type #197
Comments
Thanks for reporting the issue! autowire[Dependencies](
config.api,
config.user,
config.passwordReset,
config.email,
DefaultIdGenerator,
clock,
sttpBackend,
PrometheusMetrics.default[IO](
namespace = "tapir",
registry = new CollectorRegistry()
),
xa,
buildHttpApi _,
new EmailService(_, _, _, _, _),
EmailSender.create _,
new ApiKeyAuthToken(_),
new PasswordResetAuthToken(_)
) it works. For now, I can see two workarounds:
|
I doubt #198 would have any impact as here we are not creating an instance of Interesting that it's the default parameters that are a problem ... do you have a small test case? :) |
Right, I thought that we may use autowire to create instances of No, unfortunately, I don't have any small test case for it yet :( |
I've managed to create a test case for this issue
I think it's a quite specific issue that is easy to work around, so I'm not sure if it makes sense to work on a fix at this point |
Hm interesting ;-) Well if there's no obvious fix, it's at least good that we have a test case now - who knows, maybe this will get fixed in some future Scala release :-) |
Using
PrometheusMetrics[IO]
as a dependency causes problems when compiling bootzooka:As a work-around, the dependency is created by hand: https://github.com/softwaremill/bootzooka/blob/tapir-update/backend/src/main/scala/com/softwaremill/bootzooka/Dependencies.scala#L36 (note that this is currently on a branch)
To reproduce, change the
Dependencies
class to:The text was updated successfully, but these errors were encountered: