ficus icon indicating copy to clipboard operation
ficus copied to clipboard

Scala3 migration guide

Open bwbecker opened this issue 3 years ago • 5 comments

I'm trying to migrate a project which uses ficus to Scala3. I'm getting a compile-time error:

[error] -- [E008] Not Found Error: /Users/bwbecker/uw/cs135/scala/lintR/src/main/scala/cs135/config/Config.scala:9:33 
[error] 9 |import net.ceedubs.ficus.readers.ArbitraryTypeReader._
[error]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   |value ArbitraryTypeReader is not a member of net.ceedubs.ficus.readers, but could be made available as an extension method.

I see that ficus/src/main/scala-3/net/ceedubs/ficus/readers/ArbitraryTypeReader.scala is only four lines long, one of which is //TODO. So I'm guessing that ficus isn't really ready for Scala3 even though there is a Scala3 release on Maven.

Can someone confirm or provide guidance on how to proceed?

bwbecker avatar Jun 20 '22 18:06 bwbecker

This lib is no longer actively maintained. The easiest way might be helping the project migrating away from focus to another replacement lib.

kailuowang avatar Jun 21 '22 00:06 kailuowang

Thanks for the head's up. I wondered, but didn't see anything to that effect so was still hopeful.

bwbecker avatar Jun 21 '22 00:06 bwbecker

Do you have any recommendations for alternatives? A quick look through Scaladex suggests

  • https://index.scala-lang.org/2m/ciris-hocon
  • https://scalameta.org/metaconfig/
  • https://github.com/pureconfig/pureconfig

bwbecker avatar Jun 21 '22 00:06 bwbecker

I use pureconfig

kailuowang avatar Jun 21 '22 04:06 kailuowang

Thanks!

bwbecker avatar Jun 21 '22 12:06 bwbecker