Merge pull request #4164 from alodavi/alodavi/improving_loading_settings_messaging

Improving loading settings messaging
This commit is contained in:
eugene yokota 2018-05-23 16:18:08 -04:00 committed by GitHub
commit 7f808bd3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -1039,7 +1039,7 @@ private[sbt] object Load {
// Grab all the settings we already loaded from sbt files
def settings(files: Seq[File]): Seq[Setting[_]] = {
if (files.nonEmpty)
log.info(s"${files.map(_.getName).mkString("Loading settings from ", ",", " ...")}")
log.info(s"${files.map(_.getName).mkString(s"Loading settings for project ${p.id} from ", ",", " ...")}")
for {
file <- files
config <- (memoSettings get file).toSeq

View File

@ -0,0 +1,22 @@
### Improvements
Now when loading a project that has multiple build.sbt files the logger shows the path as well.
Before it was:
```bash
[info] Loading settings from build.sbt ...
[info] Loading settings from build.sbt ...
[info] Loading settings from build.sbt ...
[info] Loading settings from build.sbt ...
```
Now it's:
```bash
[info] Loading settings from /home/user/Work/personal/someProject/build.sbt ...
[info] Loading settings from /home/user/Work/personal/someProject/subProject1/build.sbt ...
[info] Loading settings from /home/user/Work/personal/someProject/subProject2/build.sbt ...
[info] Loading settings from /home/user/Work/personal/someProject/subProject3/build.sbt ...
```
This should solve the issue: https://github.com/sbt/sbt/issues/3607