8000 build.properties Lines Not Trimmed When Read · Issue #8103 · sbt/sbt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
build.properties Lines Not Trimmed When Read #8103
Open
@hellerim

Description

@hellerim

steps

  1. create a new sbt project
  2. in project/build.properties, add the line sbt.version=2.0.0-M3 (note the trailing blank)
  3. start sbt
  4. 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.>
  5. reboot
  6. 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.>
  7. reload
  8. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0