mirror of https://github.com/sbt/sbt.git
commit
af0cfc9740
|
|
@ -76,7 +76,7 @@ The subject of the bug report doesn't matter. A more descriptive subject is cert
|
||||||
|
|
||||||
If possible, please format code or console outputs.
|
If possible, please format code or console outputs.
|
||||||
|
|
||||||
On Github it's:
|
On GitHub it's:
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
name := "foo"
|
name := "foo"
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ sbt 1.x
|
||||||
---------
|
---------
|
||||||
|
|
||||||
This is the 1.x series of sbt. The source code of sbt is split across
|
This is the 1.x series of sbt. The source code of sbt is split across
|
||||||
several Github repositories, including this one.
|
several GitHub repositories, including this one.
|
||||||
|
|
||||||
- [sbt/io][sbt/io] hosts `sbt.io` module.
|
- [sbt/io][sbt/io] hosts `sbt.io` module.
|
||||||
- [sbt/util][sbt/util] hosts a collection of internally used modules.
|
- [sbt/util][sbt/util] hosts a collection of internally used modules.
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ object TestResultLogger {
|
||||||
/** A `TestResultLogger` that does nothing. */
|
/** A `TestResultLogger` that does nothing. */
|
||||||
val Null = const(_ => ())
|
val Null = const(_ => ())
|
||||||
|
|
||||||
/** SBT's default `TestResultLogger`. Use `copy()` to change selective portions. */
|
/** sbt's default `TestResultLogger`. Use `copy()` to change selective portions. */
|
||||||
val Default = Defaults.Main()
|
val Default = Defaults.Main()
|
||||||
|
|
||||||
/** Twist on the default which is completely silent when the subject module doesn't contain any tests. */
|
/** Twist on the default which is completely silent when the subject module doesn't contain any tests. */
|
||||||
|
|
@ -84,7 +84,7 @@ object TestResultLogger {
|
||||||
|
|
||||||
object Defaults {
|
object Defaults {
|
||||||
|
|
||||||
/** SBT's default `TestResultLogger`. Use `copy()` to change selective portions. */
|
/** sbt's default `TestResultLogger`. Use `copy()` to change selective portions. */
|
||||||
case class Main(
|
case class Main(
|
||||||
printStandard_? : Output => Boolean = Defaults.printStandard_?,
|
printStandard_? : Output => Boolean = Defaults.printStandard_?,
|
||||||
printSummary: TestResultLogger = Defaults.printSummary,
|
printSummary: TestResultLogger = Defaults.printSummary,
|
||||||
|
|
|
||||||
|
|
@ -449,7 +449,7 @@ object Keys {
|
||||||
val skip = taskKey[Boolean]("For tasks that support it (currently only 'compile', 'update', and 'publish'), setting skip to true will force the task to not to do its work. This exact semantics may vary by task.").withRank(BSetting)
|
val skip = taskKey[Boolean]("For tasks that support it (currently only 'compile', 'update', and 'publish'), setting skip to true will force the task to not to do its work. This exact semantics may vary by task.").withRank(BSetting)
|
||||||
val templateResolverInfos = settingKey[Seq[TemplateResolverInfo]]("Template resolvers used for 'new'.").withRank(BSetting)
|
val templateResolverInfos = settingKey[Seq[TemplateResolverInfo]]("Template resolvers used for 'new'.").withRank(BSetting)
|
||||||
val interactionService = taskKey[InteractionService]("Service used to ask for user input through the current user interface(s).").withRank(CTask)
|
val interactionService = taskKey[InteractionService]("Service used to ask for user input through the current user interface(s).").withRank(CTask)
|
||||||
val insideCI = SettingKey[Boolean]("insideCI", "Determines if the SBT is running in a Continuous Integration environment", AMinusSetting)
|
val insideCI = SettingKey[Boolean]("insideCI", "Determines if the sbt is running in a Continuous Integration environment", AMinusSetting)
|
||||||
|
|
||||||
// sbt server internal
|
// sbt server internal
|
||||||
val collectAnalyses = taskKey[Unit]("Collect analysis file locations for later use.")
|
val collectAnalyses = taskKey[Unit]("Collect analysis file locations for later use.")
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ object CoursierArtifactsTasks {
|
||||||
|
|
||||||
val stdArtifactsSet = sbtArtifacts.flatMap(_.map { case (_, a) => a }.toSeq).toSet
|
val stdArtifactsSet = sbtArtifacts.flatMap(_.map { case (_, a) => a }.toSeq).toSet
|
||||||
|
|
||||||
// Second-way of getting artifacts from SBT
|
// Second-way of getting artifacts from sbt
|
||||||
// No obvious way of getting the corresponding publishArtifact value for the ones
|
// No obvious way of getting the corresponding publishArtifact value for the ones
|
||||||
// only here, it seems.
|
// only here, it seems.
|
||||||
val extraSbtArtifacts = getOpt(
|
val extraSbtArtifacts = getOpt(
|
||||||
|
|
@ -139,7 +139,7 @@ object CoursierArtifactsTasks {
|
||||||
).getOrElse(Nil)
|
).getOrElse(Nil)
|
||||||
.filterNot(stdArtifactsSet)
|
.filterNot(stdArtifactsSet)
|
||||||
|
|
||||||
// Seems that SBT does that - if an artifact has no configs,
|
// Seems that sbt does that - if an artifact has no configs,
|
||||||
// it puts it in all of them. See for example what happens to
|
// it puts it in all of them. See for example what happens to
|
||||||
// the standalone JAR artifact of the coursier cli module.
|
// the standalone JAR artifact of the coursier cli module.
|
||||||
def allConfigsIfEmpty(configs: Iterable[ConfigRef]): Iterable[ConfigRef] =
|
def allConfigsIfEmpty(configs: Iterable[ConfigRef]): Iterable[ConfigRef] =
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ object Example {
|
||||||
|
|
||||||
val x =
|
val x =
|
||||||
reset {
|
reset {
|
||||||
shift { k: (Int=>Int) =>
|
shift { k: (Int => Int) =>
|
||||||
k(k(k(7)))
|
k(k(k(7)))
|
||||||
} + 1
|
} + 1
|
||||||
} * 2
|
} * 2
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ package another.pkg {
|
||||||
|
|
||||||
package console.test.pkg {
|
package console.test.pkg {
|
||||||
// we won't check console output in the report
|
// we won't check console output in the report
|
||||||
// until SBT supports that
|
// until sbt supports that
|
||||||
class ConsoleTests {
|
class ConsoleTests {
|
||||||
@Test
|
@Test
|
||||||
def sayHello(): Unit = {
|
def sayHello(): Unit = {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ export async function activate(context: ExtensionContext) {
|
||||||
terminal = vscode.window.createTerminal(`sbt`);
|
terminal = vscode.window.createTerminal(`sbt`);
|
||||||
terminal.show();
|
terminal.show();
|
||||||
terminal.sendText("sbt");
|
terminal.sendText("sbt");
|
||||||
// Wait for SBT server to start
|
// Wait for sbt server to start
|
||||||
let retries = 60;
|
let retries = 60;
|
||||||
while (retries > 0) {
|
while (retries > 0) {
|
||||||
retries--;
|
retries--;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue