Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdoc 2.2.15 fails with NumberFormatException #449

Closed
sideeffffect opened this issue Jan 18, 2021 · 2 comments · Fixed by #450
Closed

mdoc 2.2.15 fails with NumberFormatException #449

sideeffffect opened this issue Jan 18, 2021 · 2 comments · Fixed by #450

Comments

@sideeffffect
Copy link
Contributor

With Dotty 0.27.0-RC1.

java.lang.NumberFormatException: For input string: "0-RC1"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at scala.collection.immutable.StringLike.toInt(StringLike.scala:304)
	at scala.collection.immutable.StringLike.toInt$(StringLike.scala:304)
	at scala.collection.immutable.StringOps.toInt(StringOps.scala:33)
	at mdoc.MdocPlugin$.$anonfun$compatibleScalaVersion$2(MdocPlugin.scala:70)
	at mdoc.MdocPlugin$.$anonfun$compatibleScalaVersion$2$adapted(MdocPlugin.scala:70)
	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:285)
	at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
	at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
	at scala.collection.TraversableLike.map(TraversableLike.scala:285)
	at scala.collection.TraversableLike.map$(TraversableLike.scala:278)
	at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
	at mdoc.MdocPlugin$.$anonfun$compatibleScalaVersion$1(MdocPlugin.scala:70)

https://app.circleci.com/pipelines/github/zio/zio-prelude/1189/workflows/aaf68708-e248-4dbb-b510-26696dba7693/jobs/8574
zio/zio-prelude#503
mdoc 2.2.14 works OK.

@tgodzik
Copy link
Contributor

tgodzik commented Jan 18, 2021

Thanks for reporting! I should update it so that Scala 3 is also properly handled, however I don't have access to the logs - when does it exactly happen? Is docs/run run for Scala 3 or does it happen when just starting sbt with the Scala 3 version?

@sideeffffect
Copy link
Contributor Author

I believe this happens in ./sbt coreJVM/doc coreJS/doc
https://github.com/zio/zio-prelude/blob/master/.circleci/config.yml#L121

btw I've opened PR with a hotfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants