Skip to content

Bloop generate is automatically called during sbt project loading #1357

Open
@eatkins

Description

@eatkins

I've noticed with the latest metals that when I start sbt (in the sbt project) I see:

[info] welcome to sbt 1.4.0-M2 (Azul Systems, Inc. Java 1.8.0_252)
[info] loading settings for project sbt-build-build-build from metals.sbt ...
[info] loading project definition from ${SBT_LOCATION}/project/project/project
[info] loading settings for project sbt-build-build from metals.sbt ...
[info] loading project definition from ${SBT_LOCATION}/project/project
[success] Generated .bloop/sbt-build-build.json
[success] Generated .bloop/sbt-build-build.json
[success] Total time: 0 s, completed Aug 20, 2020 11:30:31 AM
[info] loading settings for project sbt-build from local.sbt,metals.sbt,plugins.sbt ...
[info] loading project definition from ${SBT_LOCATION}/project
[success] Generated .bloop/sbt-build.json
[success] Generated .bloop/sbt-build.json
[success] Total time: 1 s, completed Aug 20, 2020 11:30:32 AM

This makes sbt noticeably slower to start up. Without the bloop plugin, I find the sbt project loads in about 9 seconds. With the bloop plugin, it increases to about 11 seconds. I also would prefer not having the success messages displayed during project loading (though they did help make it obvious why startup got slower).

It would be great if the old behavior could be restored where the plugin did not automatically call bloopGenerate on load.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions