1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
Commit Graph

125 Commits

Author SHA1 Message Date
Patrick Thomson
3e135837fd
Merge pull request #470 from github/macro-madness
Silence REPL macro-redefined warnings from the C compiler.
2020-02-06 14:25:59 -05:00
Patrick Thomson
65e661552b Silence REPL macro-redefined warnings from the C compiler.
In certain cases, use of the REPL can land us in a state where there
are multiple `cabal_macros.h` files being included, leading to
duplicate macro definitions. This does not factor into correctness,
as these duplicates are, well, duplicate definitions, but the warning
is tedious, so this patch passes `-Wno-macro-redefined` to the C compiler.
2020-02-04 18:31:03 -05:00
Rob Rix
0e5c97038f
Add a semantic-parse package. 2020-02-04 14:25:39 -05:00
Ayman Nadeem
114316c6c8
Merge pull request #448 from github/my-grate
Migrating ASTs to Semantic 🧀
2020-02-03 16:31:40 -05:00
Patrick Thomson
9aefc3c1a1 Pass -j to script/repl's GHCi flags.
This significantly improves parallelism.
2020-01-31 15:09:09 -05:00
Patrick Thomson
4058cd7b83 Correctly account of the presence of autogen files in build/noopt.
If you have `optimizations: False` in your cabal.project.local (such
as when you're in a tight build-run-debug cycle for some executable or
test suite), the autogenerated cabal_macros and Paths_ files might not
be present in the `build/` folder; if they aren't, we should look in
`build/noopt`.

This patch appears to address an issue I saw where the cabal macros
were being redefined, but I'm not entirely sure why. :/
2020-01-31 11:33:23 -05:00
Ayman Nadeem
75389e0a3a add semantic-codegen to script/ghci-flags 2020-01-31 10:27:27 -05:00
Patrick Thomson
bc3f67a88c Noopt isn't the right thing here. 2020-01-27 10:33:45 -05:00
Patrick Thomson
c9a581b40b Correct script/repl path to autogenerated sources.
This was preventing use of the repl script with any file that had a
dependency on `Semantic.Version`.
2020-01-26 17:51:53 -05:00
Patrick Thomson
aa67c2a15e Alphabetize. 2020-01-17 11:22:08 -05:00
Patrick Thomson
3345967836 Merge remote-tracking branch 'origin/master' into semantic-scope-graph 2020-01-14 15:30:01 -05:00
Rob Rix
87d526f96c
Merge pull request #379 from github/analysis-effects
Analysis effects
2020-01-14 07:27:49 -05:00
Patrick Thomson
2fbd4be90c Add semantic-scope-graph to ghci-flags 2020-01-13 14:06:49 -05:00
Timothy Clem
9cd8717cc2
Merge pull request #414 from github/more-precise-parsing
More precise parsing
2020-01-06 13:38:35 -08:00
Rob Rix
f305c38228
Add semantic-python’s tests to the load paths. 2019-12-20 10:56:51 -05:00
Rob Rix
a45de13034
Build the benchmarks’ dependencies. 2019-12-20 10:44:28 -05:00
Rob Rix
935fe94381
Build the tests’ dependencies. 2019-12-20 10:44:16 -05:00
Rob Rix
537f3c38da
Move the cabal build call into script/repl.
Doing it in script/ghci-flags means it has to be silent, which is super confusing/surprising.

Doing it in script/repl means we can see what it’s up to.
2019-12-20 10:44:02 -05:00
Timothy Clem
b2ef8e9fe1 Add semantic-tsx 2019-12-19 15:34:39 -08:00
Timothy Clem
e4bf165276 Add semantic-typescript 2019-12-19 14:32:45 -08:00
Rob Rix
a921912ecf
Factor out the prefix. 2019-12-18 16:55:20 -05:00
Timothy Clem
80ab58bd7f Introduce semantic-go 2019-12-18 13:52:22 -08:00
Rob Rix
bc5796178e
Quote the paths. 2019-12-18 16:50:40 -05:00
Rob Rix
ba84757c41
Generalize the fix-broken-cabal-store script to arbitrary GHC versions. 2019-12-18 16:50:29 -05:00
Timothy Clem
0392c43b45 Cleanup this script 2019-12-18 12:43:12 -08:00
Timothy Clem
1aea6200dd Merge remote-tracking branch 'origin/master' into test-precise-parsing 2019-12-18 11:09:05 -08:00
Rob Rix
e12af54e84
📝 the exec call. 2019-12-18 09:17:08 -05:00
Rob Rix
b49986a29e
📝 the flags. 2019-12-18 09:12:38 -05:00
Rob Rix
db07534694
Add a TODO. 2019-12-18 09:10:33 -05:00
Rob Rix
d2f539f59f
Keep the include paths together. 2019-12-18 09:07:01 -05:00
Rob Rix
4b8f044aab
📝 the initial build. 2019-12-18 09:05:44 -05:00
Rob Rix
75cc0ffe0a
Move the preprocessor options up. 2019-12-18 09:04:01 -05:00
Rob Rix
97a616792d
Abbreviate the build products dir. 2019-12-18 09:03:30 -05:00
Rob Rix
fc67e05872
Use relative paths to the src dirs. 2019-12-18 09:01:45 -05:00
Rob Rix
cbb45e4154
Disallow customizing the build dir. 2019-12-18 09:00:23 -05:00
Rob Rix
be39dae6a0
Quote paths when changing directories. 2019-12-18 09:00:13 -05:00
Rob Rix
3621ab3924
Build dependencies before getting the flags. 2019-12-18 08:58:19 -05:00
Rob Rix
9e7cacadb6
Disable star-is-type warnings in 8.8 as well. 2019-12-18 08:56:12 -05:00
Rob Rix
abcca95a54
Rename .ghci.semantic to .ghci.repl. 2019-12-18 08:55:27 -05:00
Rob Rix
183917ca8e
Run script/repl in dist-newstyle. 2019-12-17 17:43:31 -05:00
Rob Rix
532a983bf9
Build into our own subdir. 2019-12-17 17:43:01 -05:00
Rob Rix
9bd1226774
Conditionalize a couple of warning flags. 2019-12-17 17:33:36 -05:00
Rob Rix
9e8517f73a
Quote the GHC_ENVIRONMENT variable. 2019-12-17 17:32:44 -05:00
Rob Rix
66b714b5b9
Unset the environment file var. 2019-12-17 17:31:23 -05:00
Rob Rix
7584af304c
Build the dependencies before loading the repl. 2019-12-17 17:06:45 -05:00
Rob Rix
bae8abefe2
📝 the output_file variable. 2019-12-17 17:06:11 -05:00
Rob Rix
e13e4c46a4
Use the forward-compatible prefix. 2019-12-17 16:55:50 -05:00
Rob Rix
e0a5334395
Quote the path. 2019-12-17 16:55:40 -05:00
Rob Rix
45f2e4561e
Disable the missing-deriving-strategies warning in script/repl & ghcide. 2019-12-17 16:54:39 -05:00
Rob Rix
abe0a27c4e
🔥 the package name from the paths.
We’re determining these things ourselves so we don’t need to fuss about that.
2019-12-17 16:51:21 -05:00