Greg Pfeil
1c4312ef20
Fix source locations in transcript parser
...
The source is initially parsed by CMark and then this code parses
individual fenced code blocks.
This sets the initial state for the code block parser so that source
locations and error excerpts match the source file.
__NB__: I think the “invalid-api-requests” transcript is intended to
fail on the `DELETE`, not the unsupported `:error` tag, so I
fixed that.
2024-10-02 22:58:34 -06:00
Greg Pfeil
b8e38f8e99
Add failing tests for transcript source locations
2024-10-02 21:44:29 -06:00
Greg Pfeil
8dbe578f4b
Record output for expected transcript parse errors
...
These outputs weren’t being written, so there was no way to tell if they changed.
2024-10-02 21:44:23 -06:00
Arya Irani
572943993f
Merge pull request #5386 from unisonweb/fix-base.u-cache-2
2024-10-02 11:50:12 -04:00
Arya Irani
4930c640ec
update transcript
2024-10-02 11:17:01 -04:00
Arya Irani
2208a0d91f
parameterize some tests' caching
...
the integration tests depend on some transcript and source files,
the round trip tests also rely on some source files
2024-10-02 11:14:28 -04:00
Arya Irani
bb3b5f1c9e
Merge pull request #5382 from unisonweb/name-capture-bug
2024-10-01 13:38:27 -04:00
Arya Irani
e5574b8912
Merge pull request #5384 from unisonweb/topic/infixfix
2024-10-01 13:37:39 -04:00
Rúnar
4e9e073d4e
rename
2024-10-01 13:22:54 -04:00
Rúnar
07490f5fe0
Revert parens change
2024-10-01 12:43:00 -04:00
Mitchell Rosen
dc5f514ad1
fix test suite
2024-10-01 08:59:46 -04:00
Rúnar
6ed04cd168
Merge branch 'trunk' of https://github.com/unisonweb/unison into topic/infixfix
2024-09-30 15:40:40 -04:00
Rúnar
6f3f9e3a8d
Fix infix printer
2024-09-30 15:28:31 -04:00
Arya Irani
3327c8a95c
Merge pull request #5370 from unisonweb/fix-tdnr-name-resolution-bugs
2024-09-30 12:16:12 -04:00
Mitchell Rosen
0d56c419d9
fix name capture bug
2024-09-30 11:26:04 -04:00
Mitchell Rosen
6e417ac050
add failing transcript
2024-09-30 10:48:53 -04:00
Arya Irani
d9725278fe
Merge pull request #5376 from sellout/doc2-unit-tests
2024-09-29 17:44:42 -04:00
Arya Irani
f6572a43b2
Merge pull request #5375 from unisonweb/fix-5374
...
bugfix: fix suffixification of indirect dependencies
2024-09-27 20:13:30 -04:00
Mitchell Rosen
1e44418909
fix bug in suffixifyByHash / suffixifyByHashName
2024-09-26 18:45:36 -04:00
Mitchell Rosen
cc4af4b571
add failing transcript
2024-09-26 18:36:16 -04:00
Paul Chiusano
b60ba7f733
Merge pull request #5373 from unisonweb/cp/inline-lit-tags
...
Statically resolve literal types at code-gen
2024-09-26 17:06:59 -05:00
Chris Penner
c979428940
Module cleanup
2024-09-26 14:17:23 -07:00
Greg Pfeil
05cc1c2105
Separate Unison lexer unit tests
...
Have them alongside the Doc parser tests, rather than embedded in `Main`.
2024-09-26 14:58:47 -06:00
Greg Pfeil
b57428f2a0
Add unit tests for Doc syntax
2024-09-26 14:58:47 -06:00
Greg Pfeil
30a49f656c
Make annotations on Doc more consistent
...
This does all `Doc` annotations with `Cofree`. As a consequence, some
types have been broken apart and constraints that were mentioned in
comments before are now encoded in the types. The only remaining direct
recursion is now between `Column` and `List`.
This is a precursor for unit testing Doc parsing, as this allows us to
drop all annotations from the Doc structure, making it much less
fragile.
2024-09-26 14:58:32 -06:00
Chris Penner
82dcf20b24
Inline builtin literal type reference tags
2024-09-26 13:55:33 -07:00
Greg Pfeil
1dcc332a0d
Move recursion schemes to separate package
2024-09-26 12:59:14 -06:00
Greg Pfeil
b422a7dbed
Improve syntax-tests matching
...
Previously it would trim the first and last `Lexeme` from the actual
result, to avoid having to include the extra “file” `Open`/`Close` in
the expected value. However, when lexing failed, you’d just get a
mismatch against an empty list of tokens. This now adds `Open`/`Close`
to expected before comparing, and reports lexing failures differently.
2024-09-26 12:59:14 -06:00
Mitchell Rosen
5b7c9287dc
revert to storing top level components in the typechecker env instead because
2024-09-25 18:15:30 -04:00
Mitchell Rosen
85dcfa7688
add big tdnr transcript
2024-09-25 17:42:00 -04:00
Mitchell Rosen
02d3332c2a
fix weird tdnr + name resolution bug
2024-09-25 16:00:26 -04:00
Mitchell Rosen
41706a94b0
add failing transcript
2024-09-25 15:49:27 -04:00
Arya Irani
df6b493f29
Merge pull request #5366 from unisonweb/topic/jit-optimize
2024-09-25 12:51:39 -04:00
Arya Irani
3a211890b2
Merge pull request #5362 from unisonweb/topic/text-search
2024-09-24 15:18:54 -04:00
dolio
23d157e9ff
automatically run ormolu
2024-09-24 16:02:50 +00:00
Dan Doel
35ebd7becf
Tweak profile argument handling
2024-09-24 12:01:48 -04:00
dolio
29515f891c
automatically run ormolu
2024-09-24 15:28:44 +00:00
Dan Doel
6994352321
Add a flag to compile.native that enables profiling
2024-09-24 11:27:39 -04:00
Dan Doel
ae7a933ca9
Implement sqrt on the JIT
2024-09-24 11:25:35 -04:00
Arya Irani
c057942cf7
Merge pull request #5364 from unisonweb/no-ellipses
2024-09-23 17:17:47 -04:00
Mitchell Rosen
e1a7fd874f
don't truncate long names in some output messages
2024-09-23 16:20:11 -04:00
mergify[bot]
fd269ab510
Merge pull request #5360 from unisonweb/fix-5357
...
bugfix: tweak suffixify by hash logic
2024-09-23 15:26:18 +00:00
Paul Chiusano
eafb5b3001
refresh CI
2024-09-21 19:39:52 -05:00
pchiusano
40dec52120
automatically run ormolu
2024-09-22 00:32:26 +00:00
Paul Chiusano
c29739e452
refresh transcripts with help output
2024-09-21 19:18:44 -05:00
Paul Chiusano
879c06ad90
handle quoting and polish
2024-09-21 19:15:55 -05:00
Paul Chiusano
d44cb68d75
code complete, but not finding any matches
2024-09-21 18:01:12 -05:00
Arya Irani
7cdd9c1a0b
Merge pull request #5352 from sellout/empty-code-block
...
Handle empty code blocks in `Doc2`
2024-09-20 14:58:05 -04:00
Mitchell Rosen
7827f9f846
fix logic
2024-09-19 18:43:54 -04:00
Mitchell Rosen
4d7077291d
add back suffixifyByHash, call the new thing suffixifyByHashName
2024-09-19 18:28:27 -04:00