You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Implementation of nsc.tools.settings.ScalaVersion's unparse uses dots as a separator, whether there is something interesting to separate or not.
@gourlaysama said:
I got bitten by this too. ScalaVersion should at least be consistent:
scala>ScalaVersion(ScalaVersion("2.11.3").unparse)
java.lang.NumberFormatException:There was a problem parsing 2.11.3.. Versions should be in the form major[.minor[.revision]] where each part is a positive number, as in 2.10.1. The minor and revision parts are optional.
at scala.tools.nsc.settings.ScalaVersion$$anonfun$apply$1.apply(ScalaVersion.scala:114)
at scala.tools.nsc.settings.ScalaVersion$$anonfun$apply$1.apply(ScalaVersion.scala:114)
at scala.tools.nsc.settings.ScalaVersion$.errorAndValue$1(ScalaVersion.scala:78)
at scala.tools.nsc.settings.ScalaVersion$.apply(ScalaVersion.scala:109)
at scala.tools.nsc.settings.ScalaVersion$.apply(ScalaVersion.scala:114)
... 33 elided
The current Implementation of
nsc.tools.settings.ScalaVersion
'sunparse
uses dots as a separator, whether there is something interesting to separate or not.It makes Iulian's eyes bleed.
EDIT: Version numbers like 2.11.2.-20140706-234733-75ac225015
The text was updated successfully, but these errors were encountered: