Commit Graph

1269 Commits

Author SHA1 Message Date
Chris Penner
3e3b44d1d1 Merge branch 'trunk' into topic/rehash-codebase 2022-02-14 13:31:57 -06:00
Paul Chiusano
b31bbdafb1
Merge pull request #2895 from unisonweb/fix/nonlinear-effects
'Linearize' quantified ability variables for better inference
2022-02-12 19:28:40 -06:00
Dan Doel
8a46348ea2 Fix the 2712 test case to work for CI 2022-02-11 19:16:07 -05:00
Dan Doel
be901d5dab More test cases. 2022-02-11 17:42:39 -05:00
Dan Doel
d649ad4b3d Test cases. 2022-02-11 17:33:41 -05:00
Chris Penner
f927e611a7 Merge branch 'trunk' into cp/numbered-todo 2022-02-11 11:07:43 -06:00
Chris Penner
52a9b8f0cd Merge branch 'trunk' into cp/numbered-todo 2022-02-11 11:04:10 -06:00
Chris Penner
4e9012f019 Merge branch 'trunk' into cp/numbered-history 2022-02-10 12:39:52 -06:00
mergify[bot]
accd8b0280
Merge pull request #2852 from unisonweb/np/fix-embed-type-link-lexing
Fix incorrect keyword lexing in links in docs
2022-02-09 22:44:25 +00:00
Paul Chiusano
24586cfc71
Merge pull request #2853 from unisonweb/topic/fix2810
Make term printer output more backticks if needed.
2022-02-09 16:19:34 -06:00
Chris Penner
be57a82d4f
Add numbered output to view.patch (#2875)
* Number 'view.patch' output

* Add numbering to patches

* Change transcript to use numbers rather than hashes

* Update transcripts

* use short-hash as lhs of patch outputs in numberedArgs
2022-02-09 16:01:52 -06:00
Chris Penner
7de78186b6 Improve todo output. 2022-02-09 14:40:21 -06:00
Chris Penner
33d455ec24
Don't crash when typechecking higher-rank fields (#2866) 2022-02-09 14:15:26 -06:00
Chris Penner
add73b7ce2 Use numbered args to avoid hashes in resolve.md 2022-02-09 13:55:04 -06:00
Chris Penner
502746974e Add missing todo transcript 2022-02-09 13:50:21 -06:00
Chris Penner
c92a9528e9 Better number formatting 2022-02-09 13:37:11 -06:00
Stew O'Connor
2c3cf7ca39 fix the calling convention on the bunch of stuff that theoretically return failures 2022-02-08 22:41:56 -08:00
Chris Penner
e70c072bb1 Refresh transcripts with history numbering 2022-02-08 15:12:00 -06:00
Arya Irani
19daa28398 Merge branch 'trunk' into topic/merge-trunk-2022-02-07 2022-02-07 19:29:57 -07:00
Arya Irani
ad7dbd41c2 Add ucm's internal definitions to Codebase.toCodeLookup
# Conflicts:
#	parser-typechecker/src/Unison/Codebase.hs
#	parser-typechecker/src/Unison/Server/Backend.hs
#	parser-typechecker/src/Unison/Server/CodebaseServer.hs
#	unison-cli/src/Unison/Codebase/Editor/HandleCommand.hs
2022-02-06 22:32:59 -07:00
Rúnar
42c1414197 Add regression test 2022-02-03 13:22:12 -05:00
Nicole Prindle
8e3acc32ee
Fix lexing in embedded type links in docs
A doc containing an embedded term link in a doc like
`{{a doc linking to {abilityFoo}}}` would previously eagerly lex
`ability` or `type` as a keyword, tricking the parser into thinking
we're in an embedded type link, and then complain about not finding
`Foo`. This fixes the lexer to treat such cases as term links instead.

Adds a regression test transcript for making sure that `type` and
`ability` are lexed properly in type and term links in docs.
2022-02-02 02:00:37 -05:00
Paul Chiusano
1df5a4d40a
Merge pull request #2850 from unisonweb/work/decompile-tweaks
Remember more type annotations in decompiled output
2022-02-01 12:37:24 -06:00
Dan Doel
d2ee13bd1e Add test case. 2022-02-01 12:29:55 -05:00
Dan Doel
a640861359 Keep more type annotations in decompiled output
Annotations still need to be stripped off for evaluation, but we can
keep them around in some of the code stored for decompilation. It
requires some delicate changes to the lambda lifting process, though.
2022-01-31 19:02:18 -05:00
Nicole Prindle
d1e143c918
Hide typechecking output in keyword-identifer transcript 2022-01-31 18:04:58 -05:00
Nicole Prindle
7941216d8d
Add transcript to check that keywords can start identifiers 2022-01-31 15:45:22 -05:00
Dan Doel
8c7941296d Move sandbox tests to builtins.md 2022-01-26 11:43:41 -05:00
Dan Doel
d1ae70a48c Merge branch 'trunk' into work/io-sandboxing 2022-01-25 12:07:31 -05:00
Stew O'Connor
705e775a3b transcripts 2022-01-24 22:27:16 -08:00
Stew O'Connor
a5bd871e1b uncomment tests that are failing in tls.md as a temporary fix 2022-01-24 20:59:34 -08:00
Stew O'Connor
be55c7595e more debugging 2022-01-24 19:20:40 -08:00
Dan Doel
d62542fb60 Add tests for sandboxing check 2022-01-24 19:43:46 -05:00
Stew O'Connor
5b81cc9be3 wrong calling convention on handshake, how did this ever work? 2022-01-24 14:40:15 -08:00
Stew O'Connor
e6fc1be1e6 Fix some of the TLS error handling
this is a partial fix for #2834 more will have to come. Now there is a
cert there valid for 10 years and we load it and the private key with
now problem, the call to decode the cert now is checking for
exceptions and is properly handling the case when we successfully
decode 0 certs.

Now for some reason the last section of the transcript where we try to
do handshaking, we are Segfaulting on the one of the sides of the
handshake. I haven't figured out why yet.
2022-01-24 14:18:21 -08:00
Mitchell Rosen
f430921b12 ⅄ trunk → topic/rehash-codebase 2022-01-24 12:43:11 -05:00
mergify[bot]
3336bbbb43
Merge pull request #2819 from nprindle/np/fix-boolean-operator-hanging
Fix incorrect hanging of boolean operators, and elide extra parentheses
2022-01-21 22:00:27 +00:00
Paul Chiusano
fbceaf9e36
Merge pull request #2827 from unisonweb/work/decompile-tweaks
Fix pattern matching in docs
2022-01-21 15:45:01 -06:00
Dan Doel
7d56385db1 Add a doc test case for evaluating cases 2022-01-21 12:48:48 -05:00
Nicole Prindle
72b02b40d4
Fix regression test transcript 2022-01-20 18:28:14 -05:00
Chris Penner
c332e46633 Put seenTypes into the types slot,
Add transcript for type-dependencies calculations.
2022-01-20 13:30:09 -06:00
Nicole Prindle
6cb83392c1
Add regression test for splitting lines with &&/|| 2022-01-19 20:03:09 -05:00
Chris Penner
408335178d Update transcripts for test-watch dependencies 2022-01-19 10:50:10 -06:00
Chris Penner
ed9f0e5315 Include test-watch dependencies when computing definition closure 2022-01-19 10:36:58 -06:00
Dan Doel
c735ef216b Fix universal eq/compare for links
It seems that optimizations cause problems together with the combination
of coercing and unsafe IO involved in reference equality. I'm not
exactly sure what goes wrong, but it causes segfaults. Defining a
noinline function for the equalities (instead of just `(==)@Reference`)
seems to fix the problem.

I got the same problem to happen for term links, so both of those use a
noinline function now. Other foreign values don't seem to be affected,
which I assume is due to them having pure primitive functions for
equality.
2022-01-13 14:06:17 -05:00
Chris Penner
d21ebf2d2a Fix transcript output 2022-01-12 11:15:02 -06:00
Dan Doel
ae9a7c80be Modify remembered code for improved decompiling
- This commit shuffles the order of how interactive evaluataion happens
  to attempt to get decompiler output that is closer to the original
  source.
- It only does floating before remembering the combinators, so output
  shouldn't have compiled patterns and the like anymore.
- I was hoping that this might preserve some type annotations in
  embedded docs, but it appears to not be the case.
2022-01-12 11:31:56 -05:00
Chris Penner
bb8431e563 Fix duplicate constructor in transcript 2022-01-11 16:44:11 -06:00
Chris Penner
3f8e8b9690 Add transcripts for duplication checking 2022-01-11 16:18:43 -06:00
Cody Allen
41a0b21e2a
Merge pull request #2570 from kolharsam/sam/remove-backticks-termparser
remove parser for using back-ticks for infix function application
2022-01-07 09:56:34 -08:00