spectrum-finance / ergo-dex-backend

Spectrum Finance backend services including AMM bots and OrderBook matcher
Creative Commons Zero v1.0 Universal
39 stars 17 forks source link

HowTo.scala throws error when running as instructed #96

Open dideldei opened 10 months ago

dideldei commented 10 months ago

When trying to run HowTo.scala the following error occurs.

sbt "; project amm-executor; test"

[error] ## Exception when compiling 133 sources to C:\Users\didel\ergo-dex-backend\modules\dex-core\target\scala-2.12\classes [error] scala.reflect.internal.FatalError: Error accessing C:\Users\didel\AppData\Local\Coursier\Cache\v1\https\repo1.maven.org\maven2\com\github\pureconfig\pureconfig-core_2.12\0.14.1\pureconfig-core_2.12-0.14.1.jar

I tried with JDK 11, 17, 21 on a Windows 10 and a Debian Linux machine and the same error occured in all scenarios.

stlufi commented 10 months ago

It appears that this specific jar ("com.github.pureconfig" %% "pureconfig-core" % "0.14.1") from Maven Central is broken, because IntelliJ won't display its contents (which it does for every other jar) and forcing the build to use version 0.14.0 of the pureconfig libs compiles and runs the test just fine (and IntelliJ displays its contents, too).

Tried this on Arch Linux with SBT 1.5.5 with JDK 11 and 17 (the versions shipping with Arch Linux).