Commit Graph

10451 Commits

Author SHA1 Message Date
Ethan Atkins 7dc5590190 Don't use deprecated `in` inside of macros
The inputFileChanges, inputFiles and outputFiles macros all used the now
deprecated `in` syntax, which causes warnings for builds that use these
apis. SlashSyntax doesn't naively work in these macros so it was easier
to just reimplement the logic in this file.

Fixes #6330
2021-03-08 10:54:01 -08:00
eugene yokota 571005efa0
Merge pull request #6367 from eed3si9n/wip/pos-sourcefile
Make sure to also pass absolute sourceFile to sourceMappers, take 2
2021-03-07 15:09:50 -05:00
Matthias Kurz 6fbed26d22 Make sure to also pass absolute sourceFile to sourceMappers 2021-03-07 14:44:42 -05:00
eugene yokota 93fd5703b6
Merge pull request #6363 from eed3si9n/wip/nowarn
Work around "a pure expression does nothing" warning, take 3
2021-03-07 14:04:50 -05:00
eugene yokota 48fd4f46ba
Merge pull request #6364 from eed3si9n/wip/jline3
JLine 3.19.0
2021-03-07 14:04:21 -05:00
Eugene Yokota ab95cc7dca JLine 3.19.0
Fixes https://github.com/sbt/sbt/issues/6348

Intentionally or unintentionally the JLine 3 leaks over from sbt to
Scala REPL currently.
I think this enables things like sbtn to transmit tab completion and
other console interaction over a socket to sbt server.
Scala 2.13.5 REPL now causes some issue of displaying warning
each time the user hits tab for tab completion.
This works around the issue by upgrading to the latest JLine 3.
2021-03-07 03:47:49 -05:00
Eugene Yokota 9cd4c0d05f Work around "a pure expression does nothing" warning, take 3
Fixes https://github.com/sbt/sbt/issues/6161
Ref https://github.com/scala/bug/issues/12112

This uses the configurable warning backported to Scala 2.12.
2021-03-07 03:17:42 -05:00
eugene yokota f155bfd1f3
Merge pull request #6360 from eed3si9n/wip/in_memory
Add test for in-memory file
2021-03-07 00:30:00 -05:00
Eugene Yokota 744a8a076d Try another VirtualFile name 2021-03-06 18:27:49 -05:00
Eugene Yokota 8a2083cb03 Add test for in-memory file 2021-03-06 14:34:23 -05:00
eugene yokota ff6cbf2e1f
Merge pull request #6351 from steinybot/scripted-publish-deps
Publish all plugin dependencies
2021-03-04 23:35:59 -05:00
Ondra Pelech 81457e60ec
Give an explanation in case of ServerAlreadyBootingException (#6353)
Give and explanation in case of ServerAlreadyBootingException
2021-03-04 23:21:42 -05:00
eugene yokota 5f24664c0d
Merge pull request #6355 from marcospereira/updates/semanticdb-4.4.10
Update semanticdb to version 4.4.10
2021-03-04 20:17:06 -05:00
eugene yokota 9c25045592
Merge pull request #6352 from mkurz/no_default_sourcePositionMappers
Never set a default for sourcePositionMappers
2021-03-04 20:15:40 -05:00
Marcos Pereira c9941aeabc
Update semanticdb to version 4.4.10 2021-03-04 16:38:00 -05:00
Matthias Kurz de313bbdde
Never set a default for sourcePositionMappers 2021-03-04 22:30:35 +01:00
Jason Pickens 6e0da94d91
Publish all plugin dependencies 2021-03-04 12:09:12 +13:00
eugene yokota 33e2bfe281
Merge pull request #6337 from adpi2/fix-server-command
Fix size of server running message
2021-02-27 14:02:08 -05:00
eugene yokota 0972b7fa17
Merge pull request #6336 from adpi2/fix-tasty-test
Fix TastyFiles added twice in Test
2021-02-24 13:28:51 -05:00
Adrien Piquerez bf29e2a908 Fix size of server running message 2021-02-24 17:31:28 +01:00
eugene yokota c5eda8c7ce
Merge pull request #6332 from adpi2/fix-scala3-doc
Fix scaladoc resolution without JCenter
2021-02-24 11:25:20 -05:00
Adrien Piquerez c1e7b9c3f8 Fix TastyFiles added twice in Test 2021-02-24 15:58:31 +01:00
eugene yokota c707bdf5a8
Merge pull request #6335 from scalacenter/add/munit
Add MUnit test framework
2021-02-24 09:02:02 -05:00
Julien Richard-Foy fad8e8c3c9 Add MUnit test framework 2021-02-24 10:42:30 +01:00
Adrien Piquerez ff12c87367 fix scaladoc resolution without JCenter 2021-02-23 16:24:49 +01:00
eugene yokota ab2b396543
Merge pull request #6329 from eed3si9n/fport/6326
[fport] synchronize access to stamps in testQuickFilter
2021-02-22 00:42:50 -05:00
eugene yokota e6fec6b1db
Merge pull request #6328 from eed3si9n/wip/in
`in` is no longer in
2021-02-22 00:42:33 -05:00
Rafał Sumisławski d3080ee3f0 synchronise access to stamps in testQuickFilter 2021-02-22 00:15:51 -05:00
Eugene Yokota 695261a068 Migrate most of the internal usage of in 2021-02-22 00:09:36 -05:00
Eugene Yokota 833024b1d9 `in` is no longer in
Ref https://github.com/sbt/sbt/pull/6309

This deprecates the sbt 0.13 style `key in (Compile, intask)` syntax.
2021-02-21 23:38:56 -05:00
eugene yokota e4118fb053
Merge pull request #6327 from eed3si9n/wip/opt_in
integrate assumedVersionScheme and assumedEvictionErrorLevel
2021-02-21 19:49:32 -05:00
Eugene Yokota 6c18a37d3f integrate assumedVersionScheme and assumedEvictionErrorLevel
Fixes https://github.com/sbt/sbt/issues/6301
Fixes https://github.com/sbt/sbt/issues/6302

```scala
ThisBuild / assumedVersionScheme := VersionScheme.PVP
ThisBuild / assumedVersionSchemeJava := VersionScheme.EarlySemVer
ThisBuild / assumedEvictionErrorLevel := Level.Warn
```
2021-02-21 19:17:34 -05:00
eugene yokota dffa34c3ec
Merge pull request #6322 from adpi2/fix-disable-ivy
Fix disabling IvyPlugin on root project
2021-02-21 01:23:07 -05:00
Adrien Piquerez 9a2b0f5f06 Move sbtDependency in pluginCrossBuild to JvmPlugin 2021-02-20 13:22:30 +01:00
Adrien Piquerez 80de6a5f6b Add scripted auto-plugins-ivy-disabled 2021-02-20 11:53:09 +01:00
Adrien Piquerez be1e756104 Upgrade semanticdb default version 2021-02-20 11:36:58 +01:00
eugene yokota 6dc1327855
Merge pull request #6316 from eed3si9n/wip/munit
Fix "-Yrangepos" disappearing from Test / scalacOptions
2021-02-17 07:19:18 -05:00
Eugene Yokota 5495524e60 Fix "-Yrangepos" disappearing from Test / scalacOptions
Fixes https://github.com/sbt/sbt/issues/5934

In #5886 adpi2 reported that Test / scalacOptions could have unwanted duplicated flags from Compile / scalacOptions. So #5887 added

```diff
+    // remove duplicated semanticdbOptions
+    scalacOptions --= (Compile / semanticdbOptions).value
```

Notice that it's subtracting (Compile / semanticdbOptions).value regardless of the semanticdbEnabled value. If semanticdbEnabled is set to true I am guessing that it would all work out, but when it's false, it's just subtracting "-Yrangepos".

This fixes that by checking for semanticdbEnabled.
2021-02-17 00:45:41 -05:00
eugene yokota 6c6df88d1e
Merge pull request #6309 from eed3si9n/wip/deprecate_old_shell_syntax
Deprecate old shell syntax
2021-02-16 10:08:13 -05:00
eugene yokota 4427f265f8
Merge pull request #6311 from eed3si9n/wip/bumpcoursier
lm-coursier-shaded 2.0.7
2021-02-16 00:07:27 -05:00
Eugene Yokota 679e3592f7 Update Jave version to 1.8.0-275 on AppVeyoer 2021-02-15 22:46:06 -05:00
eugene yokota 9692707d28
Merge pull request #6310 from eed3si9n/wip/warn_version_scheme
Warn on missing versionScheme
2021-02-15 20:55:47 -05:00
Eugene Yokota 65c57339f5 lm-coursier-shaded 2.0.7
This upgrades Coursier from 2.0.9 to 2.0.12

- https://github.com/coursier/coursier/releases/tag/v2.0.11 contains some optimization
- https://github.com/coursier/coursier/releases/tag/v2.0.12 contains
  HTTP 403 handling that I added for `updateClassifiers` (used by
  IntelliJ import)
2021-02-15 16:58:28 -05:00
Eugene Yokota 9cde1dfcaa Warn on missing versionScheme
Fixes https://github.com/sbt/sbt/issues/6303

This will print warning on publishing when versionScheme is not set.

```
[warn] versionScheme setting is empty; set `ThisBuild / versionScheme := Some("early-semver")` or `Some("pvp")`
[warn] so tooling can use it for evction errors etc - https://www.scala-sbt.org/1.x/docs/Publishing.html
```
2021-02-15 16:53:57 -05:00
Eugene Yokota 2305abd81e Deprecate old shell syntax
Unified slash syntax was added in sbt 1.1.x (https://github.com/sbt/sbt/pull/3434).
This deprecates the older shell syntax: `proj/cofing:intask::key`.

### Example

```
sbt:hello> it:compile
[warn] sbt 0.13 shell syntax is deprecated use slash syntax instead: IntegrationTest / compile
[info] compiling 1 Scala source to /private/tmp/hello/target/scala-2.13/classes ...

sbt:hello> compile:console::scalacOptions
[warn] sbt 0.13 shell syntax is deprecated use slash syntax instead: Compile / console / scalacOptions
```
2021-02-15 13:40:47 -05:00
eugene yokota da4e1d3711
Merge pull request #6296 from bjaglin/semanticdb-confs
better support of custom configurations in SemanticdbPlugin
2021-02-15 12:12:48 -05:00
eugene yokota 57aa6b8bbb
Merge pull request #6308 from eed3si9n/wip/rename
Follow up on scala3doc rename
2021-02-15 12:11:42 -05:00
Eugene Yokota e7341f5242 Follow up on scala3doc rename
Fixes https://github.com/sbt/sbt/issues/6307
Ref https://github.com/sbt/librarymanagement/pull/365
Ref https://github.com/lampepfl/dotty/pull/11289

This adds test using M4 nightly, which now uses artifact name
`scaladoc_3.0.0-M4` as oposed to `scala3doc_3.0.0-M3`.
The change in LM keeps the support for the old artifact name
for backward compatibility to build against 3.0.0-M1, -M2, and -M3.
2021-02-14 13:56:51 -05:00
eugene yokota e80df26e7b
Merge pull request #6305 from etspaceman/patch-2
Fix SBT Warn on slow HostName
2021-02-12 17:20:07 -05:00
Eric Meisel b2363db3d6
Fix SBT Warn on slow HostName
Turns out the snippet provided in the warning was incorrect and did not resolve the issue properly. Adding `.local` to the end of the HostName will resolve the slowness.

See the 2nd answer here: 

https://apple.stackexchange.com/questions/175320/why-is-my-hostname-resolution-taking-so-long
2021-02-12 15:20:35 -06:00