Commit Graph

9 Commits

Author SHA1 Message Date
bitloi f8704752e0
[2.x] feat: Add scriptedKeepTempDirectory setting (#8621)
CI / test (temurin, 11, 10, ubuntu-latest) (push) Waiting to run Details
CI / test (temurin, 11, 10, windows-latest) (push) Waiting to run Details
CI / test (temurin, 11, 11, ubuntu-latest) (push) Waiting to run Details
CI / test (temurin, 21, 1, ubuntu-22.04) (push) Waiting to run Details
CI / test (zulu, 25, 3, ubuntu-latest) (push) Waiting to run Details
CI / test (zulu, 25, 4, ubuntu-latest) (push) Waiting to run Details
CI / test (zulu, 25, 5, ubuntu-latest) (push) Waiting to run Details
CI / test (zulu, 25, 7, ubuntu-latest) (push) Waiting to run Details
CI / test (zulu, 8, 2, ubuntu-latest) (push) Waiting to run Details
Client Test / test (temurin, 17, macos-latest) (push) Waiting to run Details
Client Test / test (zulu, 8, ubuntu-latest) (push) Waiting to run Details
Client Test / test (zulu, 8, windows-latest) (push) Waiting to run Details
Submit Dependency Graph / Submit Dependency Graph (push) Waiting to run Details
Server Test / test (push) Waiting to run Details
**Problem**

When running scripted tests to debug sbt plugins, the temporary directories (`/private/var/folder/...`) are automatically deleted after tests complete. This makes it difficult to inspect the test state for debugging purposes, requiring workarounds like adding `$ pause` commands and manually copying directories.

**Solution**

Added a new `scriptedKeepTempDirectory` setting that allows users to preserve temporary directories after scripted tests complete. When enabled, the temporary directory path is logged so users can inspect it.

Usage:
```scala
scriptedKeepTempDirectory := true
```
2026-01-23 21:22:50 -05:00
Satoshi Dev 43e0428bed
[2.x] fix: trim whitespace from sbt.version in build.properties (#8524)
When sbt.version in build.properties has trailing whitespace,
sbt incorrectly reports a version mismatch even after reboot.

This fix trims the property value in all places where sbt.version
is read from build.properties:
- Main.scala (version mismatch warning)
- MainLoop.scala (clean command version detection)
- ScriptedTests.scala (test compatibility check)

Fixes #8103
2026-01-13 21:13:47 -05:00
gayanMatch 65af6c59d6 Fix #3746: Scripted should fail when no tests match the pattern 2026-01-09 13:57:58 -06:00
xuwei-k 5d660ab8b5 remove unnecessary `case`
- 3ca3633505/rules/src/main/scala/fix/RemoveParameterUntuplingCase.scala
- https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling.html
- https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling-spec.html
2025-02-22 08:48:29 +09:00
xuwei-k 13d6626564 update .scalafmt.conf. enforce new scala 3 syntax 2025-01-02 11:25:34 +09:00
Eugene Yokota 56941dac04 refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
xuwei-k 34832a1c3e delete sbt.internal.CompatParColls 2024-10-23 08:47:38 +09:00
xuwei-k cfb9ffea95 remove deprecated `[this]` qualifier
https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html
2024-10-03 21:16:48 +09:00
Eugene Yokota 4af0024238 refactor: Move scripted-sbt-redux back to scripted-sbt
**Problem**
During sbt 1.x we created scripted-sbt-redux for package name change.

**Solution**
We can move the module back to scripted-sbt, which simplifies things.
2024-09-15 01:58:23 -04:00