I want to stop early if there is an error during sbt compile.

Asked 1 years ago, Updated 1 years ago, 61 views

If there is an error when compiling from the sbt console, I would like it to stop as soon as possible.

When compiling continuously, such as ~compile, there is a very meaningless error in the back and you have to scroll until you see the first error.

A meaningless error, for example, when you rename a variable, seems to force the compilation to continue even if you get an error like object xxxx missing object xxx.method does not follow an error like func(xxx).method.Compile each fix when large-scale refactoring (such as changing the package name) → find the beginning of this error log and scroll → check it (without using IDE...)

Stop compiling by guessing, stop compiling with 10 errors, stop outputting error logs with 10 errors.

scala sbt

2022-09-30 16:40

1 Answers

Stop the error log output at 10

You should be able to change the sbt configuration for .The default is 100.However, just changing it may not speed up the time.

https://github.com/sbt/sbt/blob/v0.13.11/main/src/main/scala/sbt/Defaults.scala#L160


2022-09-30 16:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.