scala2ts / scala2ts-sbt

The SBT Plugin for Scala2TS
MIT License
3 stars 1 forks source link

Enumeratum seems to be required, but is not documented #17

Open jonathonherbert opened 4 years ago

jonathonherbert commented 4 years ago

When adding this plugin and compiling, I get the following message:

scala.ScalaReflectionException: object enumeratum.EnumEntry in compiler mirror not found.

If I add enumeratum to my project in build.sbt, the plugin works correctly:

libraryDependencies += "com.beachape" %% "enumeratum" % "1.5.15"

Is enumeratum a dependency of this project? Is it something the user should need to install, or is there a way of including it by default? (Apologies, I'm new-ish to Scala and especially to sbt, I'm not really sure how that works!)

halfmatthalfcat commented 4 years ago

Ah interesting, let me look into this. Thanks for raising an issue.

halfmatthalfcat commented 4 years ago

Hmmm so it is included as a dependency of scala2ts-core, which is brought in by scala2ts-sbt to actually create the TS as seen here. Admittedly, I already had enumeratum in my test project, so I must have missed this. I'll keep checking it out.