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

Improvements & bug fixes to the new startup messages #3147

Merged
merged 7 commits into from
Apr 27, 2017

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Apr 27, 2017

The two new startup messages introduced in sbt 0.13.15 are:

  • when writing out sbt.version, for build reproducability, and
  • when informing the user about sbt's shell, for the performance improvement

When writing out sbt.version the messaging now:

  • correctly uses a logger rather than println
  • honours the log level set, for instance by --error
  • never executes when sbt "new" is being run

When informing the user about sbt's shell the messaging now:

  • is a 1 line message, rather than 3
  • is at info level, rather than warn level
  • can be suppressed with suppressSbtShellNotification := true
  • only triggers when "compile" is being run
  • never shows when sbt "new" is being run

Fixes #3091
Fixes #3097

Specifically:

* Make them both commands, so they run after early commands (--error).
* Make notifyUsersAboutShell aware of "iflast shell" instead of "boot".
* Make writeSbtShell use a logger and tweak the message

Refs sbt#3091
This requires moving the notification to after LoadProject, so much
later in time, sadly..

Refs sbt#3091
This is a change in strategy.

The motivation is the need to find a good balance between:

  + informing the uninformed that would benefit from this information, &
  + not spamming the already informed

Making it dependent on "compile" being present in remainingCommands will
probably make it trigger for, for example, Maven users who are used to
running "mvn compile" and always run "sbt compile", and who therefore
are unneccesarily suffering terribly slow compile speeds by starting up
the jvm and sbt every time.

Fixes sbt#3091
@dwijnand dwijnand requested a review from eed3si9n April 27, 2017 15:40
@dwijnand dwijnand added this to the 0.13.16 milestone Apr 27, 2017
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Thanks for addressing this.

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 this pull request may close these issues.

None yet

2 participants