Skip to content

sbt 1.4.1: watchBeforeCommand is no longer executed in ~compile #6015

@ritschwumm

Description

@ritschwumm

steps

create a minimal project

// build.sbt
organization	:= "de.test"
version			:= "0.0.1"
name			:= "repro"
scalaVersion	:= "2.13.3"

watchBeforeCommand	:= { () =>
	println("WATCHBEFORE")
	watchBeforeCommand.value()
}
# project/build.properties
sbt.version=1.4.1
// src/main/Repro.scala
package repro

object Repro {
	def main(args:Array[String]):Unit	= {
		println("hallo")
	}
}

run ~sbt compile and change the print statement in object Repro

problem

WATCHBEFORE is not printed to the console before compilation starts

expectation

WATCHBEFORE is printed to the console before compilation starts, this worked in sbt 1.3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea/watchIssues around ~ (triggered execution, watch)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions