-
Notifications
You must be signed in to change notification settings - Fork 935
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
document the fact that project/build.properties file gets created #4503
Comments
When we say "sbt", there are actually three parts to the program:
When someone installs "sbt", depending on the packaging you could have:
but generally speaking, we think of the launcher script as a sbt-version agnostic launching device ( analogous to |
Thank you, that’s helpful. I think if I discuss my last point any further (#2 under “expectation”) it might be confusing, so I don’t want to pursue that right now. My bigger concern is that running
It may just be a misunderstanding on my part, but with the help text stating, “Provides the version of sbt,” it was a big surprise that this command writes to project/build.properties. (Thanks.) |
The creation of |
The |
Thanks for your help on this! |
problem
The behavior of
sbtVersion
is inconsistent. The help text states, “Provides the version of sbt. This setting should not be modified.” But the actual behavior is:steps
The following examples show the issue(s).
(1) Move into an existing SBT project that has no project/build.properties file
Results:
(2) Move into an SBT project that has an existing project/build.properties file
In this example, project/build.properties already has
sbt.version=1.1.1
:Results:
(3) In my HOME directory, it creates a project directory and project/build.properties file
This is the behavior in my HOME directory:
Results:
(4) In an empty directory, it reports the version of the SBT executable
This is the behavior in a non-SBT directory that is not my HOME directory:
Results:
sbt
executable (without creating a project directory)expectation
sbt
executable installed on my system, or (b) the version of SBT that’s configured in project/build.properties of the current project, assuming I’m in an SBT project directory. It seems like these are two different requests that require different commands.notes
sbt version: 1.2.6 (installed on MacOS with Homebrew)
The text was updated successfully, but these errors were encountered: