1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00
Commit Graph

22191 Commits

Author SHA1 Message Date
Rob Rix
5718ebadff Add a flag to diff with Show. 2018-05-23 09:41:50 -04:00
Rob Rix
cfd6292746 Add a flag to parse with Show. 2018-05-23 09:41:13 -04:00
Rob Rix
f7e0a6b6cc Add a Show term renderer. 2018-05-23 09:40:20 -04:00
Rob Rix
544890f40b Alphabetize. 2018-05-23 09:39:33 -04:00
Rob Rix
552bc8f468 Alphabetize. 2018-05-23 09:38:42 -04:00
Rob Rix
001c1cab16 Add a Show diff renderer. 2018-05-23 09:38:06 -04:00
Rob Rix
3808a5ef8c Add a CanDiff synonym abstracting the typeclasses we need for diffing. 2018-05-23 09:37:11 -04:00
Rob Rix
3a03fbb1c1 Add a CLI arg to Show ts-parse trees. 2018-05-23 09:32:45 -04:00
Rob Rix
a48356d287 Add support to serialize ASTs by Show. 2018-05-23 09:31:53 -04:00
Rob Rix
266d03d240 Left-to-right flow. 2018-05-23 09:30:30 -04:00
Rob Rix
f9266e01e4 Append newlines after Show output. 2018-05-23 09:27:39 -04:00
Rob Rix
9e7324b3c7 Simplify the extracted graph. 2018-05-23 09:26:42 -04:00
Rob Rix
7a653e80e3 Add the Show serializer to the options for graph commands. 2018-05-23 09:06:20 -04:00
Rob Rix
d02a817725 🔥 SomeFormat. 2018-05-23 09:04:43 -04:00
Rob Rix
54a4f289f7 Produce colour output with the Show serializer. 2018-05-23 09:00:29 -04:00
Rob Rix
6c35dd77ce Add a flag to runSerialize to enable/disable colour output. 2018-05-23 08:57:24 -04:00
Patrick Thomson
e168b08adc Merge pull request #1875 from github/fast-builds-by-default
Make builds run at -O0 by default, except for CI/deploy.
2018-05-22 18:05:28 -04:00
Patrick Thomson
2edafbf1d1 Merge branch 'master' into fast-builds-by-default 2018-05-22 17:52:18 -04:00
Patrick Thomson
1f26db7a5e -O2 is ridiculously slow, let's hold off for now 2018-05-22 17:48:07 -04:00
Patrick Thomson
b38646e0e0 Merge pull request #1864 from github/add-parsing-timeout
Add timeout functionality for the parser
2018-05-22 17:40:13 -04:00
Patrick Thomson
c1d3a041cc set -Werror when building release 2018-05-22 17:38:13 -04:00
Patrick Thomson
f563a2c808 forgot a do 2018-05-22 17:25:17 -04:00
Patrick Thomson
88d7d19bb8 Make builds run at -O0 by default, except for CI/deploy.
It's always been easy to forget the `--fast` flag. With the introduction of
`semanticd`, forgetting that carries a significant speed hit, as GHC
optimizes the resulting executable very thoroughly, which entails a
significant uptick in time spent building. For our collective sanity's
sake, this patch makes `stack build` operate without optimizations. CI
and deploy jobs pass `--flag semantic:release` to `stack`, which
specifies the `-O2` level of optimizations.

Timing `stack clean && stack build` (which rebuilds the tree-sitter
packages) went from 6m17s to 3m04s on my machine.  When building just
`semantic` by itself, standard builds take 1m06s, whereas builds with
`--flag semantic:release` take 4m12s. (GHC does a lot of
optimizations!)
2018-05-22 17:18:03 -04:00
Patrick Thomson
c8d5a8d231 add test for cancelling in-flight parsers 2018-05-22 17:01:17 -04:00
Patrick Thomson
e64d1e2d4c Merge remote-tracking branch 'origin/master' into add-parsing-timeout 2018-05-22 16:53:18 -04:00
Patrick Thomson
949b9be418 add spec 2018-05-22 16:53:03 -04:00
Timothy Clem
e828b75099 Merge pull request #1872 from github/all-in-one-ci
All in one ci
2018-05-22 13:42:11 -07:00
Patrick Thomson
dd23a2c513 Seconds -> milliseconds 2018-05-22 16:38:18 -04:00
Patrick Thomson
3eb550ac62 Merge branch 'add-parsing-timeout' of github.com:github/semantic into add-parsing-timeout 2018-05-22 16:37:33 -04:00
Patrick Thomson
124866bc95 Move haskell-tree-sitter to master 2018-05-22 16:36:37 -04:00
Timothy Clem
a20ea785ec Merge branch 'master' into all-in-one-ci 2018-05-22 13:31:17 -07:00
Josh Vera
28925f8e92 Merge branch 'master' into add-parsing-timeout 2018-05-22 13:30:48 -04:00
Josh Vera
66616b8716 Merge pull request #1861 from github/grpc-next-queues
Bump grpc-haskell to use the async server
2018-05-22 13:30:21 -04:00
joshvera
dba4cf5aa4 Merge remote-tracking branch 'origin/master' into grpc-next-queues 2018-05-22 13:18:22 -04:00
Patrick Thomson
1721c67aa5 lint 2018-05-22 13:07:36 -04:00
Josh Vera
9f9b5faaba Merge pull request #1835 from github/grpc-server
Add a gRPC Server
2018-05-22 13:05:05 -04:00
Patrick Thomson
f2a55e5b0c Switch to using timeout and running the parser asynchronously. 2018-05-22 13:03:37 -04:00
joshvera
13ea1e58ff ++grpc-haskell 2018-05-22 13:01:16 -04:00
Josh Vera
df7f14fb04 Merge branch 'master' into grpc-server 2018-05-22 12:53:04 -04:00
Patrick Thomson
1b2e9c9893 remove otiose lock and add explicit timeout 2018-05-22 12:45:07 -04:00
Timothy Clem
cdfcabd319 Move semanticd into it's own directory, update builds 2018-05-22 09:20:36 -07:00
Patrick Thomson
a933a5714d Merge remote-tracking branch 'origin/master' into add-parsing-timeout 2018-05-22 11:54:10 -04:00
Rick Winfrey
7a6a99c1a8 Merge pull request #1862 from github/new-tree-sitter-api
Update to use the new Tree-sitter API
2018-05-22 08:51:49 -07:00
Patrick Thomson
a20efce735 maybeM is preferable to a case statement 2018-05-22 11:49:22 -04:00
Patrick Thomson
cf04b5e602 avoid possible race condition 2018-05-22 11:41:18 -04:00
Patrick Thomson
4be15ea6bc remove otiose C calls 2018-05-22 11:40:10 -04:00
Patrick Thomson
5f138682e3 better error name 2018-05-22 11:34:07 -04:00
Patrick Thomson
234e0bbc99 Add infrastructure for testing cancellation. 2018-05-22 11:17:04 -04:00
Patrick Thomson
d1618fe94d Add what seems like correctly-working timeout functionality. 2018-05-22 11:01:23 -04:00
Rob Rix
14e9f89501 Merge branch 'master' into new-tree-sitter-api 2018-05-22 08:36:46 -04:00