Commit Graph

17314 Commits

Author SHA1 Message Date
eugene yokota c60142e061
Merge pull request #8029 from eed3si9n/wip/metals
[2.x] fix: Fix semanticdbEnabled
2025-02-02 20:02:45 -05:00
Eugene Yokota c6b7b5a061 [2.x] fix: Fix semanticdbEnabled
**Problem**
semanticdbEnabled doesn't work on sbt 2.x
1. classes directory has changed during compilation
2. semanticdb scalacOptions are duplicated for Test

**Solution**
1. change to using the backend directory
2. reimplement scalacOptions handling
2025-02-01 01:28:57 -05:00
eugene yokota 8d80bf5c39
Merge pull request #8024 from unkarjedy/fix-8022-updateSbtClassifiers
[2.x] fix updateSbtClassifiers task
2025-01-30 23:38:52 -05:00
Dmitrii Naumenko 20c1f0245f fix link to testing sbt plugins in DEVELOPING.md 2025-01-29 14:54:09 +01:00
Dmitrii Naumenko 9352e1cdad [2.x] fix: updateSbtClassifiers task fails with error (#8022)
In `classifiersModuleTask` we now don't include the full plugin classpath, but include only the dependency classpath (effectively excluding sbt.PluginData.definitionClasspath). Only items from the dependency classpath are considered to be published. Only for them we can download classifier artifacts later in the `updateSbtClassifiers` pipeline.

This also fixes integration test "dependency-management/update-sbt-classifiers".
I also made the test stricter, it now tests the module ids that are included in the sbt classpath.
2025-01-29 14:54:09 +01:00
eugene yokota 05a321b26a
Merge pull request #8023 from eed3si9n/wip/scripted
[2.x] test: Bump 2.12 versions in scripted
2025-01-29 08:14:39 -05:00
Eugene Yokota c9e696d1bf Bump 2.12 versions in scripted
Problem/Solution
This bumps the Scala 2.12 version used in scripted tests to 2.12.20.
This also removes an old test that uses Scala 2.10.
2025-01-29 07:02:14 -05: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 5647bab8f3
Merge pull request #8019 from jsoref/issue-8003
Make timing outputs consistently show hours and hint at time format
2025-01-27 14:50:46 -05:00
Josh Soref 0493dee315 Make timing outputs consistently show hours and hint at time format
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2025-01-27 12:42:53 -05:00
eugene yokota 1b712d2c6b
Merge pull request #8013 from eed3si9n/wip/position2 2025-01-21 09:55:26 -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 4a7e1097d9 fix: Fix build.sbt position
**Problem**
Compiler warnings and errors is not correct for build.sbt.

**Solution**
This adds line offset to the synthetic Scala file
so the original line position is displayed in the errors.
2025-01-20 01:35:54 -05:00
eugene yokota 2323250b01
Merge pull request #8011 from xuwei-k/Scala-3-6-3 2025-01-16 09:00:14 -05:00
xuwei-k b481e0a0b6 Scala 3.6.3 2025-01-16 19:47:01 +09:00
eugene yokota e2acec57b7
Merge pull request #8006 from eed3si9n/wip/run 2025-01-13 08:37:50 -05:00
eugene yokota 873f8b1261
Merge branch 'develop' into wip/run 2025-01-12 18:05:11 -05:00
eugene yokota 2f53aa9991
Merge pull request #8007 from eed3si9n/wip/refactor-main-loop
[2.x] refactor: Refactor MainLoop.scala
2025-01-12 18:00:20 -05:00
Eugene Yokota 08fcea4c77 refactor: Refactor MainLoop.scala
**Problem/Solution**
This refactors MainLoop.scala.
2025-01-12 03:03:03 -05:00
Eugene Yokota cd09003583 fix: Fix sbtn not showing run
**Problem**
Currently sbtn doesn't correctly display the stdout
during `run` because by the time it starts the terminal has been reset.

**Solution**
Don't reset the terminal in-between the tasks.
2025-01-12 02:24:23 -05:00
Eugene Yokota bcad9f6887 fix: Fix run getting stuck
**Problem**
When the run ends too quickly it gets stuck.

**Solution**
This doesn't pause the channel if the job is already done.
2025-01-12 01:30:12 -05: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 07378b4a69
Merge pull request #7819 from xuwei-k/ControlEvent-Enumeration
[2.x] use `enum` instead of `scala.Enumeration` in `scala.util.LogEvent`
2025-01-05 18:25:37 -05:00
eugene yokota a09a724b06
Merge branch 'develop' into ControlEvent-Enumeration 2025-01-05 17:04:57 -05:00
eugene yokota 0662649598
Merge pull request #8001 from xuwei-k/withFilter
use `withFilter` instead of `filter`
2025-01-05 05:17:14 -05:00
xuwei-k da26f3078b use withFilter instead of filter 2025-01-04 09:10:36 +09:00
eugene yokota 43ceda68b6
Merge pull request #8000 from eed3si9n/wip/io
[2.x] IO 1.10.4
2025-01-03 13:37:18 -05:00
Eugene Yokota 0fa3ed57c1 IO 1.10.4 2025-01-03 05:27:58 -05:00
xuwei-k 358f2d9fdc use enum instead of scala.Enumeration 2025-01-03 12:07:41 +09:00
eugene yokota 7f86575314
Merge pull request #7999 from xuwei-k/remove-unused-privates 2025-01-02 05:31:56 -05:00
eugene yokota 79a75bf23b
Merge pull request #7998 from xuwei-k/typo 2025-01-02 05:30:43 -05:00
xuwei-k 614d9ce985 remove unused private val and def 2025-01-02 18:48:32 +09:00
xuwei-k 0d0cd2eabf fix typo 2025-01-02 13:52:51 +09:00
eugene yokota 52d36653da
Merge pull request #7997 from xuwei-k/scalafmt-convertToNewSyntax
[2.x] update `.scalafmt.conf`. enforce new scala 3 syntax
2025-01-01 22:34:03 -05:00
eugene yokota 734d06a3c6
Merge pull request #7996 from xuwei-k/enum-sealed-trait 2025-01-01 22:04:23 -05:00
eugene yokota 2f75863c09
Merge pull request #7995 from xuwei-k/using-param-anonymous 2025-01-01 22:03:16 -05:00
xuwei-k 13d6626564 update .scalafmt.conf. enforce new scala 3 syntax 2025-01-02 11:25:34 +09:00
xuwei-k a7ba960c17 use enum instead of sealed trait 2025-01-02 10:52:37 +09:00
xuwei-k e0a51807bc change to using param anonymous if possible 2025-01-02 10:35:15 +09:00
eugene yokota 1a8e5fbd4d
Merge pull request #7994 from xuwei-k/unused-build-file
[2.x] remove unused code in build files
2025-01-01 14:30:12 -05:00
xuwei-k 3452b9eb26 remove unused code in build files 2025-01-01 19:19:48 +09:00
xuwei-k d7ec1013da remove unused type params 2025-01-01 18:42:59 +09:00
eugene yokota e04039a2ed
Merge pull request #7992 from xuwei-k/foreach-map
[2.x] use `foreach` instead of `map`
2025-01-01 03:07:05 -05:00
eugene yokota 8be482533a
Merge pull request #7991 from xuwei-k/lazyZip
[2.x] use `lazyZip`
2025-01-01 03:06:26 -05:00