Commit Graph

11764 Commits

Author SHA1 Message Date
Chris Kipp fa8dfd225d fix: get rid of the `FileChanges` abstraction
I don't believe this is actually needed. We can simplify the
`WorkspaceEdit` further and put together the mapping for `changes`
according to the LSP spec later on down the line. This will allow us to
remove the need for the `URI`, which is problematic.

closes #7252
2023-05-14 09:52:16 +02:00
adpi2 9042a53b21
Merge pull request #7250 from scalacenter/update-native-image
Update native-image to 22.2.0
2023-05-12 17:17:40 +02:00
Julien Richard-Foy ecc322335c Update native-image to 22.2.0
See sbt/sbt#7149
2023-05-12 15:22:18 +02:00
eugene yokota cf6fac7692
Merge pull request #7242 from ckipp01/action
feat: add in `actions()` to `Problem`
2023-05-12 00:03:49 -04:00
Chris Kipp aeb168aa93 feat: add in `actions()` to `Problem`
This adds a new field into `xsbti.Problem` allowing for the compiler to
forward "actions" that can address diagnostics. The idea largely mimics
a very minimal `CodeAction` that can be found in the [LSP
Spec](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeAction)
in order to ensure it will work with a variety of difference clients
that use LSP, and those that don't. In the future the `WorkspaceEdit`
that was created here could also be expanded to handle more advanced
changes, aka resource operations, like creating/moving/deleting files.
For now we only focus on a small subset of these features.
2023-05-10 14:14:13 +02:00
eugene yokota 6dbb6fef3a
Merge pull request #7241 from ckipp01/mispell 2023-05-08 09:10:37 -04:00
Chris Kipp 300b770ea4 fix: deprecate misspelled diagnosticRelatedInforamation and add in a new one
Relates to https://github.com/sbt/sbt/discussions/7063
2023-05-08 13:38:15 +02:00
eugene yokota 26e9af13ec
Merge pull request #7240 from eed3si9n/wip/bannar
sbt 1.9.0 bannar
2023-05-07 14:41:01 -04:00
eugene yokota ef81cd00de
Merge pull request #7239 from eed3si9n/wip/alias_new
Add init as an alias to new
2023-05-07 14:40:49 -04:00
Eugene Yokota b122e292e5 Bump Typelevel toolkit 2023-05-07 14:18:18 -04:00
Eugene Yokota 731af0173c Add init as an alias to new 2023-05-07 14:17:26 -04:00
Eugene Yokota 2664884f37 sbt 1.9.0 bannar 2023-05-07 14:05:05 -04:00
eugene yokota 648815ca3b
Merge pull request #7238 from eed3si9n/wip/bumplm
lm 1.9.0-M3
2023-05-07 13:05:24 -04:00
Eugene Yokota 1f333010a9 lm 1.9.0-M3 2023-05-07 12:40:28 -04:00
eugene yokota 81c8dce66f
Merge pull request #7237 from eed3si9n/wip/0.16.2
sbt-giter8-resolver 0.16.2
2023-05-07 02:37:50 -04:00
Eugene Yokota 86ecec8ac3 sbt-giter8-resolver 0.16.2 2023-05-07 01:28:46 -04:00
eugene yokota 0c11ae2ace
Merge pull request #7236 from eed3si9n/wip/new2
Make new more interactive
2023-05-06 23:09:27 -04:00
Eugene Yokota 51591bde5b Make new more interactive
If the terminal supports ANSI control sequence,
this displays the template list in an interactive way.
The focused template is rendered reversed,
and arrow key can be used to move the focus up/down.
2023-05-06 20:07:47 -04:00
eugene yokota 3d1349a37d
Merge pull request #7234 from adpi2/fix-7233
[1.9.x] Fix #7233: copy artifact files of sbt plugin
2023-05-04 12:47:28 -04:00
Adrien Piquerez bb0bb5ce58 Fix #7233
The sbt-reproducible-build fails if  two artifacts point to the same file.

When packaging the artifacts of an sbt plugin,
we copy each files to avoid this issue.
2023-05-04 10:46:21 +02:00
eugene yokota 602d623def
Merge pull request #7232 from eed3si9n/wip/typo
Fix typo
2023-05-03 22:40:39 -04:00
Eugene Yokota 4c96c087c0 Fix typo 2023-05-03 21:20:16 -04:00
eugene yokota 67d63867b7
Merge pull request #7159 from vedantmgoyal2009/patch-1
Publish to WinGet
2023-05-02 01:32:26 -04:00
Eugene Yokota 26917d7de4 1.9.0-RC1 2023-05-01 01:39:32 -04:00
eugene yokota d8725e245e
Merge pull request #7228 from eed3si9n/wip/new
sbt new, a text-based adventure
2023-05-01 00:27:47 -04:00
Eugene Yokota a033c37d6e sbt new, a text-based adventure
**Problem**
You want to get started with sbt, and you don't know
which template to get started with.

**Solution**
This implements an interactive menu on `sbt new` command
when invoked without an argument to list template candidates.

The first option is `scala/toolkit.local`, which locally creates
an sbt build without calling out to Giter8 (GitHub).
2023-04-30 23:36:06 -04:00
eugene yokota d23649f778
Merge pull request #7227 from yoshinorin/chore/use-sonatypeOssRepos
Use `sonatypeOssRepos` instead of `sonatypeRepo`
2023-04-30 12:51:16 -04:00
yoshinorin e590740467
Use `sonatypeOssRepos` instead of `sonatypeRepo` 2023-05-01 00:11:33 +09:00
eugene yokota 48cacd312e
Merge pull request #7226 from eed3si9n/wip/bump 2023-04-30 11:09:40 -04:00
Eugene Yokota f98c4fff3b Update modules 2023-04-30 00:56:11 -04:00
eugene yokota 2035d9fb30
Merge pull request #7225 from eed3si9n/wip/coursier
Update to lm-coursier-shaded 2.1.0
2023-04-29 23:34:35 -04:00
Eugene Yokota 7dd69e702b Update to lm-coursier-shaded 2.1.0 2023-04-29 23:10:35 -04:00
eugene yokota 6aa29b5d91
Merge pull request #7224 from eed3si9n/wip/launcher
Update to launcher 1.4.2
2023-04-29 22:35:40 -04:00
Eugene Yokota 5c8826a394 Update to launcher 1.4.2 2023-04-29 22:07:08 -04:00
eugene yokota 84f18156bf
Merge pull request #7171 from liang3zy22/sbtusageinfo
Update usage info in sbt for java-home
2023-04-27 16:40:19 -04:00
Liang Yan 80fe184273 Update usage info in sbt for java-home
Signed-off-by: Liang Yan <ckgppl_yan@sina.cn>
2023-04-27 07:53:45 +08:00
eugene yokota df738abbbd
Merge pull request #7215 from dragos/expose/external-hooks-public
Expose RunProfiler to the build
2023-04-25 11:49:28 -04:00
Iulian Dragos 6dfebc689b
Add a key for Zinc listeners.
Expose what the incremental compiler is doing behind the scenes. The RunProfiler interface has been part of Zinc for a while, but this allows the build itself, or an Sbt plugin, to hook their own implementation.

We expose a list of such listeners to avoid plugins stepping on each other and replacing an existing listener.
2023-04-25 12:00:02 +02:00
Iulian Dragos 9301bc2589
Make externalHooks public
This key has been added in 4061dabf4d but it is only available to Sbt itself. Since ExternalHooks is a Java interface, defined in Zinc for a while and fairly stable, I think this should be safe to do.

My main  motivation is to allow installing an InvalidationProfiler from an Sbt plugin, thus gaining access to zinc recompilation decisions. See related PR https://github.com/sbt/zinc/pull/1181
2023-04-18 15:13:09 +03:00
adpi2 e1b0b25418
Merge pull request #7201 from adpi2/sbt-plugin-toggle
[1.9.x] Add `sbtPluginPublishLegacyMavenStyle` to publish to Artifactory
2023-04-12 09:55:13 +02:00
eugene yokota 0078228039
Merge pull request #7213 from adpi2/fix-7210
[1.9.x] Fix cross-publish sbt plugin to Maven
2023-04-11 14:19:01 -04:00
Adrien Piquerez 9e0a728c58 Add sbtPluginPublishLegacyMavenStyle to publish to Artifactory
Artifactory rejects the legacy artifacts of sbt plugin.
It is now possible to publish to Artifactory
by turning `sbtPluginPublishLegacyMavenStyle` off.
2023-04-11 16:56:24 +02:00
Adrien Piquerez 5436ed5ef8 Fix cross-publish sbt plugin to Maven 2023-04-11 11:43:44 +02:00
adpi2 60ea2a5334
Merge pull request #7191 from adpi2/fix-deadlock
[1.9.x] Fix dead lock between `LoggerContext` and `Terminal`
2023-03-28 16:25:36 +02:00
Adrien Piquerez da4ce68142 Fix dead lock between LoggerContext and Terminal 2023-03-28 14:08:15 +02:00
eugene yokota 4a470dcd17
Merge pull request #7148 from armanbilge/feature/release-notes-url
Add `releaseNotesURL` setting
2023-03-07 10:37:46 -05:00
eugene yokota 28d5ba894f
Merge pull request #7169 from mdedetrich/improve-grammer-in-key-description 2023-03-04 09:24:14 -05:00
Matthew de Detrich 714e4175b3
Improve grammar on skip key description 2023-03-04 09:19:17 +01:00
eugene yokota 51da437f22
Merge pull request #7165 from mdedetrich/make-skip-work-on-publish-local
Make skip work on publishLocal
2023-03-03 22:01:28 -05:00
Matthew de Detrich 2a332a56a9
Make skip work on publishLocal 2023-03-03 16:09:44 +01:00