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

26227 Commits

Author SHA1 Message Date
Rob Rix
1dc9e997e3 🔥 the redundant parameter to runFresh. 2018-10-23 12:01:38 -04:00
Rob Rix
f545665403 Run the module table effect with the helper. 2018-10-23 12:00:40 -04:00
Rob Rix
80ab393d79 🔥 the redundant parameters to evaluate. 2018-10-23 11:57:37 -04:00
Rob Rix
2bee99d97e Run trace by printing. 2018-10-23 11:56:17 -04:00
Rob Rix
422d1a6db0 🔥 some redundant Monad constraints. 2018-10-23 11:54:34 -04:00
Rob Rix
9bae2bfcb2 Add a missing Effect constraint. 2018-10-23 11:54:19 -04:00
Rob Rix
e2c64f336a Run in Eff. 2018-10-23 11:52:45 -04:00
Rob Rix
5b2f070558 Raise some handlers. 2018-10-23 11:51:51 -04:00
Rob Rix
7ac4b5dbcb 🔥 the call to runPythonPackaging for the moment. 2018-10-23 11:51:20 -04:00
Rob Rix
82956152c6 Re-add the WhileC Carrier instance for the concrete domain. 2018-10-23 11:41:16 -04:00
Patrick Thomson
95ffd19e6e otiose import 2018-10-23 11:39:19 -04:00
Rob Rix
c4aaa86230 Generalize disjunction over the carrier. 2018-10-23 11:39:09 -04:00
Rob Rix
c53a6aa511 Interpose with an upcast. 2018-10-23 11:30:58 -04:00
Patrick Thomson
be9ffa49d3 Remove inaccurate TODO. 2018-10-23 11:25:55 -04:00
Patrick Thomson
d8a7b2edfb Add TREE_SITTER_ASSIGNMENT_TIMEOUT environment variable.
Now that #2223 is fixed, we're encountering certain large files,
such as[this](https://github.com/golang/text/blob/master/collate/tables.go),
that parse in an acceptable window but that take a tremendously long
time to assign. As such, it behooves us to provide a mechanism to
specify assignment timeouts, independent of the tree-sitter parse timeout.

I copied the Dockerfile/default values from those specified for
TREE_SITTER_PARSE_TIMEOUT. I am open to suggestions as to different
values.

ccing @tclem on this to make sure I haven't screwed anything up w/r/t Docker.
2018-10-23 11:21:34 -04:00
Rob Rix
92ac53252e Define upcasting to InterposeC. 2018-10-23 09:45:33 -04:00
Rob Rix
edbf882fa9 Raise the graph state handler. 2018-10-23 09:43:57 -04:00
Rob Rix
bc094e6014 Add some Effect constraints. 2018-10-23 09:43:26 -04:00
Rob Rix
ee17c526e6 Specify the value type. 2018-10-23 09:41:46 -04:00
Rob Rix
6697e2f9e5 runEvaluator produces Eff. 2018-10-23 09:41:36 -04:00
Rob Rix
0a337d5a25 Eavesdrop without changing the type of analyzeModule. 2018-10-23 09:31:43 -04:00
Rob Rix
f4faaed464 Define upcasting on Eff. 2018-10-23 09:31:11 -04:00
Patrick Thomson
8630d20030 Merge pull request #2229 from github/monadfail-desugaring
Turn on `-XMonadFailDesugaring` globally.
2018-10-22 21:44:45 -04:00
Patrick Thomson
316915a80b Merge branch 'master' into monadfail-desugaring 2018-10-22 21:04:34 -04:00
Patrick Thomson
0134a3ce67 Merge pull request #2228 from github/bump-ts-ruby
Bump tree-sitter-ruby.
2018-10-22 21:04:25 -04:00
Rob Rix
21f17ff56f Clean up a bunch of algebras. 2018-10-22 20:30:07 -04:00
Rob Rix
314aff5d56 Bump higher-order-effects for Resource & some handler helpers. 2018-10-22 20:18:36 -04:00
Rob Rix
11ccb849a6 Fix a dodgy import. 2018-10-22 20:18:16 -04:00
Patrick Thomson
bfee125016 Merge branch 'master' into monadfail-desugaring 2018-10-22 17:43:26 -04:00
Timothy Clem
def59bb851 Merge branch 'master' into bump-ts-ruby 2018-10-22 14:35:16 -07:00
Timothy Clem
d5ddbb390e Merge pull request #2225 from github/operating-docs-updates
Operating docs notes
2018-10-22 14:34:39 -07:00
Patrick Thomson
cffcd15b5e Merge branch 'master' into bump-ts-ruby 2018-10-22 16:28:25 -04:00
Timothy Clem
8d3e921f6b Merge branch 'master' into operating-docs-updates 2018-10-22 13:11:09 -07:00
Timothy Clem
d04b9d8dbe Merge pull request #2219 from github/better-terminal-log-config
Check stdout so semanticd logging works well with Procfiles
2018-10-22 13:10:59 -07:00
Patrick Thomson
8800f7072e Turn on -XMonadFailDesugaring globally.
In the past few years, GHC has been moving to remove the `fail` method
from the definition of `Monad`, a longtime wart, and requiring monads
that fail due to an incomplete pattern match to implement `MonadFail`.
You can read about it[here](https://wiki.haskell.org/MonadFail_Proposal).
Though this move is still in progress, we can opt into it by turning
on the `-XMonadFailDesugaring` extension.

The matching and rewriting systems will both benefit from this, as the
incomplete pattern match in following rewrite rule will crash without
`-XMonadFailDesugaring`, even though the sensible and correct thing
for the rule to do is call out to its `MonadFail` instance:

```haskell
-- crashes the program without -XMonadFailDesugaring
getReceiver :: Rule a (Ruby.Send term) term
getReceiver = do
  (Ruby.Send (Just rec) _ _ _) <- target
  pure rec
```

In addition, turning on `MonadFailDesugaring` will warn you if you put
an incomplete pattern match in a monad that doesn't implement `MonadFail`.
This setting will become implicit in GHC 8.6, so this is a good chance
to make sure that we don't introduce any incomplete patterns going forward.
2018-10-22 14:07:48 -04:00
Patrick Thomson
54fb762cf1 Bump tree-sitter-ruby.
The bumped version of tree-sitter-ruby did not make it into #2223 due
to an error on my part. This halves the time it takes to parse the
pathological lexer.rb file.
2018-10-22 13:55:52 -04:00
Rob Rix
08c95f894d Simplify the eavesdropping carriers. 2018-10-22 13:06:59 -04:00
Rob Rix
bfe5406fad Fix up some type applications. 2018-10-22 13:00:57 -04:00
Rob Rix
119cdad2d2 Raise a bunch of handlers. 2018-10-22 12:58:06 -04:00
Rob Rix
5ea78e922e Simplify the Modules carrier. 2018-10-22 12:57:58 -04:00
Rob Rix
60b27e84f5 Simplify the collecting carriers. 2018-10-22 12:57:51 -04:00
Rob Rix
4338e5b5b9 Simplify the flow-sensitive carriers. 2018-10-22 12:57:46 -04:00
Rob Rix
9021472361 Simplify the flow-insensitive carriers. 2018-10-22 12:57:39 -04:00
Rob Rix
56eae42043 Simplify the While carriers. 2018-10-22 12:49:01 -04:00
Rob Rix
ee077944ca Generalize the Abstract.Boolean smart constructors. 2018-10-22 12:45:36 -04:00
Rob Rix
9b3fb906ae Simplify the BooleanC carriers. 2018-10-22 12:38:43 -04:00
Timothy Clem
32c49a918f Merge branch 'master' into better-terminal-log-config 2018-10-22 09:29:41 -07:00
Rob Rix
a06ede905e 📝 raiseHandler. 2018-10-22 12:27:50 -04:00
Rob Rix
9fbbd9a667 Generalize unify. 2018-10-22 12:27:13 -04:00
Rob Rix
3c267f2757 Generalize substitute. 2018-10-22 12:27:06 -04:00