Skip to content

Commit 632ce2b

Browse files
authored
Added note for macro compilation errors with multiple jsoniter-scala versions on the classpath (#1290)
1 parent ef75e77 commit 632ce2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ and [here](https://github.com/plokhotnyuk/play/blob/master/src/main/scala/micros
387387
- use `sbt clean compile stage` or `sbt clean test stage` instead of just `sbt clean stage`, like in
388388
[this repo](https://github.com/hochgi/HTTP-stream-exercise/tree/jsoniter-2nd-round)
389389
- use `mill clean` if mill's native BSP support is used in IntelliJ IDEA
390+
- ensure that only one version of jsoniter-scala is on the classpath! Having different versions (e.g. through dependencies) will trigger this error. Use `dependencyTree`/[`dependencyGraph`](https://www.scala-sbt.org/sbt-dependency-graph) or similar mechanisms to see if this is the case. If this happens, use [exclusionRules](https://www.scala-sbt.org/1.x/docs/Library-Management.html#Exclude+Transitive+Dependencies) to get rid of the wrong versions.
390391

391392
3. [Unexpected compiler errors](https://github.com/plokhotnyuk/jsoniter-scala/issues/551)
392393
can happen during compilation of ADT definitions or their derived codecs if they are nested in some classes or functions

0 commit comments

Comments
 (0)