Ethan Atkins
26b7c5204c
Close previous client socket
...
This looked like a resource leak. I'm not 100% sure this matters.
2020-06-24 19:19:06 -07:00
Ethan Atkins
fcfe4333fe
Consolidate and optimize input stream json reading
...
We had similar code for reading json frames from an input stream in
NetworkChannel and ServerConnection. I reworked and consolidated this
logic into a shared method in ReadJsonFromInputStream.
This commit also removes the ObjectMessage reporting methods that
weren't doing anything.
2020-06-24 19:19:06 -07:00
Ethan Atkins
b0a859acb5
Use print + flush instead of println
...
With println, it is possible for lines to get interleaved because
another thread may call flush before the println appends a newline.
2020-06-24 19:19:06 -07:00
Ethan Atkins
a94d6dd77c
Rename JLineCompletion parameter name
...
It was confusing that reader was used as a parameter name in two places.
2020-06-24 19:19:06 -07:00
Ethan Atkins
41d66abb02
Add support for JNI implementation of ClientSocket
...
The JNI implementation is needed in order for a graalvm native-image to
be build of the NetworkClient.
2020-06-24 19:19:06 -07:00
Ethan Atkins
af5afef271
Add option to skip collectAnalysis on network init
...
The collectAnalysis task an be a bit slow and delays client connections
from running commands. This commit adds an option to skip the analysis
if it isn't needed. The default behavior is left as it was.
2020-06-24 19:19:06 -07:00
Ethan Atkins
e53c8f6f01
Add Util.ignoreResult
...
This adds a convenience macro for appending `()` to an expression if it
is the last expression in a block that is supposed to return Unit.
2020-06-24 19:19:06 -07:00
Ethan Atkins
52d19d8f0c
Refactor Signal for graalvm
...
The graalvm issues warnings about the objects defined in
Signal.register, so I made them top level private classes instead.
2020-06-24 19:19:06 -07:00
Ethan Atkins
7b05ef5918
Disable supershell in server tests
...
Also make test build files trigger in watch.
2020-06-24 19:19:06 -07:00
Ethan Atkins
fe397351df
Remove dead external hooks code
...
These settings were only used by the external hooks implementation that
was removed.
2020-06-24 19:19:06 -07:00
Ethan Atkins
017e3e7f2c
Improve SelectMainClass output
...
This ensures that super shell lines are cleared.
2020-06-24 19:19:06 -07:00
Ethan Atkins
cc80b6c6ed
Bump javafmt plugin version
2020-06-24 11:24:15 -07:00
Ethan Atkins
e878660ef3
Update appveyor.yml
...
Appveyor supports uploading build artifacts that can be downloaded after
the build completes. This can be used to build and distribute graalvm
native images for mac, linux and windows since appveyor supports all
three of these platforms. Appveyor allows custom builds based on the
git branch. Since building the graalvm native images is slow, the new
config will only build the native image when a branch called
`build-graal` is pushed. Otherwise it will run the normal scripted tests
that it has always run.
2020-06-24 11:24:15 -07:00
eugene yokota
778264a319
Merge pull request #5618 from adpi2/topic/metals-support
...
Add suggestion about semanticdb when Metals connect to sbt
2020-06-24 14:19:04 -04:00
eugene yokota
e323f1f713
Merge pull request #5637 from adpi2/feature/bsp-custom-config
...
Add BSP support for IntegrationTest and other custom configs
2020-06-23 16:11:14 -04:00
eugene yokota
406330b3fe
Merge pull request #5639 from iRevive/customizable-remote-cache-artifacts
...
Allow customization of remote cache artifacts
2020-06-23 15:34:21 -04:00
Maksim Ochenashko
78c3bb37f7
Merge branch 'develop' into customizable-remote-cache-artifacts
2020-06-23 14:43:04 +03:00
Maksim Ochenashko
9047a49dd0
Add test scenario
2020-06-23 13:23:49 +03:00
eugene yokota
77a99d34df
Merge pull request #5641 from eatkins/completion-threads
...
Name threads in completion service
2020-06-23 00:45:00 -04:00
eugene yokota
b7a66cbe4a
Merge pull request #5640 from eatkins/log4j-warning
...
Add default log4j2.xml
2020-06-23 00:44:02 -04:00
Ethan Atkins
293fa0e496
Name threads in completion service
...
Naming the threads makes it easier to read the program state in jstack.
2020-06-22 13:14:55 -07:00
Ethan Atkins
88608b10c5
Add default log4j2.xml
...
This should fix the errors that are sometimes seen with abrupt sbt
shutdowns:
```
2020-06-22 12:46:33,475 shutdown-hooks-run-all ERROR No Log4j 2
configuration file found. Using default configuration (logging only
errors to the console), or user programmatically provided
configurations. Set system property 'log4j2.debug' to show Log4j 2
internal initialization logging. See
https://logging.apache.org/log4j/2.x/manual/configuration.html for
instructions on how to configure Log4j 2
```
2020-06-22 12:47:49 -07:00
Maksim Ochenashko
71ea117a39
Use contraband for generation of RemoteCacheArtifact
2020-06-21 09:41:56 +03:00
Maksim Ochenashko
0c07fa1851
Allow customization of remote cache artifacts
2020-06-20 14:05:41 +03:00
adpi2
56eed20b34
add support for IntegrationTest and custom configs in BSP
...
In global bspWorkspace setting, retrieve all projects and all configurations that contain the bspTargetIdentifier setting, so that:
- the IntegrationTest configuration, when added to a project, is automatically associated to a BSP target
- a custom configuration that contains the `Defaults.configSettings` is also associated to a BSP target
2020-06-18 16:32:10 +02:00
eugene yokota
9f9bb9daa2
Merge pull request #5634 from eed3si9n/wip/missingok
...
Fixes missingOk under Coursier
2020-06-17 21:06:40 -04:00
Eugene Yokota
5cce074b83
Fixes missingOk under Coursier
...
Fixes https://github.com/sbt/sbt/issues/4707
Ref https://github.com/coursier/sbt-coursier/pull/212
2020-06-17 20:06:25 -04:00
eugene yokota
2a93942ab9
Merge pull request #5633 from eed3si9n/wip/conditional
...
Forward type to the conditional tasks to fix Seq[Nothing]
2020-06-17 19:31:23 -04:00
Eugene Yokota
9821b83048
Forward type to the conditional tasks to fix Seq[Nothing]
...
Fixes https://github.com/sbt/sbt/issues/5625
2020-06-17 18:08:59 -04:00
eugene yokota
cb4ec9703a
Merge pull request #5630 from iRevive/delete-metainf-folder
...
Delete META-INF folder after remote cache pull
2020-06-17 16:36:24 -04:00
Maksim Ochenashko
49e7d71cbc
Delete META-INF folder after remote cache pull
2020-06-17 13:01:47 +03:00
eugene yokota
87e57b5390
Merge pull request #5619 from bjaglin/patch-1
...
exclude effectful initialize setting key from linting
2020-06-16 19:53:07 -04:00
eugene yokota
8a9857617d
Merge pull request #5622 from iRevive/issue-5621
...
Unify calculation of remoteCacheId and remoteCacheIdCandidates
2020-06-16 19:52:27 -04:00
Adrien Piquerez
0738edc9a5
Apply logging style
...
Co-authored-by: eugene yokota <eed3si9n@gmail.com>
2020-06-16 09:43:22 +02:00
Maksim Ochenashko
3e8073151b
Unify calculation of remoteCacheId and remoteCacheIdCandidates
2020-06-16 09:15:42 +03:00
Brice Jaglin
561d0ef602
exclude effectful initialize setting key from linting
2020-06-16 01:08:15 +02:00
adpi2
159171bba5
Add suggestion about semanticdb when Metals connect to sbt
...
Try parse the required semanticdbVersion in the initialization request metadata
Issue a warning if the semanticdb plugin is not enabled
Issue a warning if the semanticdb version is lower than the required
2020-06-15 16:57:49 +02:00
eugene yokota
c07de68cf5
Merge pull request #5615 from eed3si9n/wip/scripted
...
Resurrect launcher-based scripted for SbtPlugin
2020-06-14 22:34:10 -04:00
Eugene Yokota
79ad0e4e71
Resurrect launcher-based scripted for SbtPlugin
...
Fixes https://github.com/sbt/sbt/issues/5592
This brings back launcher-based RemoteSbtCreator and API points used by scripted plugin, which were deleted in #5367 .
2020-06-14 19:54:08 -04:00
eugene yokota
5ca27512ca
Merge pull request #5613 from eed3si9n/wip/bumpzinc
...
Zinc 1.4.0-M6
2020-06-14 17:58:22 -04:00
eugene yokota
2b557851ca
Merge pull request #5041 from jsoref/https
...
Https
2020-06-14 17:34:58 -04:00
Eugene Yokota
8789d20724
-Dsbt.semanticdb=true to enable SemanticDB
2020-06-14 17:14:02 -04:00
Eugene Yokota
837dcbb5a6
SemanticDB 4.3.15
2020-06-14 16:53:36 -04:00
Eugene Yokota
5a37ef14fc
Zinc 1.4.0-M6
2020-06-14 15:55:37 -04:00
eugene yokota
c3d6260f52
Merge pull request #5610 from eed3si9n/wip/server
...
Drop old application/sbt-x1 protocol
2020-06-13 10:59:58 -04:00
Eugene Yokota
d599ae2c16
Deprecate unused methods
2020-06-12 16:34:37 -04:00
Eugene Yokota
033ff1d8a5
Make JSON parsing errors more consistent
2020-06-11 20:31:13 -04:00
Eugene Yokota
cad84afc6d
Drop old application/sbt-x1 protocol
2020-06-11 16:22:07 -04:00
eugene yokota
975e3db43e
Merge pull request #5558 from eed3si9n/wip/selective
...
Selective functor
2020-06-10 17:39:13 -04:00
eugene yokota
a83be809ab
Merge pull request #5552 from eed3si9n/wip/promise
...
implement Def.promise
2020-06-10 17:38:23 -04:00