Eric Peters

Results 35 comments of Eric Peters

I noticed there is a rich implementation in Slick that does this: https://github.com/slick/slick/blob/408f2e55aa0a7553a445c83b7ee5ef159f805694/slick/src/main/scala/slick/util/GlobalConfig.scala#L66 it seems a bit more advanced than other implementations (https://github.com/cakesolutions/scala-kafka-client/blob/master/client/src/main/scala/cakesolutions/kafka/TypesafeConfigExtensions.scala#L19), but I'm not an authority on java.util.Properties

@havocp I would suspect it would be better to add an implementation with a reasonable implementation, document what the conversions are, and wait for more in the community that need...

@havocp I think this does return back all string values other than the nesting of objects? https://github.com/slick/slick/blob/408f2e55aa0a7553a445c83b7ee5ef159f805694/slick/src/main/scala/slick/util/GlobalConfig.scala#L71

I think I want something like the "Levenshtein Distance" (https://en.wikipedia.org/wiki/Levenshtein_distance) score between the dictionary values. I can compute that in a separate code path.

Note for myself, need to update the structural typing (done in https://github.com/er1c/fm-common/blob/main/core/jvm/src/main/scala/fm/common/Resource.scala#L26)

@therockstorm do you have an example of the custom provider?

Example failing test: https://github.com/tpunder/fm-sbt-s3-resolver/pull/65

This is passing in: ``` resolvers += "Sonatype S01 OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots" addSbtPlugin("com.evenfinancial" % "fm-sbt-s3-resolver" % "0.21.0-SNAPSHOT") ```

@tpunder updated this... Took a bit of debugging, since your approach to localstack was different than mine - the end points/configs mattered a bit, so tweaked to get them working...