Commit Graph

17940 Commits

Author SHA1 Message Date
PanAeon 184390fed2
Merge branch '1.x' into help-sbt-new 2017-12-11 16:57:40 +00:00
Alexandre Archambault 617fe5cc3d
Merge pull request #712 from coursier/topic/update-report-exclusions
Write exclusions and transitiveness in sbt update reports, add sbt-shared module
2017-12-11 17:50:27 +01:00
Yi Cheng 1296459de3 Add Pants build tool (#709) 2017-12-11 17:50:04 +01:00
Alexandre Archambault ee9c61393c Move FromSbt / ToSbt helpers to separate module 2017-12-11 10:07:04 +01:00
Alexandre Archambault 930ac74dd8
Merge pull request #711 from coursier/topic/proper-cache
Incur less IO via more careful use of Def.task / taskDyn
2017-12-11 01:29:05 +01:00
Alexandre Archambault 97a137b0bb Write exclusions and transitiveness in sbt update reports
Makes it unnecessary to add a jboss repository for plugins in some
cases, like when using sbt-assembly
2017-12-11 01:25:49 +01:00
Alexandre Archambault c384797744 Incur less IO via more careful use of Def.task / taskDyn
Previousy, even when the update report was found in the in-memory cache,
some IO was still incurred because of the coursierArtifacts key, which
was evaluated in all cases. This PR makes sure it is not evaluated when
the update report is found in cache.
2017-12-11 00:36:35 +01:00
eugene yokota 609329b19e
Merge pull request #3802 from cunei/wip-templateStats-2
Revert "Alt scala parser sync workaround"
2017-12-09 00:45:26 -05:00
Antonio Cunei cd4346c5d7 Allow FileInfo for non-existent files with the new timestamps
FileInfo is used to wrap information like last modified time on
files that may or may not exist. Arguably, that does not make
much sense: the non-existent files should not lead to modification
file information, hashes, and a persistent serialized version of
the resulting meaningless information. However, considering that
the FileInfo information is serialized and saved, it is necessary
to preserve compatibility at this stage. Therefore the modification
time is explicitly set to zero for those files that do not exist
when each FileInfo is built.
2017-12-08 23:50:40 +01:00
Antonio Cunei 5c72c3b487 Revert "Alt scala parser sync workaround"
Although in theory the fix in #3776 should be preferable to
synchronize templateStats() manually, it turns out that we
still get errors in some tests. So, reverting to a
synchronized section while we investigate.

This reverts commit ee90917cc4.
2017-12-08 19:21:14 +01:00
Antonio Cunei d03dfb3981 Moved Milli._ to IO. 2017-12-06 20:29:41 +01:00
Antonio Cunei ccf149e8bf Convert lastModified() calls to sbt.io.Milli.getModifiedTime() 2017-12-06 20:29:41 +01:00
Tobi Akomolede AKA Mocuto da7fd6585f Fix for: Coursier not resilient to changing local ivy cache directory #665 (#705)
* https://github.com/coursier/coursier/issues/665
2017-12-06 18:20:57 +01:00
eugene yokota 3d45f82e75
Merge pull request #3794 from xuwei-k/mimaPreviousArtifacts
update mimaPreviousArtifacts
2017-12-06 05:34:33 -05:00
eugene yokota 30fd81edf6
Merge pull request #3795 from eed3si9n/wip/checksocket
Only the first session starts the server
2017-12-05 17:59:06 -05:00
Eugene Yokota 322f9b31cd Only the first session starts the server
Currently the server will try to start even if there are existing sbt sessions. This causes the second session to take over the server for Unix domain socket.

This adds a check before the server comes up and make sure that the socket is not taken.
2017-12-05 09:14:18 -05:00
Eugene Yokota 2b2c1f0568 prevent "shutdown" when server didn't come up 2017-12-05 08:04:59 -05:00
Alexandre Archambault 4ea6b9673f
Merge pull request #708 from coursier/topic/bump-directories
Switch to latest directories master
2017-12-05 11:19:38 +01:00
kenji yoshida 8323609053 update mimaPreviousArtifacts 2017-12-05 16:43:40 +09:00
eugene yokota 4c435a5adb
Merge pull request #3791 from eed3si9n/wip/serverLog
Fixes server log hardcoded to debug level
2017-12-04 13:33:27 -05:00
Alexandre Archambault 09ecaa489f Switch to latest directories master 2017-12-04 17:48:10 +01:00
Alexandre Archambault a532d545a2
Merge pull request #706 from coursier/topic/fallback-version
More careful handling of extenstion / type with snapshot versioning
2017-12-04 17:46:21 +01:00
Alexandre Archambault 03f7cbb42d More careful handling of extenstion / type with snapshot versioning 2017-12-04 13:39:40 +01:00
Ethan Atkins ca7171ed17 Cache watch service
I noticed that my custom WatchService was never cleaned up by sbt and
realized that after every build we were making a new WatchService. At
the same time, we were reusing the WatchState from the previous run,
which was using the original WatchService. This was particularly
problematic because it prevented us from registering any paths with the
new watch service. This may have prevented some of the file updates
from being seen by the watch service. Moreover, because we lost the
reference to the original WatchService, there was no way to clean it up,
which was a resource leak.

May be related to #3775, #3695
2017-12-02 18:23:19 -08:00
Eugene Yokota 93b3391167 Fixes server log hardcoded to debug level
Fixes #3786

To configure the log level of the server, this introduces a new task key named `serverLog`. The idea is to set this using `Global / serverLog / logLevel`. It will also check the global log level, and if all else fails, fallback to Warn.

```
    lazy val level: Level.Value = (s get serverLogLevel) orElse (s get logLevel) match {
      case Some(x) => x
      case None    => Level.Warn
    }
```
2017-12-02 15:20:54 -05:00
eugene yokota 8db6cd7a9e
Merge pull request #3785 from eed3si9n/wip/vscode-bump
Bump vscode-sbt-scala version to 0.1.0
2017-11-30 12:37:47 -05:00
Eugene Yokota 62ecd417da Bump vscode-sbt-scala version to 0.1.0 2017-11-30 12:35:40 -05:00
eugene yokota 74ddddc8e5
Merge pull request #3782 from eed3si9n/wip/bump
Merge 1.0.x + bump modules
2017-11-30 10:23:14 -05:00
Alexandre Archambault 217940d0ef
Merge pull request #702 from coursier/topic/fix-version-parsing-divergence
Fix divergence when parsing versions
2017-11-30 14:05:20 +01:00
Alexandre Archambault 389375da5d Fix divergence when parsing versions
Those starting with neither a letter, nor a digit, nor a known separator
2017-11-30 13:03:17 +01:00
Eugene Yokota 6ed3c0f534 more notes 2017-11-30 00:01:33 -05:00
Eugene Yokota 8031bb0f83 notes 2017-11-29 23:45:28 -05:00
Eugene Yokota c5d578815c catch IOException intead of SocketException
`NGUnixDomainSocket` throws `java.io.IOException` instead of `SocketException`, probably because `SocketException` does not expose the contructor with a `Throwable` parameter.
To allow clients to disconnect, we need to catch `IOException`.
2017-11-29 22:42:58 -05:00
Eugene Yokota d193d302f0 lm 1.1.0 2017-11-29 22:31:57 -05:00
eugene yokota 858f918a19
Merge pull request #188 from eed3si9n/wip/semantic
Fix false positive on sbt 1.x module eviction warnings
2017-11-29 20:10:36 -05:00
Eugene Yokota 9c1566dfa1 Fix false positive on sbt 1.x module eviction warnings
Fixes #187
2017-11-29 20:02:37 -05:00
Eugene Yokota 824cfdf527 Add header 2017-11-29 17:12:40 -05:00
Eugene Yokota ff004993e0 Bump modules 2017-11-29 16:53:40 -05:00
Eugene Yokota a6eb1260c8 Merge branch '1.0.x' into wip/bump 2017-11-29 16:45:02 -05:00
Dale Wijnand c02baa177e
Merge pull request #3779 from eed3si9n/wip/onNotification
LSP: added handler for notification messages
2017-11-29 08:10:42 +00:00
Eugene Yokota 6a996378c7 return Either[String, JsonRpcMessage] 2017-11-29 01:00:46 -05:00
Eugene Yokota e4dd090d0c Add debug log on unhandled notification 2017-11-29 00:51:16 -05:00
Alexey Alekhin c689821383 Added deserialization for NotificationMessage and used it in handleBody 2017-11-29 00:46:18 -05:00
Alexey Alekhin 36e079d12b Added onNotification handler for the LSP CommandChannel 2017-11-29 00:46:18 -05:00
eugene yokota 1ad2ff9295
Merge pull request #186 from sbt/1.0.x
Merge 1.0.x
2017-11-29 00:31:41 -05:00
eugene yokota 138fb58cae
Merge pull request #3776 from dwijnand/alt-scala-parser-sync-workaround
Alt scala parser sync workaround
2017-11-28 23:36:58 -05:00
eugene yokota 1d4b8525a9
Merge pull request #3772 from dwijnand/run-from-source-main
Create RunFromSourceMain & "sbtOn" command
2017-11-28 23:36:37 -05:00
eugene yokota 83f8eabfab
Merge pull request #133 from eed3si9n/wip/bump_scala
Merge 1.0.x + bump IO
2017-11-28 23:20:15 -05:00
Eugene Yokota ff054d8ef5 IO 1.1.1 2017-11-28 23:12:01 -05:00
Eugene Yokota 1388f4e52c Merge branch '1.0.x' into wip/bump_scala 2017-11-28 23:05:33 -05:00