Commit Graph

12386 Commits

Author SHA1 Message Date
Eugene Yokota a75e847a08 refactor: Refactor response handler
**Problem**
The sbtn response handling code is relatively stragightforward,
but it's a bit messy.

**Solution**
This cleans it up a bit, similar to the style used by Unfiltered
back then (not sure how Unfiltered plans are written nowadays) by
expressing each event handling as a partial function, and composing them
together using `orElse`.
2025-02-09 18:17:02 -05:00
Eugene Yokota 06acd261d5 Scala 2.13.16 2025-02-09 18:17:02 -05:00
eugene yokota c99a269bfb
Merge pull request #8032 from unkarjedy/1.10.x 2025-02-04 22:13:38 -05:00
Dmitrii Naumenko a7d862a08b detect user-specific jdk installations on macOs (fixes #8031)
User-specific JDKs are installed, for example, by IntelliJ IDEA
2025-02-04 18:11:40 +01:00
eugene yokota 58be9438f8
Merge pull request #8021 from eed3si9n/bport/8019
[1.x] Make timing outputs consistently show hours and hint at time format
2025-01-29 04:44:25 -05:00
Josh Soref 2ee5eb7fa7 Make timing outputs consistently show hours and hint at time format
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-29 04:20:37 -05:00
eugene yokota 4ae14cf689
Merge pull request #8020 from eed3si9n/wip/tid 2025-01-28 09:33:05 -05:00
Eugene Yokota 55b1fdeddb fix: Fix Chrome tracing file
**Problem**
We changed the content of Chrome tracing file incorrectly
and renamed tid to tname.

**Solution**
1. This renames tname back to to tid.
2. To retain the fix to avoid Thread#getId, this calls
   either the JDK 8 way or the JDK 19 way reflectively.
2025-01-28 04:11:36 -05:00
eugene yokota a1603d9952
Merge pull request #8012 from lrytz/sip51-warn
Add setting to allow demoting the SIP-51 build failure
2025-01-20 18:14:21 -05:00
Lukas Rytz e46843bfd9 Add setting to allow demoting the SIP-51 build failure
Add a `allowUnsafeScalaLibUpgrade` setting (default is `false`) to
demote the SIP-51 build failure to a warning.

If the scalaVersion is 2.13.12 but some dependency pulls in
scala-library 2.13.13, the compiler will stay at 2.13.12, but
the dependency classpath will contain scala-library 2.13.13.

This usually works, the compiler can run fine with a newer
scala-library on its dependency classpath.
Macro expansion may fail, if the macro uses some library
class / method that doesn't exist in the old version.
The macro itself is loaded from the dependency classpath
into the class loader running the compiler, where the older
Scala library is on the runtime classpath.
Using the Scala REPL in sbt may also fail in a similar fashion.
2025-01-20 10:00:13 +01:00
eugene yokota d99163b945
Merge pull request #8005 from dwickern/fix-npe
Fix race condition in NetworkChannel
2025-01-11 22:26:21 -05:00
Derek Wickern f0afda3dd0 make NetworkChannel#thread private 2025-01-11 13:08:18 -08:00
Derek Wickern a13bfd3ef9 fix race condition in NetworkChannel 2025-01-11 12:46:35 -08:00
eugene yokota fde334bdd6
Merge pull request #7983 from Friendseeker/lazy-previous-compile
[1.x] Avoid upstream compilation when calling `previousCompile`
2024-12-30 23:38:14 -05:00
friendseeker c834f500b9
Add comment 2024-12-30 19:30:15 -08:00
Friendseeker 1a8fa65af3 Avoid upstream compilation when calling previousCompile 2024-12-30 17:55:42 -08:00
adpi2 011c7083ad
Merge pull request #7913 from Friendseeker/sbt-7510
[1.x] Implement `jvmBuildTarget` for `workspace/buildTargets`
2024-12-30 09:06:53 +01:00
eugene yokota 038d9b28e4
Merge pull request #7969 from Friendseeker/clean-zinc-cache
[1.x] Clear Zinc Analysis Cache during `Compile / clean`, `Test / clean`
2024-12-28 23:57:59 -05:00
Friendseeker 13373415b3 Fix CI 2024-12-26 18:43:04 -08:00
friendseeker e23419efed Clean Zinc Cache for 'Compile / clean', 'Test / clean' 2024-12-26 15:37:33 -08:00
Friendseeker 838eee97cd Fix CI 2024-12-26 15:05:00 -08:00
Friendseeker 655310061f Add unit test 2024-12-26 14:56:18 -08:00
Friendseeker ad0ab07e99 Return jvmBuildTarget for workspace/buildTargets 2024-12-26 12:24:14 -08:00
Eugene Yokota 3529e20279 sbt 1.10.7 2024-12-22 21:26:54 -05:00
eugene yokota 03dc7172a7
Merge pull request #7970 from eed3si9n/wip/lm-coursier
[1.x] csrMavenDependencyOverride + Update lm-coursier to 2.1.7 + Zinc 1.10.7
2024-12-22 20:12:54 -05:00
Eugene Yokota de04f1f847 Update lm-coursier to 2.1.7
**Problem**
BOM support current has perf issues.

**Solution**
This bumps Coursier to 2.1.22.

This also adds a new setting `csrMavenDependencyOverride`,
which will default to false.
2024-12-22 19:59:49 -05:00
eugene yokota bb796dc0e4
Merge pull request #7966 from eed3si9n/wip/allow-empty
[1.x] fix: --allow-empty fixes
2024-12-22 03:37:04 -05:00
Eugene Yokota cd58481811 --allow-empty fixes
**Problem**
1. Currently users are automatically opted into -create-sbt,
   somewhat implicitly.
2. When somehow they are not, the check mechanism currently blocks for input.

**Solution**
1. Support a new location for sbtopts file under XSG_CONFIG_HOME/sbt
2. Rename -create-sbt to --allow-empty, and don't opt everyone in
3. Exit 1 instead of blocking for input
2024-12-22 02:21:38 -05:00
eugene yokota e81cfa21e2
Merge pull request #7968 from eed3si9n/wip/glob-fix
[1.x] fix: Fixes glob in scripted
2024-12-22 02:19:56 -05:00
Eugene Yokota 72c061a2a2 fix: Fixes glob in scripted
**Problem**
Absolute path handling regressed.

**Solution**
Create an absolute glob for expression starting with /.
2024-12-22 01:32:16 -05:00
eugene yokota e218c107f0
Merge pull request #7962 from Friendseeker/restore-disabled-test
[1.x] Restore disabled Multirepo integration test
2024-12-20 03:54:02 -05:00
friendseeker 7312398695
Restore Multirepo integration test 2024-12-20 00:12:57 -08:00
eugene yokota 7c5aea78ff
Merge pull request #7957 from Friendseeker/prepare-sbt-1-10-7
[1.x] Prepare for sbt `1.10.7`
2024-12-19 16:30:29 -05:00
Friendseeker 30c7be8d0d Prepare for sbt 1.10.7 2024-12-19 12:26:37 -08:00
eugene yokota 4318b5384b
Merge pull request #7952 from Friendseeker/bump-jline-2
[1.x] Bump JLine 2 to `9a88bc4`
2024-12-17 21:50:15 -05:00
Seth Tisue 4ad6745a64
Merge pull request #7953 from Friendseeker/new-cla
[1.x] Use new Scala CLA checker
2024-12-17 16:43:00 -08:00
Friendseeker e606b1f794 Use new Scala CLA checker 2024-12-17 14:58:29 -08:00
Friendseeker 3bdfc34c6b Bump JLine 2 to 9a88bc 2024-12-17 14:37:44 -08:00
eugene yokota 66935c460d
Merge pull request #7947 from eed3si9n/wip/giter8-0.17.0
[1.x] Update to Giter8 0.17.0
2024-12-14 23:12:20 -05:00
Eugene Yokota c3e4bc53c4 Giter8 0.17.0
**Problem/Solution**
Bump to Giter8 0.17.0.
2024-12-14 01:42:48 -05:00
eugene yokota f61100fe87
Merge pull request #7933 from eed3si9n/bport/exists
[1.x] feat: Support glob expressions in scripted
2024-12-09 02:55:22 -05:00
Eugene Yokota d21b2d250a feat: Support glob expressions in scripted
**Problem**
It's currently not easy to write a scripted test that works on
both sbt 1.x and 2.x when you want to write exists test under target.

**Solution**
Since we can only use the file system (and not evaluate Scala version etc)
1. this implements glob expression support in `exists`, `absent`, and `delete`.
2. this also introduces `||` operator that would mean a or b.
2024-12-08 23:38:00 -05:00
eugene yokota f996ad1a01
Merge pull request #7929 from eed3si9n/bport/cla
[1.x] New Scala CLA URL
2024-12-05 22:53:52 -05:00
Eugene Yokota ff4e6d90af New Scala CLA URL 2024-12-05 22:51:16 -05:00
Eugene Yokota 1b7d451d2a sbt 1.10.6 2024-11-30 01:24:29 -05:00
eugene yokota 8bdcb380f1
Merge pull request #7922 from eed3si9n/wip/bump-zinc
[1.x] Update to Zinc 1.10.5
2024-11-30 01:02:32 -05:00
Eugene Yokota 111eb123fa Call store.clearCache() 2024-11-30 00:51:20 -05:00
Eugene Yokota efe2a83c73 Zinc 1.10.5 2024-11-30 00:05:26 -05:00
eugene yokota 52cf06d80e
Merge pull request #7921 from eed3si9n/wip/bump-io
IO 1.10.2
2024-11-29 21:50:51 -05:00
eugene yokota b7e03605cd
Merge pull request #7920 from eed3si9n/wip/bump-coursier
lm-coursier 2.1.6
2024-11-29 21:48:55 -05:00