Open
Description
steps
- create a new sbt project
- in project/build.properties, add the line
sbt.version=2.0.0-M3
(note the trailing blank) - start sbt
- see the message <sbt version mismatch, using: 2.0.0-M3, in build.properties: "2.0.0-M3 ", use 'reboot' to use the new value.>
- reboot
- see the message <sbt version mismatch, using: 2.0.0-M3, in build.properties: "2.0.0-M3 ", use 'reboot' to use the new value.>
- reload
- see the message <sbt version mismatch, using: 2.0.0-M3, in build.properties: "2.0.0-M3 ", use 'reboot' to use the new value.>
Same behavior when I'm using the entry sbt.version=1.10.11
.
sbt runner version: 1.10.11 sbt versions: 1.10.11, 2.0.0-M3
build.sbt:
scalaVersion := "3.6.4"
problem
Apparently, in build.properties, trailing whitespace is not trimmed.
In build.properties, trailing whitespace should be trimmed.
notes
I don't know how the specs for sbt look like. However, since trailing whitespace is difficult to recognize for humans - even with the error message, it was not immediately clear what sbt runner was complaining about -, I think it would not hurt to make the tool just a little bit more user-friendly.