Patrick Thomson
fa9f4ee559
Merge branch 'master' into upgrade-distribute
2019-05-21 13:05:55 -04:00
Patrick Thomson
162e8ec59a
unused import
2019-05-21 12:06:28 -04:00
Patrick Thomson
c7105746c4
fix whitespace
2019-05-21 12:02:24 -04:00
Patrick Thomson
a8974e39d9
Second pass, imposing an export list.
2019-05-21 12:01:18 -04:00
Patrick Thomson
f89becc182
Disable functions in Semantic.Util not used by specs or tests.
2019-05-21 11:46:40 -04:00
joshvera
73a2bd0af2
donut snake case
2019-05-21 10:50:16 -04:00
Patrick Thomson
2f6ad83728
Decouple DistributeC from LiftC IO.
2019-05-21 10:42:20 -04:00
joshvera
76ece76746
lints
2019-05-20 18:52:58 -04:00
joshvera
b8634b07c8
Rethrow posix signals to the main thread
2019-05-20 18:48:27 -04:00
Patrick Thomson
0c55512221
Merge branch 'master' into ignore-minified-js
2019-05-16 13:41:59 -04:00
Patrick Thomson
6aaa2f47fd
The hints... were wrong?
2019-05-15 18:33:22 -04:00
Patrick Thomson
f11a244f19
More lints.
2019-05-15 18:30:56 -04:00
Patrick Thomson
ad070aa1ab
Lints.
2019-05-15 18:29:47 -04:00
Patrick Thomson
0197e40f38
Document rethrowing.
2019-05-15 18:28:21 -04:00
Patrick Thomson
e421dbeb20
We probably want to only catch sync errors here.
2019-05-15 18:25:09 -04:00
Patrick Thomson
70463f79f9
Remove cubic-caller problem.
2019-05-15 18:21:07 -04:00
Patrick Thomson
334243efc0
Make readFilePair fail in IO rather than require extra MonadFail.
2019-05-15 18:04:07 -04:00
Patrick Thomson
a544c2d6d8
Refactor internals of FilesC to use catch rather than Exc.catch.
2019-05-15 18:04:07 -04:00
Patrick Thomson
e18cb752ce
Use Catch in the REPL.
2019-05-15 18:04:07 -04:00
Patrick Thomson
73b0b17ff0
Add Catch to the TaskEff stack.
2019-05-15 18:04:07 -04:00
Patrick Thomson
45492449c1
Ignore minified .js files ( #2529 )
...
aleph is doing more work than it needs to, as semantic is
all-too-enthusiastic to read in a whole node_modules directory of
minified .js files. A few well-placed boolean checks ensure that
we don't waste these cycles.
Fixes #2529 .
2019-05-15 12:49:51 -04:00
Patrick Thomson
877e440800
Merge branch 'master' into remove-boring-instances
2019-05-13 13:29:31 -04:00
Timothy Clem
b2ff549d53
Remove this stat
2019-05-09 15:06:13 -07:00
Timothy Clem
7830fb9137
Cleanup to oneline
2019-05-09 13:19:43 -07:00
Timothy Clem
eae4bdb8c7
Allow passing excludes on stdin
2019-05-09 13:17:18 -07:00
Patrick Thomson
f31cc397ad
For some reason, only Hlint died on this syntax error.
2019-05-08 11:17:49 -04:00
Patrick Thomson
039dca154a
Forgot some newtype specifiers.
2019-05-08 11:15:21 -04:00
Patrick Thomson
65ca86534e
🔥 Semantic.Task.Files.
2019-05-08 11:06:28 -04:00
Patrick Thomson
ec03076cf1
🔥 Control.Effect.REPL.
2019-05-08 11:04:33 -04:00
Patrick Thomson
46bcc03437
🔥 Control.Abstract.Modules.
2019-05-08 11:03:16 -04:00
Patrick Thomson
f8a2cda0d0
🔥 Control.Abstract.ScopeGraph
2019-05-08 11:01:16 -04:00
Patrick Thomson
6024a7b0d9
🔥 Control.Abstract.Value.
2019-05-08 11:00:03 -04:00
Patrick Thomson
78c0158355
🔥 Control.Abstract.Heap
2019-05-08 10:59:45 -04:00
Patrick Thomson
11c9133202
🔥 Semantic.Telemetry.
2019-05-08 10:55:01 -04:00
Patrick Thomson
bb26b414c0
🔥 Semantic.Resolution.
2019-05-08 10:52:49 -04:00
Patrick Thomson
99fca869ff
🔥 Algorithm
2019-05-08 10:51:23 -04:00
Patrick Thomson
6748c13c79
Merge branch 'master' into remove-orphan-files
2019-05-03 15:26:26 -04:00
Timothy Clem
c6cc5cb459
Limit line we return to 180
2019-04-30 10:54:24 -07:00
Patrick Thomson
065c4688ef
Remove unused protobuf-related files.
...
For some reason that escapes me at the moment, I chose to put these
files in the main tree rather than in services/alephd.
2019-04-29 10:58:51 -04:00
Patrick Thomson
396fce8ace
Remove stray occurrences of Debug.Trace.traceM.
2019-04-24 12:13:08 -04:00
Timothy Clem
5de5e1d367
Done
2019-04-15 12:57:36 -07:00
Timothy Clem
834de443d3
Wire in list of paths to exclude
2019-04-15 12:50:56 -07:00
Timothy Clem
e381f4d95d
Add bloboid (if exists) to proto output
2019-04-12 15:48:49 -07:00
Timothy Clem
abd0bf08af
Narrow in on language support for now
2019-04-12 15:48:35 -07:00
Timothy Clem
a37a737562
Stub in an exclude list
2019-04-12 15:48:09 -07:00
Timothy Clem
eb0e820fe9
Stat how long it takes to read git repos
2019-04-12 14:41:01 -07:00
Timothy Clem
7840aec67b
Fix specs
2019-04-12 12:50:30 -07:00
Timothy Clem
40c4c1f657
Cleanup
2019-04-12 11:45:07 -07:00
Timothy Clem
be17d782ad
Handle dirs and git repos for parsing
2019-04-12 11:40:22 -07:00
Timothy Clem
aef2d62b1b
Move Git functionality into semantic
2019-04-12 11:40:03 -07:00
Timothy Clem
8779d2c296
Enable proto output on the CLI for symbols
2019-04-12 09:55:53 -07:00
Timothy Clem
946b68eda8
Allow parsing entire directory
2019-04-12 09:55:40 -07:00
Timothy Clem
c8083a0470
This is no longer necessary
2019-03-29 07:59:33 -07:00
Timothy Clem
48a11d88e8
Merge remote-tracking branch 'origin/shelly-git-action' into alternative-schema
2019-03-28 17:39:56 -07:00
Patrick Thomson
e73b01f04b
Merge remote-tracking branch 'origin/master' into shelly-git-action
2019-03-28 14:30:43 -04:00
Rick Winfrey
098fdd959a
Merge branch 'master' into alephd-testing
2019-03-28 09:49:23 -07:00
Patrick Thomson
69c11c816e
Merge remote-tracking branch 'origin/master' into shelly-git-action
2019-03-28 09:30:02 -04:00
Timothy Clem
13fe8e14bc
Put extra info about the blob in ModuleInfo
2019-03-27 11:51:38 -07:00
Patrick Thomson
ffaba28677
Fix tests.
2019-03-27 09:03:49 -04:00
Timothy Clem
532c0e3770
Add blob oids into the symbols interface
2019-03-26 15:59:22 -07:00
Rick Winfrey
8e6561c487
Avoid exporting constructors for Name
2019-03-26 14:55:15 -07:00
Rick Winfrey
654259f367
Use enumBounded for EdgeLabel, Kind, and Relation
2019-03-26 11:20:39 -07:00
Timothy Clem
aa3d8d6a10
Merge remote-tracking branch 'origin/master' into shelly-git-action
2019-03-26 09:17:15 -07:00
Rick Winfrey
5824409984
Merge branch 'master' into alephd-testing
2019-03-25 15:30:41 -07:00
Timothy Clem
23920a04cd
Capture and carry around blob oid
2019-03-25 12:21:32 -07:00
Patrick Thomson
cf52476d3b
Fix compile errors.
2019-03-25 11:15:37 -04:00
Patrick Thomson
f82146ea58
No need to use type applications.
2019-03-22 16:52:07 -04:00
Patrick Thomson
272b5b3b64
Use flags for Options.
2019-03-22 16:37:17 -04:00
Patrick Thomson
5dfb7fb50d
Stray LANGUAGE pragma.
2019-03-22 16:27:36 -04:00
Patrick Thomson
ecea375520
Eliminate boolean blindness with tagged flags a la olegfi.
2019-03-22 16:25:04 -04:00
Rick Winfrey
c2cef7dd03
Merge branch 'master' into alephd-testing
2019-03-21 17:31:25 -07:00
Rick Winfrey
02bb89c546
Make this easier to read
2019-03-20 13:08:17 -07:00
Rick Winfrey
2ccf2ae05c
Export Name constructors (for now)
2019-03-20 13:08:05 -07:00
Rick Winfrey
66f5a06f1f
Merge branch 'master' into alephd-testing
2019-03-19 13:47:48 -07:00
Josh Vera
f2c6a50c2d
Merge branch 'master' into use-external-exceptions-package
2019-03-19 16:06:53 -04:00
Josh Vera
5f23615f17
Merge branch 'master' into use-external-exceptions-package
2019-03-19 15:01:06 -04:00
Josh Vera
b0309f86a2
Merge branch 'master' into tree-sitter-timeout
2019-03-19 14:42:36 -04:00
Max Brunsfeld
d153b6090b
Remove redundant import
2019-03-19 10:40:32 -07:00
Patrick Thomson
ec76510534
Merge branch 'master' into index-calls
2019-03-19 10:36:34 -04:00
Patrick Thomson
139b0c5bd1
Use external fused-effects-exceptions package.
...
This was OSS'd because it turned out to be a little tricky and we
didn't want external consumers to have to implement it themselves. No
reason to keep it around in our tree.
2019-03-19 10:34:13 -04:00
Max Brunsfeld
3249307ccd
Use Tree-sitter's built-in timeout API instead of a separate timeout thread
2019-03-18 16:30:15 -07:00
Rick Winfrey
e64fa5ad3b
This should still be Prelude
2019-03-18 16:11:18 -07:00
Josh Vera
b59bf0622e
Merge branch 'master' into signal-handling
2019-03-18 18:29:56 -04:00
Rick Winfrey
3a596f97e4
Merge branch 'master' into filter-gensymed-names
2019-03-18 13:51:50 -07:00
Josh Vera
bc4dce9725
Merge branch 'master' into signal-handling
2019-03-18 16:41:51 -04:00
Timothy Clem
a507a687be
Just pick out the selector
2019-03-18 12:23:54 -07:00
Timothy Clem
8208a4154f
Include function calls in symbols output
2019-03-18 10:53:02 -07:00
Patrick Thomson
1268b209de
Regenerate data types from hydro.
...
Now that twirp-haskell generates significantly better code, we should
use it for our data types. This overcomes the significant problems
associated with JSON instances for protobuf objects, since now the
FromJSON and ToJSON instances are defined in terms of the JSONPB
instances, which brings them in line with the standard.
This is a breaking change, but we don't have any consumers of this API
yet, so @tclem gave me the all clear.
2019-03-18 13:14:39 -04:00
joshvera
9486196cb7
indentation
2019-03-18 13:08:21 -04:00
joshvera
a9e4a71fd0
Move catchSync to Control.Effect.Catch
2019-03-18 12:56:46 -04:00
Rick Winfrey
f6df1854d1
Add 📝
2019-03-15 16:06:29 -07:00
Rick Winfrey
864aa0af9f
Remove comments, these are no captured as issues
2019-03-15 16:04:41 -07:00
Rick Winfrey
8d4bd5d944
Fix copy pasta mistake
2019-03-15 12:13:07 -07:00
Rick Winfrey
4714579627
Move for readability
2019-03-15 12:06:19 -07:00
Rick Winfrey
e572bcb5b3
Merge branch 'master' into filter-gensymed-names
2019-03-15 11:43:25 -07:00
Rick Winfrey
8d5f0bb549
Fix lint
2019-03-15 11:25:54 -07:00
Rick Winfrey
1af0ea0534
Update TypeScript syntax terms to avoid throwNoNameError
where possible
2019-03-15 11:23:18 -07:00
Rick Winfrey
db6a207216
Update RequiredParameter
2019-03-15 11:23:00 -07:00
Rick Winfrey
b66188b1e6
Update import for typescript
2019-03-15 11:22:52 -07:00
Rick Winfrey
beea09beaf
Update Ruby Syntax terms to not use throwNoNameError
where possible
2019-03-15 11:22:32 -07:00
Rick Winfrey
1dbc7ca218
Also add note to investigate gensym'ed names and imports
2019-03-15 11:22:14 -07:00
Rick Winfrey
0b1df97163
Add note to investigate gensym'ed names with respect to References
2019-03-15 11:21:59 -07:00
Rick Winfrey
6197b9941b
Update Go.QualifiedImport
2019-03-15 11:21:41 -07:00
Rick Winfrey
3cebf1ac15
Update Let
2019-03-15 11:21:26 -07:00
Rick Winfrey
0c6aa4e759
Add note about interplay between of throwNoNameError
and AccessControlError
2019-03-15 11:21:09 -07:00
Rick Winfrey
09c0f4df3c
Update TypeAlias
2019-03-15 11:20:43 -07:00
Rick Winfrey
30efba239c
Update RequiredParameter
2019-03-14 17:20:41 -07:00
Rick Winfrey
e9b5e5760d
Update VariableDeclarations
2019-03-14 17:20:29 -07:00
Rick Winfrey
79e144d73a
Update PublicFieldDefinitions
2019-03-14 17:20:02 -07:00
Rick Winfrey
be3470fb36
Also ask about class' superscopes and their gensym names
2019-03-14 17:19:31 -07:00
Rick Winfrey
8711db798d
Use declareMaybeName for classes
2019-03-14 17:19:03 -07:00
Rick Winfrey
19c9e7e4cf
Change the way declareFunction works to also return a name
2019-03-14 17:17:50 -07:00
Rick Winfrey
aafe4d043a
Add question
2019-03-14 17:17:13 -07:00
Rick Winfrey
ae8a8efe2c
Use declareMaybeName for function parameters
2019-03-14 17:16:36 -07:00
Rick Winfrey
6cf15d4dac
Simplify do
2019-03-14 17:15:59 -07:00
Rick Winfrey
7b21806c8b
Use declareMaybeName for method parameters
2019-03-14 17:15:26 -07:00
Rick Winfrey
3031d40a7b
Add declareMaybeName
2019-03-14 17:13:49 -07:00
Josh Vera
50d96751e3
Merge branch 'master' into alephd-threading
2019-03-14 12:02:04 -04:00
Timothy Clem
c20c214170
Merge branch 'master' into real-jsonpb
2019-03-13 16:28:35 -07:00
Rick Winfrey
d33df00f9c
We implicitly gensym names when we throw NoNameError
but we cannot alter the declaration
2019-03-13 16:20:11 -07:00
Timothy Clem
191000d1e9
++generated pb code from twirp-haskell updates
2019-03-13 13:02:07 -07:00
joshvera
7c6ee7f94b
Merge remote-tracking branch 'origin/master' into alephd-threading
2019-03-13 11:52:45 -04:00
joshvera
7bfe02c24c
Remove Void hiding
2019-03-13 11:15:50 -04:00
Rick Winfrey
81808ccb37
Use Gensym relation
2019-03-12 18:38:27 -07:00
Rick Winfrey
a7f2decad0
Qualify
2019-03-12 18:36:05 -07:00
Rick Winfrey
3d14bcb829
Add a Gensym
relation
2019-03-12 16:54:12 -07:00
joshvera
29b774c22d
WIP async effect
2019-03-12 18:41:20 -04:00
Rick Winfrey
d16a56c664
Revert "Update ScopeGraph.Kind naming to avoid confusion"
...
This reverts commit 6ccdc3a70c984819d457412e113b7dcfce0e17f8.
2019-03-12 09:56:01 -07:00
Timothy Clem
3001cf1c0f
Clean up, nothing to hide now
2019-03-11 14:35:47 -07:00
Timothy Clem
4094e29af0
More linting cleanup
2019-03-11 13:40:58 -07:00
Timothy Clem
2aa8b9fd85
Generated code cleanup
2019-03-11 13:31:47 -07:00
Timothy Clem
7b28712566
Try out Language as just a string
2019-03-11 13:21:27 -07:00
Timothy Clem
498bd79f25
Start vertex ids at 1
2019-03-11 13:10:37 -07:00
Timothy Clem
23bad2d665
Regen pb with latest twirp haskell, ++proto3-suite
2019-03-11 13:10:19 -07:00
Rick Winfrey
5368c6b37b
Merge branch 'master' into scope-graph-indexer
2019-03-11 11:04:27 -07:00
Patrick Thomson
9fbc0ea0d0
Merge branch 'master' into bump-fused-effects-03-03-2019
2019-03-07 09:38:16 -05:00
Patrick Thomson
aac0dccb4f
lints again
2019-03-07 09:25:13 -05:00
Patrick Thomson
8cbd955629
lint
2019-03-07 07:30:59 -05:00
Patrick Thomson
2784f14c51
Rob is the brain genious
2019-03-06 18:13:39 -05:00
Patrick Thomson
f28f23c97d
infinite blessings upon @rob_rix
2019-03-06 17:39:24 -05:00
Patrick Thomson
9120c9858d
more fixes
2019-03-06 17:10:32 -05:00
Rick Winfrey
84989eb538
Merge branch 'master' into scope-graph-indexer
2019-03-06 16:29:50 -05:00
Patrick Thomson
2bb5e8d9e1
restore the old definition of EavesdropC
2019-03-06 14:38:52 -05:00
Patrick Thomson
9845db1ac9
stuck on eavesdrop
2019-03-06 14:13:35 -05:00
Patrick Thomson
256d22c6d2
fix (?) PythonPackaging
2019-03-06 10:52:58 -05:00
Patrick Thomson
2fa32624ac
lints
2019-03-06 10:43:12 -05:00
Patrick Thomson
79ae590376
compiles
2019-03-06 10:12:10 -05:00
Patrick Thomson
4cfcda5aaf
WIP
2019-03-05 16:22:59 -05:00
Patrick Thomson
4eb7942709
Merge remote-tracking branch 'origin/master' into bump-fused-effects-03-03-2019
2019-03-05 15:57:36 -05:00
Patrick Thomson
d85f0e4823
Merge remote-tracking branch 'origin/master' into converting-api-rfc
2019-03-04 17:36:11 -05:00
Patrick Thomson
43bbcb01a5
WIP
2019-03-04 17:35:01 -05:00
Josh Vera
459bf810c4
Merge branch 'master' into alephd-feature-flag
2019-03-04 16:05:29 -05:00
Rick Winfrey
73bbc66a2f
Update ScopeGraph.Kind naming to avoid confusion
...
This helps us disambiguate between syntax terms and scope graph kinds
2019-03-04 12:51:33 -08:00
Rick Winfrey
32db5f2ef3
Merge branch 'master' into scope-graph-indexer
2019-03-04 11:55:38 -08:00
Josh Vera
bfb844a3b5
Merge branch 'master' into alephd-feature-flag
2019-03-04 13:14:31 -05:00
Patrick Thomson
6eb1fe3403
WIP
2019-03-04 12:54:21 -05:00
Patrick Thomson
8285c3f680
WIP
2019-03-04 12:00:19 -05:00
Rob Rix
cd52b5d932
Update src/Semantic/Api/Bridge.hs
...
Co-Authored-By: patrickt <patrickt@github.com>
2019-03-04 10:44:20 -05:00
Patrick Thomson
aa2f6b2391
use #? properly
2019-03-04 10:34:48 -05:00
Patrick Thomson
9a71bdcc32
English is hard.
2019-03-04 10:31:43 -05:00
Patrick Thomson
5205e44e1c
One more clarification in the docs.
2019-03-02 01:56:13 -05:00
Patrick Thomson
ebbe50a080
Stray import
2019-03-01 16:54:02 -05:00
Patrick Thomson
6a0c0e67c5
Document APIConvert and APIBridge.
2019-03-01 16:45:26 -05:00
Patrick Thomson
37d697f0da
Remove unlawful lens.
2019-03-01 16:38:37 -05:00
Patrick Thomson
c316b20f07
Isolate the pattern of a ^? re b into its own combinator.
2019-03-01 16:25:59 -05:00
Patrick Thomson
e5563f39d5
Merge branch 'master' into pattern-synonyms-for-blobpair
2019-03-01 16:16:53 -05:00
Patrick Thomson
83322e9f94
Fix lints.
2019-03-01 15:28:22 -05:00
Patrick Thomson
b92d9a5382
Rename Helpers to Bridge.
2019-03-01 15:27:13 -05:00
Patrick Thomson
7204da3951
RFC: unified interface for converting API/legacy/native types.
...
As we've brought up a Twirp-based API, we've found a need to convert
between several different "views" of the same data, such as position
or span information. Because all protobuf fields are optional, we have
to juggle the `Maybe` values associated with the protobuf fields that
we are converting. While I think this approach has merit, there is a
complexity overhead associated with these conversions: we currently
have around ten ad-hoc functions that perform these conversions, often
containing superfluous `Maybe`s for the sake of convenience.
I've replaced these ad-hoc functions with two classes: `APIBridge` and
`APIConvert`. An instance of `APIBridge` between types `a` and `b`
means that we can convert between `a` and `b` and vice versa
losslessly; in other words, there is an isomorphism between them.
`APIConvert` means that you can convert from an `a` to a `b`, but you
may not be able to convert from all `b`s to an `a` (such as in the
case of missing fields); in other words, there is a partial isomorphism.
These are implemented with concepts from `lens`, namely an `Iso` for
`APIBridge` and a `Prism` for `APIConvert`.
Advantages of this approach:
* Lawful API. We can now clearly delineate the fact that converting a
native data type to an API data type always succeeds, but the
reverse may fail: an API `Span` may have missing position
information, and we want to handle that explicitly, rather than
paper over it with these helper functions. Both the APIBridge and
APIConvert typeclasses provide a set of strong laws re. behavior,
since they provide a lens-y interface.
* Unified API. No longer do we have to juggle a set of functions in
our heads - no need to choose between `spanToSpan`,
`spanToLegacySpan`, or `apiSpanToSpan`. `converting` and `bridging`
do the work for you. Everything is much cleaner.
* Fewer partial functions. The converter from API blob pairs to native
blob pairs no longer calls `error`, which is definitely a good
thing.
* Historical precedent. Prisms and isomorphisms are a fluent way to
express data transformations; the team behind Minecraft uses
isomorphisms and prisms [to transfer data between versions][minecraft].
Disadvantages:
* Complexity overhead. You have to learn about prisms, reviews,
isomorphisms, neither of which is the world's hardest concept but
which take a little while to internalize.
* This might be polymorphism for polymorphism's sake.
Something we could do is postpone this patch until I have a chance to
give a lens tutorial in a Codex.
[minecraft]: https://github.com/Mojang/DataFixerUpper
2019-03-01 14:17:23 -05:00
Patrick Thomson
39ff80f652
Merge branch 'bump-python-ts' into converting-api-rfc
2019-03-01 14:01:40 -05:00
Patrick Thomson
2eb1280681
WIP
2019-03-01 14:01:27 -05:00
Patrick Thomson
e7c4884cb6
Otiose parentheses.
2019-03-01 13:00:12 -05:00
Patrick Thomson
77672564eb
unused imports
2019-03-01 12:58:51 -05:00
Patrick Thomson
a2772e4338
Bump python-tree-sitter so to avoid dirty worktrees.
...
Because of Python grammar changes, this removes the `Identifier'` token.
2019-03-01 12:53:19 -05:00
Patrick Thomson
f29f26cc71
Fix some errors that crept in.
2019-03-01 12:36:16 -05:00
Patrick Thomson
079ce8baa0
Eliminate other places where These leaked to implementation.
2019-03-01 11:52:21 -05:00
Patrick Thomson
c41d60548c
Use pattern synonyms in API helpers.
2019-03-01 11:50:46 -05:00
Patrick Thomson
060c8f50ff
Refactor: use pattern synonyms to construct BlobPairs.
...
The `BlobPair` type is defined as an alias for `Join These Blob`. Though
this sacrifices a degree of type safety, it's extremely convenient, as
you can get to a Functor and Bifunctor instance very quickly.
Pattern-matching on `BlobPair` is less elegant though, as it requires
a nested Join then a match on `These`, which is not immediately
indicative of what a given pair might do.
This adds pattern synonyms for the `Inserting`, `Deleting`, and
`Diffing` cases, and removes the less-expressive functions returning such.
2019-03-01 11:19:24 -05:00
joshvera
7dad030d34
Update repository push proto schema using twirp-haskell
2019-02-28 16:05:00 -05:00
Rick Winfrey
0e23e4256d
Merge branch 'master' into scope-graph-indexer
2019-02-27 17:03:08 -08:00
Timothy Clem
b1405fb9ec
Change up the pipeline a bit
2019-02-26 14:17:11 -08:00
Timothy Clem
deddb2d82e
Less noisy logging
2019-02-26 09:31:38 -08:00
joshvera
d586cfb8dd
remove do block
2019-02-26 10:41:04 -05:00
joshvera
89a31a4d69
Change span issue to a TODO
2019-02-26 10:40:29 -05:00
joshvera
7fc7eb868a
Add scope graph changes back
2019-02-22 17:56:42 -05:00
Josh Vera
8c654caacc
Merge branch 'indexer-prototype' into merge-indexer-prototype
2019-02-22 17:33:53 -05:00
joshvera
f2aee684bc
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-22 11:10:53 -05:00
joshvera
4f29332685
Merge branch 'deploy-to-moda' into merge-indexer-prototype
2019-02-21 12:23:20 -05:00
joshvera
ffc53d3877
Merge remote-tracking branch 'origin/indexer-prototype' into merge-indexer-prototype
2019-02-21 12:22:08 -05:00
Timothy Clem
b09e0c27bb
Dont need args
2019-02-20 16:48:21 -08:00
Timothy Clem
53a068a71b
Show entire arg
2019-02-20 15:59:36 -08:00
Timothy Clem
69b523593f
Use parseLanguages
2019-02-20 15:41:51 -08:00
Timothy Clem
e12cea5e40
Whoops, got these backward
2019-02-20 14:51:21 -08:00
joshvera
fcf2c57bd1
more hints
2019-02-20 16:53:44 -05:00
joshvera
c34d4940f1
move the rest of the files as well
2019-02-20 16:39:39 -05:00
joshvera
91c0777782
Rename API.hs to Api.hs
2019-02-20 16:25:38 -05:00
joshvera
12f0f91a7b
hints
2019-02-20 15:51:15 -05:00
joshvera
88c172c984
update tests
2019-02-20 15:45:52 -05:00
Patrick Thomson
47a7d945bc
Remove otiose changes in Taggable.
2019-02-20 15:41:53 -05:00
joshvera
3510b81bcf
Fix MemberAccess and instances
2019-02-20 15:40:42 -05:00
joshvera
166948ba6f
Remove MessageField and Named
2019-02-20 15:19:17 -05:00
joshvera
0d1f6cdb70
Keep deriving on AccessControl
2019-02-20 15:18:43 -05:00
joshvera
4a4b153a38
revert 41ed8429d
...
41ed8429d578db0a540c4022f72f650ce2c15303
2019-02-20 15:17:31 -05:00
joshvera
be4250707d
Merge remote-tracking branch 'origin/indexer-prototype' into deploy-to-moda
2019-02-20 14:23:18 -05:00
Patrick Thomson
0098376172
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-19 20:45:16 -05:00
Timothy Clem
9636fbd86f
Merge remote-tracking branch 'origin/master' into embrace-new-api
2019-02-19 16:32:16 -08:00
Patrick Thomson
a69d420aee
And switch over to RepositoryPush too.
2019-02-19 19:07:39 -05:00
Patrick Thomson
eb41ab89d1
move over User entity
2019-02-19 17:35:56 -05:00
Patrick Thomson
df22acfbb9
start migrating to generated code
2019-02-19 17:14:53 -05:00
Rick Winfrey
a387750c0f
Merge branch 'master' into log-file-paths-part-duex
2019-02-19 13:24:10 -08:00
Timothy Clem
d85f36c210
Merge remote-tracking branch 'origin/master' into embrace-new-api
2019-02-19 12:22:19 -08:00
Timothy Clem
f0a5c26e9d
Include docstrings in symbols response
2019-02-19 10:55:24 -08:00
Patrick Thomson
51e3160c7c
Bad imports/merge fallout
2019-02-19 13:42:15 -05:00
Patrick Thomson
4f1bd8f5f7
Merge remote-tracking branch 'origin/master' into indexer-prototype-no-sg
2019-02-19 12:26:00 -05:00
Rick Winfrey
954bccbf05
Add TaskSesion to the Reader environment; conditionally log file paths for public repos
2019-02-15 16:39:59 -08:00
Rick Winfrey
9813ae2319
Parameterize TaskSession with isPublic
2019-02-15 16:22:51 -08:00
Patrick Thomson
e6219b67ba
No need for this vestigial instance
2019-02-15 18:18:41 -05:00
Patrick Thomson
7c12476368
Unused pragma
2019-02-15 18:08:06 -05:00
Timothy Clem
d5a1fa45d0
One more import
2019-02-15 14:52:00 -08:00
Timothy Clem
2378f97b22
Don't need this import
2019-02-15 14:05:36 -08:00
Timothy Clem
0d3a2856c8
Fix up test due to breaking API change
2019-02-15 13:34:05 -08:00
Timothy Clem
f2af85704b
Embrace proto schema for CLI diff --json-graph
2019-02-15 13:26:42 -08:00
Timothy Clem
2905569016
Embrace proto schema for CLI --json-graph
2019-02-15 13:23:54 -08:00
Timothy Clem
58e521d0d1
Embrace proto schema for CLI --symbols
2019-02-15 13:16:41 -08:00
Timothy Clem
444de2c260
Embrace proto schema for CLI --toc
2019-02-15 13:11:24 -08:00
Patrick Thomson
c7b41a3594
Merge remote-tracking branch 'origin/master' into indexer-prototype-no-sg
2019-02-15 14:05:23 -05:00
Patrick Thomson
0ea62e85ef
further folderol
2019-02-15 13:54:05 -05:00
Patrick Thomson
fc42a90096
Remove ScopeGraph improvements from indexer tree.
2019-02-15 13:48:57 -05:00
Timothy Clem
92c2a5331e
Merge branch 'master' into misc-fixes
2019-02-15 10:46:29 -08:00
Timothy Clem
e3029bd89b
Allow unknown languages through so we can diff against /dev/null
2019-02-15 09:28:52 -08:00
Timothy Clem
6f76187c57
This help text was incorrect
2019-02-15 09:26:33 -08:00
joshvera
ea3909c5e4
Merge remote-tracking branch 'origin/master' into deploy-to-moda
2019-02-14 11:55:26 -05:00
Timothy Clem
785c74fffb
Merge remote-tracking branch 'origin/master' into generated-twirp-service
2019-02-14 08:39:52 -08:00
Timothy Clem
05e381d0c7
Force git to do case sensitive move here too
2019-02-14 08:31:45 -08:00
Timothy Clem
e696f64c8e
Force git to do a case sensitive move
2019-02-14 08:25:01 -08:00
Timothy Clem
112782a220
Merge remote-tracking branch 'origin/master' into generated-twirp-service
2019-02-14 08:17:08 -08:00
Patrick Thomson
7fede9ff0d
Add disclaimer.
2019-02-14 10:40:24 -05:00
joshvera
b576ac9dd2
Add more type signatures
2019-02-12 19:41:35 -05:00
joshvera
10d25b4591
Merge remote-tracking branch 'origin/util-type-signatures' into deploy-to-moda
2019-02-12 19:20:50 -05:00
Patrick Thomson
d0828341fb
Merge branch 'util-type-signatures' of github.com:github/semantic into util-type-signatures
2019-02-12 19:00:24 -05:00
Patrick Thomson
70aed63809
remove the signatures for evaluateProject' and evaluateProject fo rnow
2019-02-12 18:52:05 -05:00
joshvera
0d690dc2e1
Remove signature for now
2019-02-12 18:51:02 -05:00
Patrick Thomson
77d7b93f58
save characters on the typechecking functions
2019-02-12 18:27:21 -05:00
joshvera
984cb49513
don't qualify module
2019-02-12 18:25:02 -05:00
joshvera
dabcd10f69
remove duplicate import
2019-02-12 18:22:09 -05:00
joshvera
98813583a4
Merge branch 'util-type-signatures' of https://github.com/github/semantic into util-type-signatures
2019-02-12 18:20:44 -05:00
joshvera
3417c3108d
Add signature to callGraphRubyProject
2019-02-12 18:19:51 -05:00
joshvera
32ba7adfc0
Add evaluatePythonProject signature
2019-02-12 18:19:03 -05:00
Patrick Thomson
2b99769c20
Use FileEvaluator synonym
2019-02-12 18:13:36 -05:00
joshvera
f3443476e9
Merge branch 'util-type-signatures' of https://github.com/github/semantic into util-type-signatures
2019-02-12 18:08:35 -05:00
joshvera
a2eabb82af
Add more signatures
2019-02-12 18:08:32 -05:00
Patrick Thomson
9cc82ea3e2
evaluateProject and evaluateProject'
2019-02-12 17:55:37 -05:00
Patrick Thomson
28838003f6
Start filling in type signatures in Util.
2019-02-12 17:27:45 -05:00
Timothy Clem
cc78c0d8d5
Case Api as generated
2019-02-12 12:49:34 -08:00
Timothy Clem
648af915bb
Using vectors now
2019-02-12 09:54:22 -08:00
Timothy Clem
78621204bd
Re-gen twirp service and pb
2019-02-12 09:54:08 -08:00
joshvera
016f6ea0ed
Regenerate tests and eval variable declarations
2019-02-11 17:43:19 -05:00
joshvera
1c790bc78a
remove imports
2019-02-11 15:05:24 -05:00
joshvera
32d389541d
Use runTask' for evaluateProjectForScopeGraph
2019-02-11 14:55:07 -05:00
joshvera
6c612a987c
Die in evaluateProjectForScopeGraph for now
2019-02-11 14:35:35 -05:00
joshvera
c9724d2720
Merge 'origin/master' into deploy-to-moda
2019-02-11 14:27:22 -05:00
joshvera
5613754f0a
lints
2019-02-11 14:03:59 -05:00
joshvera
4fd258182e
Merge remote-tracking branch 'origin/indexer-prototype' into deploy-to-moda
2019-02-11 13:56:08 -05:00
joshvera
a8d1a2187a
eval hints
2019-02-11 13:38:00 -05:00
joshvera
7495f7788f
hints
2019-02-11 13:19:12 -05:00
joshvera
dd106278b3
Add getSpan so we don't have to eval a term
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-02-11 13:15:13 -05:00
Rick Winfrey
2c5aeebf3e
Fix assignment bug
...
The following Python code:
class WatchInformation(NamedTuple):
reason: str
actor_id: Optional[int]
inserted_at: Optional[str]
Is valid and parses correctly, but we failed to assign because we expected a value (and not just a type) for the assignment statements (e.g. `reason: str`).
2019-02-08 17:25:11 -08:00
joshvera
4f388cdbf2
Move nameTerm eval until after we've evaluated the module
2019-02-08 16:59:44 -05:00
Timothy Clem
6083803d68
Bring in twirp-haskell and generate everything from protos
2019-02-08 13:52:34 -08:00
joshvera
e9d90c0404
Map identifiers in functions to required parameters
2019-02-08 16:41:14 -05:00
Patrick Thomson
7db320f6a5
Consolidate a number of unused modules.
2019-02-08 14:43:15 -05:00
joshvera
74c7737672
more hints
2019-02-08 14:29:01 -05:00
Patrick Thomson
6b5f5c11de
Gut Semantic.Lens and move lensy declarations near their datatypes
2019-02-08 14:14:19 -05:00
joshvera
6ad4152935
Fix references to names
2019-02-08 14:10:17 -05:00
joshvera
95487929db
lints
2019-02-08 13:40:56 -05:00
Patrick Thomson
fbf4b443b4
Move tag to its own file and add a couple lenses
2019-02-08 12:05:59 -05:00
joshvera
4618ec8882
remove import
2019-02-07 18:19:16 -05:00
joshvera
5d428d22be
Add type sig to evalAliasNameAndSpan
2019-02-07 18:19:11 -05:00
joshvera
993037483f
Use paramSpan for params
2019-02-07 18:18:54 -05:00
joshvera
87ce3a8851
hlints
2019-02-07 18:13:11 -05:00
Timothy Clem
fbeb32de67
Can remove -fno-warn-orphans now
2019-02-07 11:20:54 -08:00
Timothy Clem
50bedeb689
Remove extraneous proto encoding/decode from our internal datatypes
2019-02-06 14:55:43 -08:00
Timothy Clem
ee700b465d
Oh yeah, don't need these
2019-02-06 09:44:04 -08:00
Timothy Clem
1342f2f52f
Merge branch 'master' into twirp-specs
2019-02-06 09:06:27 -08:00
Timothy Clem
ee8d406c58
Merge branch 'master' into twirp-specs
2019-02-06 08:47:11 -08:00
Rick Winfrey
8f57b5d08b
Don't need _ <-
pattern
2019-02-05 13:56:55 -08:00
Patrick Thomson
cd7aaf6c17
Export lists and comments.
2019-02-05 16:29:46 -05:00
Timothy Clem
27b242a2cf
Test a bunch of failure cases
2019-02-05 11:16:21 -08:00
Timothy Clem
f48d1ecf04
Not using this
2019-02-05 11:15:12 -08:00
Timothy Clem
ccc67eb355
Test only flag to force failure of parsing
2019-02-05 11:15:03 -08:00
Patrick Thomson
5f719f7d17
Restore deleted comment.
2019-02-05 13:54:07 -05:00
Patrick Thomson
ba2a270072
Document the Wrapped newtype.
2019-02-05 13:52:29 -05:00
Rick Winfrey
9f2820feaa
Merge branch 'second-wait' of https://github.com/github/semantic into second-wait
2019-02-05 10:43:54 -08:00
Rick Winfrey
7b9ca2a0b0
Split over two lines
2019-02-05 10:43:16 -08:00
Timothy Clem
3de377b6da
Better handling of partial errors
2019-02-05 10:04:37 -08:00
Timothy Clem
2cb4d44f4a
Align the ::
2019-02-05 10:04:05 -08:00
Rick Winfrey
ca04fb6495
Merge branch 'master' into second-wait
2019-02-04 19:12:16 -08:00
Rick Winfrey
3d125791ab
Wait and block on the async parsing thread
...
If we timeout an async parsing thread and return, but the parsing thread is still running, we can force a race condition in which we delete the parser before it's completed on the async thread. This patch blocks on the parsing thread until it is complete before we clean up the parser. But this might have unintended consequences for the downstream consumer (i.e. github/github).
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2019-02-04 16:23:36 -08:00
Timothy Clem
ed47f27c1f
Fix lints now that we are on a newer version of hlint
2019-02-04 15:19:21 -08:00
Timothy Clem
b2ae020f26
Merge branch 'master' into refactor-runTask-log-request-ids
2019-02-04 14:54:43 -08:00
joshvera
e99f85e7a1
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-04 17:17:45 -05:00
Patrick Thomson
76a6b21d77
Better benchmarks + strategic inlining.
2019-02-04 16:56:31 -05:00
Timothy Clem
33f03c42a5
Align the ::
2019-02-04 13:31:31 -08:00
Rick Winfrey
43538a0897
Merge branch 'master' into python-comparison-operators
2019-02-04 13:21:01 -08:00
Timothy Clem
77f07859a4
Merge branch 'master' into refactor-runTask-log-request-ids
2019-02-04 08:20:56 -08:00
joshvera
41b8f0ae9c
Merge remote-tracking branch 'origin/master' into javascript-assignment-fixes
2019-02-04 10:21:27 -05:00
Rick Winfrey
c5e9956501
Merge branch 'master' into python-comparison-operators
2019-02-01 17:08:29 -08:00
Timothy Clem
ce04fa8f12
Refactor runTask
2019-02-01 15:04:23 -08:00
joshvera
d67b7c273c
Add AccessControl instance for AnnotatedExpression
2019-02-01 17:02:26 -05:00
joshvera
f8fa4faa88
Merge remote-tracking branch 'origin/master' into javascript-assignment-fixes
2019-02-01 16:55:03 -05:00
Timothy Clem
d3a4377f3f
Merge branch 'master' into servant-experiment
2019-02-01 13:17:17 -08:00
joshvera
9a4b7337f2
Merge branch 'indexer-prototype' of https://github.com/github/semantic into indexer-prototype
2019-02-01 16:03:22 -05:00
joshvera
a4d892811f
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-01 16:03:16 -05:00
Rick Winfrey
22f8cdf709
Use tokens instead of symbols
2019-02-01 12:48:20 -08:00
Rick Winfrey
a7c2c83a08
Use a choice
to construct a single symbol table with term1
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-02-01 12:21:27 -08:00
Patrick Thomson
eb36aead94
Bump fused-effects.
2019-02-01 12:42:50 -05:00
Timothy Clem
a3a665bb5c
Correct inline docs
2019-02-01 08:54:26 -08:00
Josh Vera
37ea776107
Merge branch 'master' into javascript-assignment-fixes
2019-02-01 09:19:35 -05:00
Rick Winfrey
74fa0ca315
Revert "These syntax constructors are no longer used in Ruby's Syntax"
...
This reverts commit b2c8aa0afeb9abe3552dcabd74bbe2a114963e6d.
2019-01-31 17:33:10 -08:00
Rick Winfrey
9fd2e3e20f
Add pythonASTParser
2019-01-31 17:20:59 -08:00
Rick Winfrey
a5c32b80d3
Have to contextualize and postContextualize within chainl1Term
2019-01-31 17:01:33 -08:00
Rick Winfrey
2226a64b2b
Post contextualize the lhs of a binary comparison
2019-01-31 15:58:16 -08:00
Rick Winfrey
4a1dbe636f
These syntax constructors are no longer used in Ruby's Syntax
2019-01-31 15:55:13 -08:00
Rick Winfrey
ad82cf4c6d
Fixes contextualize bug for comments occuring after a binary operator
...
Example:
`if (self.__class__._create_slots.__code__ is not # pylint: disable=protected-access
OptimizerV2._create_slots.__code__):`
2019-01-31 15:54:51 -08:00
Rick Winfrey
17f64344ef
Assign comments within Python member access expressions
2019-01-31 15:30:28 -08:00
joshvera
554bd0b7fa
Fix up ambient declaration
2019-01-31 16:34:13 -05:00
Timothy Clem
61319cdc2c
Transition back to our language enum
2019-01-31 13:11:55 -08:00
joshvera
77b1e6f234
Add annotatedExpression to typescript
2019-01-31 16:07:19 -05:00
Timothy Clem
f14412fe8f
Merge remote-tracking branch 'origin/master' into servant-experiment
2019-01-31 12:57:59 -08:00
Rick Winfrey
0224ac0b99
Merge branch 'master' into visibility-resolution
2019-01-31 11:51:20 -08:00
Patrick Thomson
4701a91c02
move SQL stuff out of Core and add Catch effect
2019-01-31 14:37:40 -05:00
Rick Winfrey
ad2b314c3d
Remove Message and MessageField instances for AccessControl
2019-01-31 10:59:43 -08:00
Rick Winfrey
74f8c810fb
Add Primitive AccessControl instance
2019-01-31 10:59:15 -08:00
joshvera
a103539b40
Allow comments around property_identifier
2019-01-31 11:41:33 -05:00
joshvera
611b453617
Add goASTParser
2019-01-31 10:49:19 -05:00
joshvera
5f187e1070
Add nil and boolean to go assignment
2019-01-31 10:49:11 -05:00
Patrick Thomson
854d0f017e
reformat massive type signature.
2019-01-29 20:24:00 -05:00
Patrick Thomson
a7eb1e3ec1
Stop slaughtering the typechecker
2019-01-29 15:32:35 -05:00
Patrick Thomson
b148e17f2f
Merge fallout
2019-01-29 14:59:27 -05:00
Patrick Thomson
5609c0582f
Merge remote-tracking branch 'origin/indexer-prototype' into indexer-with-machines
2019-01-29 14:44:37 -05:00
Patrick Thomson
6b46cbd5db
really janky solution for language detection
2019-01-29 13:55:51 -05:00
joshvera
e60cc12603
Merge remote-tracking branch 'origin/indexer-prototype' into remove-python-aliases
2019-01-29 13:44:21 -05:00
joshvera
3e1c9bd4a5
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-01-29 13:26:45 -05:00
joshvera
ffb49d006b
Remove python aliases and add declaredAlias to Declarations
2019-01-29 13:25:49 -05:00
joshvera
b471283576
Use the alias's span
2019-01-29 12:58:21 -05:00
joshvera
c7d76532fb
Store terms in QualifiedImport
2019-01-29 12:38:48 -05:00
joshvera
8eb98f92a4
Merge in master
2019-01-29 11:59:09 -05:00
Rick Winfrey
cf642e30b9
Fix lints
2019-01-28 18:08:33 -08:00
Rick Winfrey
05672f0d79
Update affected Taggable instances (order of parameters)
2019-01-28 17:42:44 -08:00
Rick Winfrey
8572de31ef
Add access control to these syntax
2019-01-28 17:42:27 -08:00