You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:(36, 33) diverging implicit expansion for type configs.ConfigReader[java.util.List[Foo2]]
starting with method fromStringConfigReader in class ConfigReaderInstances
val result2_1 = ConfigReader[List[Foo2]].read(config2_1, "foo")
Error:(36, 33) diverging implicit expansion for type configs.ConfigReader[Option[MyEnum.MyEnum]]
starting with macro method autoDeriveConfigReader in class ConfigReaderInstances3
val result2_1 = ConfigReader[List[Foo2]].read(config2_1, "foo")
Error:(36, 33) not enough arguments for method apply: (implicit A: configs.ConfigReader[List[Foo2]])configs.ConfigReader[List[Foo2]] in object ConfigReader.
Unspecified value parameter A.
val result2_1 = ConfigReader[List[Foo2]].read(config2_1, "foo")
The same problem appears in other similar cases. For example:
Error:(44, 33) diverging implicit expansion for type configs.ConfigReader[Either[Int,String]]
starting with method eitherReader in object Bug
val result3_1 = ConfigReader[List[EitherExample]].read(config3_1, "foo")
Error:(44, 33) diverging implicit expansion for type configs.ConfigReader[java.util.List[EitherExample]]
starting with method fromStringConfigReader in class ConfigReaderInstances
val result3_1 = ConfigReader[List[EitherExample]].read(config3_1, "foo")
Error:(44, 33) diverging implicit expansion for type configs.ConfigReader[Either[Int,String]]
starting with macro method autoDeriveConfigReader in class ConfigReaderInstances3
val result3_1 = ConfigReader[List[EitherExample]].read(config3_1, "foo")
Error:(44, 33) not enough arguments for method apply: (implicit A: configs.ConfigReader[List[EitherExample]])configs.ConfigReader[List[EitherExample]] in object ConfigReader.
Unspecified value parameter A.
val result3_1 = ConfigReader[List[EitherExample]].read(config3_1, "foo")
Note: All examples compile and run with Scala 2.13. However, I do not have the option to upgrade beyond 2.11 in the project I am working on.
Any clues as to what is happening and whether it can be fixed or avoided?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi
I have come across an interesting problem when using configs version 0.4.4 and 0.5.0-SNAPSHOT (22ad412) with scala 2.11.
Example:
Reading this class from a config works:
However, reading a List (or Seq) of this class does not compile!
The same problem appears in other similar cases. For example:
with the following reader:
Reading this class from a config works:
However, reading a List (or Seq) of this class does not compile!
Note: All examples compile and run with Scala 2.13. However, I do not have the option to upgrade beyond 2.11 in the project I am working on.
Any clues as to what is happening and whether it can be fixed or avoided?
Thank you!
The text was updated successfully, but these errors were encountered: