Commit Graph

19 Commits

Author SHA1 Message Date
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Greg Pfeil
1dc181b99a
Update the transcripts with cmark
`cmark`’s pretty-printer matches our output pretty well, with a few differences:
- it puts a space between the fence and the info string for in code blocks;
- it prefers `-` over `*` for bulleted lists (as do I) and it indents them;
- it `\`-escapes certain chars very conservatively;
- it prefers indented/unfenced code blocks if there is no info string; and
- it prefers `*` over `_` (unlike any sane person).

This also shows how the change fixes a number of issues:
- fix2158-1.output.md also illustrates how this change fixes #1809;
- alias-many.output.md and input-parse-errors.output.md show how fenced
  code blocks without an info string would use the beginning of the
  content as the info string;
- transcripts-round-trip/main.output.md shows how output blocks for
  generated `unison` stanzas (which could contain nested fenced blocks)
  might not have long-enough fences; and
- error-messages.output.md and generic-parse-errors.output.md show how
  Unison errors were reported on the wrong line number (and thus the
  printed error lines were also incorrect).
2024-07-10 13:37:51 -06:00
Chris Penner
b6b2adb075 Resolve merge conflicts with trunk 2024-06-27 10:55:45 -07:00
Greg Pfeil
1a753ffb5b
Group test results by definition
Follow-up to #5140.
2024-06-26 23:40:16 -06:00
Greg Pfeil
fd197f1369
Update the transcript outputs 2024-06-26 14:45:49 -06:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Dan Doel
12ec621d23 Add back padding when errors/traces actually occur 2024-04-16 14:26:28 -04:00
Dan Doel
9f2089798f Transcript output updates for error formatting 2024-04-16 13:52:17 -04:00
andrii
4456c95c7a Fixing test for type modifiers, updating trnscripts 2024-01-04 09:42:12 +01:00
andrii
8b857b152c Adding a message for when ucm started reloading changes 2023-12-22 12:55:24 +01:00
Dan Doel
74c3c7dda3 Generate stack traces for calls to bug and similar. 2022-10-20 16:21:15 -04:00
Travis Staton
320c0c51d2 transcript updates 2022-08-15 16:00:24 -04:00
Paul Chiusano
b3997ea97a transcript refresh 2022-02-12 23:20:27 -06:00
rlmark
79ad0fa8df updates transcripts 2021-08-23 14:05:37 -07:00
Paul Chiusano
39431a401d Introduce Alphabetical typeclass - alphabetical ordering for humans
Previously, we were very sloppy, sometimes using the Ord instance for things displayed to humans, when that is only sometimes kinda sorta what you want. Separating this out into its own class lets us be careful about this and handle it uniformly.
2021-08-02 11:11:22 -04:00
Dan Doel
5f6b09416c Merge branch 'trunk' into feature/exceptions 2021-07-26 15:35:42 -04:00
Dan Doel
6a0eeab33e Improve unhandled exception message 2021-07-26 14:43:37 -04:00
Dan Doel
13c02b4117 Fix up top level exception handler implementation
- The 'pure' case was implemented incorrectly
- Also fixed the implementation of putBytes, it was giving back a 'unit'
  value that was actually a handle.
2021-07-22 12:54:36 -04:00
Paul Chiusano
737bbdf09c Add a transcript 2021-05-27 09:06:19 -05:00