Arya Irani
293b4a2948
Merge pull request #5182 from unisonweb/cp/improve-lsp-completion
2024-07-05 15:59:13 -04:00
Arya Irani
8be432be1b
change a punctuation
2024-07-05 15:10:28 -04:00
Chris Penner
deaf355f83
Improve LSP completion sorting
2024-07-05 11:56:31 -07:00
Greg Pfeil
0e76597e51
Merge remote-tracking branch 'upstream/trunk' into better-CLI-error-messages
2024-07-05 11:43:33 -06:00
Greg Pfeil
a7f1c24b57
Update transcript outputs
2024-07-05 11:28:27 -06:00
Arya Irani
38a73da600
switch Left
to Right
on help outputs; add draft transcripts
2024-07-05 11:33:11 -04:00
Chris Penner
8a405e02d2
Update reflog command WIP
2024-07-03 16:43:34 -07:00
Chris Penner
a7820feeac
Deprecate root reflog behaviour in favour of project/branch reflogs
2024-07-03 11:52:52 -07:00
Chris Penner
1dab376523
Fix behaviour of deleting last project or branch
2024-07-03 11:21:59 -07:00
Mitchell Rosen
8ff7e6d92d
⅄ trunk → 24-07-01-todo-merge-precondition-violations
2024-07-03 11:59:33 -04:00
Mitchell Rosen
05d34024bd
report stray constructors in todo
2024-07-03 11:59:17 -04:00
Mitchell Rosen
1857640da4
report nested decl aliases in todo
2024-07-03 11:53:45 -04:00
Mitchell Rosen
052fd51948
report missing constructor names in todo
2024-07-03 11:38:33 -04:00
Mitchell Rosen
06b731b774
report constructor aliases in todo
2024-07-03 11:19:18 -04:00
Chris Penner
2331c16770
Mostly Fix up deleting the branch you're on
2024-07-02 15:36:53 -07:00
Chris Penner
e9f2aa3ec5
Un-ignore transcript-parser-commands.md and fix it.
2024-07-02 15:36:53 -07:00
Chris Penner
5c675df566
Revive ability to delete root namespace
2024-07-02 10:53:28 -07:00
Chris Penner
7dbb365a12
Convert diff-namespaces.md to project-root
2024-07-02 10:28:59 -07:00
Chris Penner
478545e76a
Rewrite view.md, still failing
2024-07-02 09:52:20 -07:00
Chris Penner
c0950036f0
Fix up tab-completion transcripts for project roots
2024-07-02 09:49:05 -07:00
Chris Penner
9af023b8ba
Fixup resolution-failures.md
2024-07-02 09:48:07 -07:00
Chris Penner
498e898e0f
Update namespace-dependencies
2024-07-02 09:41:39 -07:00
Chris Penner
e66b315c94
Partially translate names.md
2024-07-02 09:38:57 -07:00
Chris Penner
55ad236ac7
Update name-selection transcript
2024-07-02 09:35:24 -07:00
Mitchell Rosen
f0c53eed28
show "defs in lib" merge precondition violation in todo
output
2024-07-02 11:39:11 -04:00
Chris Penner
983fb054bd
Port move-namespace to projects
2024-07-01 23:48:22 -07:00
Chris Penner
6f19a87497
Update merge.md and fix5129
2024-07-01 23:41:02 -07:00
Chris Penner
b636068ebd
Partially update diff-namespace
2024-07-01 23:35:58 -07:00
Chris Penner
081f344578
Fix delete.md
2024-07-01 22:21:14 -07:00
Chris Penner
fbd7bb90a6
Update 'bug-strange-closure.md'
2024-07-01 22:14:16 -07:00
Chris Penner
d93b5dee4f
Update paths in branch-relative-path.md
2024-07-01 22:12:00 -07:00
Chris Penner
724dea4f19
Update api transcripts
2024-07-01 14:30:55 -07:00
Chris Penner
5f78557170
Solve conflicts
2024-07-01 14:30:55 -07:00
Chris Penner
fce12cb8b7
Work on fixing some transcripts for projects
2024-07-01 14:30:21 -07:00
Chris Penner
0b8548f36c
Delete some out of date bits of transcripts
2024-07-01 14:29:32 -07:00
Chris Penner
dadc4e476b
Merge trunk and resolve basic conflicts
2024-07-01 14:29:32 -07:00
Chris Penner
d98b4aebc1
Port more transcripts to projects
2024-07-01 11:14:31 -07:00
Arya Irani
71eed210ce
Merge pull request #5146 from unisonweb/24-06-26-port-old-merge-transcripts
2024-06-28 03:45:57 -04:00
Mitchell Rosen
a76bca1326
re-run fix2254.md
2024-06-27 15:43:07 -04:00
Mitchell Rosen
7fd9b6507d
⅄ trunk → todo-empty
2024-06-27 15:42:56 -04:00
Chris Penner
563e14806f
Resolve conflicts with trunk
2024-06-27 12:35:14 -07:00
Mitchell Rosen
ce3c2dcb94
don't output nothing when there's nothing to do
2024-06-27 14:56:32 -04:00
Chris Penner
5dcc096160
update transcripts
2024-06-27 11:53:23 -07:00
Chris Penner
4b7cf99df6
Fix fix5080 pulling over the network
2024-06-27 11:08:05 -07:00
Chris Penner
b6b2adb075
Resolve merge conflicts with trunk
2024-06-27 10:55:45 -07:00
Chris Penner
384083e190
Revive strangely deleted bits of merge.md
2024-06-27 10:30:48 -07:00
Chris Penner
47a3a01fbe
Fix up api transcripts
2024-06-27 10:25:16 -07:00
Mitchell Rosen
d1f2d78638
in update-on-conflict.md, replace use of merge.old with debug.alias.term.force
2024-06-27 11:44:46 -04:00
Mitchell Rosen
d9618f7ab3
in name-selection.md, replace use of merge.old with debug.alias.term.force
2024-06-27 11:41:25 -04:00
Mitchell Rosen
831c2e0e06
in diff-namespace.md, replace uses of merge.old with debug.alias.term.force
2024-06-27 11:30:17 -04:00
Mitchell Rosen
df9e78138f
in delete.md, replace uses of merge.old with debug.alias.{term,type}.force
2024-06-27 11:12:21 -04:00
Arya Irani
f824743347
Merge pull request #5144 from sellout/group-test-results
2024-06-27 10:39:05 -04:00
Mitchell Dalvi Rosen
4d8fa732af
Merge pull request #5139 from unisonweb/24-06-26-delete-type-force
...
feat: add debug.alias.type.force
2024-06-27 09:50:12 -04:00
Greg Pfeil
1a753ffb5b
Group test results by definition
...
Follow-up to #5140 .
2024-06-26 23:40:16 -06:00
Chris Penner
1c75272e9b
Revert reflog transcript to trunk for now
2024-06-26 16:14:21 -07:00
Chris Penner
20b5e93381
Update rewrites.md output
2024-06-26 16:06:26 -07:00
Chris Penner
568fe7bfb7
Fix reflog transcript
2024-06-26 15:47:56 -07:00
Greg Pfeil
f14fca03a0
Merge branch 'trunk' into better-CLI-error-messages
2024-06-26 16:24:57 -06:00
Greg Pfeil
94d5ab03d9
Restore trailing whitespace in transcript
2024-06-26 16:05:48 -06:00
Chris Penner
209ddc0a5a
Merge trunk
2024-06-26 14:56:31 -07:00
Greg Pfeil
2faa425d76
Merge remote-tracking branch 'upstream/trunk' into numbered-test-results
2024-06-26 14:58:25 -06:00
Greg Pfeil
fd197f1369
Update the transcript outputs
2024-06-26 14:45:49 -06:00
Greg Pfeil
f1fd05f03d
Add a failing transcript for #5080
2024-06-26 14:44:33 -06:00
Chris Penner
2cb85ae5df
Fix up transcripts which mention __projects
2024-06-26 12:54:15 -07:00
Chris Penner
7122d595cf
Merge trunk
2024-06-26 12:54:15 -07:00
Mitchell Rosen
cf1baee523
add debug.alias.type.force
2024-06-26 15:33:15 -04:00
Chris Penner
c9c3abcd52
Revert view.md, will port later
2024-06-26 12:06:13 -07:00
Chris Penner
103569a5cd
Port update-type-add-new-record to projects
2024-06-26 12:05:09 -07:00
Chris Penner
d4a08fdc0a
Port unitnamespace to projecs
2024-06-26 12:04:02 -07:00
Chris Penner
5a68b4df78
Port test-command.md to projects
2024-06-26 12:02:55 -07:00
Chris Penner
bb41e55e07
Port tab-completion mostly to projects
2024-06-26 12:00:40 -07:00
Chris Penner
c419cd088d
Port sum-type-update-conflicts to projects
2024-06-26 11:55:35 -07:00
Chris Penner
2e1a95443a
Partially convert propagate.md to projects
2024-06-26 11:53:59 -07:00
Chris Penner
1014ff7a1a
Port numbered-args to projects
2024-06-26 11:49:49 -07:00
Chris Penner
6e549469cd
Port namespace-deletion-regression.md to projects
2024-06-26 11:47:03 -07:00
Chris Penner
bed7af2ab2
Half-convert move-namespace.md to projects
2024-06-26 11:41:07 -07:00
Chris Penner
59aebe93a5
remove ls-pretty-print-scope-bug.md, we don't really support subnamespaces for this any more
2024-06-26 11:29:30 -07:00
Chris Penner
6625996039
Port fuzzy-option.md to projects
2024-06-26 11:22:32 -07:00
Chris Penner
bcb3e46218
Fix 2628.md for projects
2024-06-26 11:20:19 -07:00
Chris Penner
f3503cca97
Port fix2243.md to projects
2024-06-26 11:18:41 -07:00
Chris Penner
f71008b6a2
Port find-command to projects
2024-06-26 11:07:16 -07:00
Chris Penner
a92885a8bd
Port emptyCodebase transcript to projects
2024-06-26 11:03:22 -07:00
Chris Penner
6a1ccd5a64
Port empty-namespaces to projects
2024-06-26 11:01:11 -07:00
Chris Penner
2fd585e1d3
Port doc1 transcript to projects
2024-06-26 10:58:27 -07:00
Mitchell Rosen
60a58a2ff8
⅄ trunk → 24-06-26-port-old-merge-transcripts
2024-06-26 12:30:52 -04:00
Mitchell Rosen
94580cc218
delete squash.md
2024-06-26 12:27:49 -04:00
Mitchell Rosen
c5f4d6d5b7
delete project-merge.md
2024-06-26 12:26:14 -04:00
Mitchell Rosen
19da19b259
delete merges.md
2024-06-26 12:25:24 -04:00
Mitchell Rosen
25d505e784
port mergeloop.md over to use new merge
2024-06-26 12:24:00 -04:00
Arya Irani
e589d0ff75
Merge pull request #5118 from unisonweb/24-06-21-alias-term-force
2024-06-26 12:20:09 -04:00
Mitchell Rosen
596cb39b2e
port empty namespace merge test to new merge
2024-06-26 12:13:18 -04:00
Mitchell Rosen
93fc35e2c7
delete child-namespace-history-merge.md
2024-06-26 11:32:06 -04:00
Mitchell Rosen
13558c91e8
delete fix2004.md
2024-06-26 11:30:39 -04:00
Mitchell Rosen
267bfdf248
remove fix2000.md
2024-06-26 11:26:37 -04:00
Mitchell Rosen
e1b00d9c58
rename alias.term.force
to debug.alias.term.force
2024-06-26 11:23:21 -04:00
Arya Irani
95fc3aabfd
Merge pull request #5124 from unisonweb/24-06-24-todo-dependents
2024-06-26 10:36:51 -04:00
Chris Penner
3666e04257
Convert deep-names to use projects
2024-06-25 17:21:03 -07:00
Chris Penner
fcc251de2e
Convert create-author.md to projects
2024-06-25 17:15:00 -07:00
Chris Penner
6e48ce47be
builtins.md converted to projects
2024-06-25 17:14:48 -07:00
Chris Penner
e2f4c388b6
Remove loose code demo from branch
2024-06-25 17:10:02 -07:00
Chris Penner
bbd02a9129
Port getDefinition.md to use projects.
...
Fix recontextualization of project queries when using relativeTo
2024-06-25 17:05:38 -07:00
Dan Doel
34877da01c
Don't relax type when doing an instantiateL during subtyping
...
This is the case of `a < T` for some structured T. By relaxing, we are
actually allowing `a` to be a _supertype_ of T as far as abilities go,
which is not correct. Seems like it was just erroneously mirrored from
the opposite case.
2024-06-25 15:54:10 -04:00
Chris Penner
6152577dd4
Fix alias-many transcript
2024-06-25 11:32:19 -07:00
Chris Penner
7930cc2c33
Transcript output updates
2024-06-25 11:12:43 -07:00
Chris Penner
26a0bf7b40
Edit transcripts to be in projects
2024-06-25 11:12:43 -07:00
Chris Penner
5ca1eb3b8d
Replace '.' references with scratch/main
2024-06-25 11:11:07 -07:00
Chris Penner
ae7cf3d0a5
Update transcripts to use implicit project creation
2024-06-25 11:08:11 -07:00
Arya Irani
53c3a16366
Merge pull request #5114 from unisonweb/topic/force-syntax
2024-06-25 10:34:00 -04:00
Mitchell Rosen
ae54637bae
add transcript that demonstrates bug in merge
2024-06-25 09:40:06 -04:00
Paul Chiusano
97838c4883
Merge remote-tracking branch 'origin/trunk' into topic/force-syntax
...
# Conflicts:
# unison-src/transcripts-round-trip/main.output.md
# unison-src/transcripts-round-trip/reparses-with-same-hash.u
2024-06-24 18:53:04 -05:00
Chris Penner
1c186d4d73
Merge trunk into cp/project-root
2024-06-24 12:50:36 -07:00
Mitchell Rosen
3e229d521f
⅄ trunk → 24-06-24-todo-dependents
2024-06-24 13:42:13 -04:00
Arya Irani
7172bb8e4f
Merge pull request #5107 from unisonweb/24-06-13-revamp-todo
2024-06-24 12:08:27 -04:00
Mitchell Rosen
d8240cd106
add transcripts for showing dependents of todo
2024-06-24 09:45:11 -04:00
Arya Irani
67985204e5
Merge pull request #5108 from sellout/lexer-error-messages
2024-06-24 08:19:16 -04:00
Greg Pfeil
782ac4164d
Remove redundant ,
from lexer errors
...
Appositives only need to be offset by commas if there isn’t already some other punctuation.
2024-06-23 22:18:51 -05:00
Mitchell Rosen
db3d0e73b3
delete reflog
calls to make transcript more idempotent
2024-06-21 16:09:50 -04:00
Mitchell Rosen
b96044c269
add alias.term.force
2024-06-21 15:37:56 -04:00
Greg Pfeil
6f26a16401
Add quoteCode
for printing errors
...
This both colorizes and wraps code in backticks, in order to separate it from surrounding context.
2024-06-20 21:40:07 -04:00
Paul Chiusano
d4a2ed9066
Switch to foo()
with no space as preferred syntax instead of !foo
2024-06-20 16:52:57 -05:00
Mitchell Rosen
9e7a937669
add todo.md transcript
2024-06-20 16:19:55 -04:00
Mitchell Rosen
5353a4e64c
properly handle deleted constructors in merge
2024-06-20 14:31:40 -04:00
Greg Pfeil
bb4f39fb2f
Update error message in transcripts
2024-06-20 13:56:19 -04:00
Mitchell Rosen
1081a9835a
⅄ trunk → 24-06-13-revamp-todo
2024-06-18 13:20:20 -04:00
Chris Penner
6d8605e70b
Merge trunk
...
Propagate fixes from earlier merge
2024-06-14 15:41:50 -07:00
Arya Irani
2e38bf860d
Merge pull request #4986 from unisonweb/24-05-20-merge-commit
2024-06-13 14:53:57 -04:00
Mitchell Rosen
6e04dbd083
gut existing todo implementation
2024-06-13 10:29:42 -04:00
Mitchell Rosen
84273a556f
revert tweak to merge failure output
2024-06-13 08:36:03 -04:00
Mitchell Rosen
e903a1c155
add merge.commit failure test
2024-06-13 08:29:02 -04:00
Chris Penner
2863b668fa
Convert transcript parser to be project based
2024-06-12 10:08:49 -07:00
Chris Penner
815c1b1f1c
Auto-create project-branches referenced in transcript prompts ( #5077 )
2024-06-12 09:28:12 -04:00
Greg Pfeil
532236bbc0
Merge remote-tracking branch 'upstream/trunk' into better-CLI-error-messages
2024-06-11 16:14:24 -04:00
Greg Pfeil
9691a80ed7
Improve CLI shared error message
...
This rephrases part of it and includes instructions to run the `help`
command (rather than including the `help` output directly). In future,
we may directly include shorter `help` outputs or a separate set of
examples. But for now the `help` output may overshadow the error message
we intend to show the user.
2024-06-11 16:09:05 -04:00
Mitchell Rosen
2e97d46db3
⅄ trunk → 24-05-20-merge-commit
2024-06-11 14:15:30 -04:00
Chris Penner
91527b6008
Merge trunk
2024-06-11 11:10:47 -07:00
Arya Irani
335512e331
fix conflicted alias message 2 ( #5071 )
...
Co-authored-by: aryairani <aryairani@users.noreply.github.com>
2024-06-11 09:40:43 -04:00
Arya Irani
a45fc88fb1
Update merge precondition message: Conflicted aliases ( #5070 )
2024-06-10 20:42:01 -04:00
Arya Irani
433be000b2
Merge pull request #5068 from unisonweb/24-05-30-edit-namespace-no-record-accessors
2024-06-10 16:22:35 -04:00
Mitchell Rosen
72bdd9185f
amend edit.namespace transcript
2024-06-10 15:49:02 -04:00
Mitchell Rosen
e3440a91c6
don't consider update+delete a conflicted alias
2024-06-10 13:57:22 -04:00
Mitchell Rosen
528c2a1cd6
commit failing transcript
2024-06-10 13:56:12 -04:00
Chris Penner
bcc39d879d
Remerge trunk
2024-06-10 10:24:37 -07:00
Greg Pfeil
e32138c215
Treat Name
as Path'
in InputPattern
handlers
...
This fixes an issue where `ls` results couldn’t be used as numbered args by commands which expected a `Path`.
2024-06-07 00:40:16 -05:00
Greg Pfeil
24ff8b5cb0
Show that you can’t ls
the results of ls
2024-06-07 00:17:44 -05:00
Greg Pfeil
ce33057385
Refine Path-prefixing operations
...
This replaces `prefix :: Absolute -> Path' -> Path` with a couple
alternatives:
- `prefixAbs :: Absolute -> Relative -> Absolute`,
- `maybePrefix :: Path' -> Path' -> Maybe Path'`, and
- `prefix :: Path' -> Relative -> Path'`.
The previous `prefix` could fail to prefix (covered by either the new
`prefix` or `maybePrefix`, depending on whether you want to guarantee
success or capture failure), always threw away the knowledge that the
result was necessarily `Absolute` (covered by `prefixAbs`), and then
always returned an ambiguous result type (covered by all three
replacements).
Then it also provides `prefixRel` as the complement of `prefixAbs` (both
of which are used in the implementation of `prefix`).
Similar changes are made in the replacements for `prefixName :: Absolute
-> Name -> Name`. First, we don’t currently have absolute/relative
variants of `Name`, so we can generalize the first argument to `Path'`.
Then `maybePrefixName :: Path' -> Name -> Maybe Name` exposes the case
where prefixing can’t succeed, and `prefixNameIfRel :: Path' -> Name ->
Name` handles the common case of using the original `Name` if it can’t
be prefixed. Both of these new functions also preserve the `Position` of
the new `Name`, whereas the old implementation always returned a
`Relative` `Name`, despite knowing when it was `Absolute`. And
`prefixName2 :: Path -> Name -> Name` has been removed as there is no
ambiguous variant of `Name` (as `Split` is to `Split'`), so prefixing
with a `Path` isn’t particularly meaningful.
Finally, `nameFromSplit'` is added as a dual to `splitFromName'` to make
it possible to operate on the `Path'` portion of a `Name` without introducing partiality.
These new operations are then propagated through the code, and enable a
couple other type changes: `StructuredArgument.ShallowListEntry` and
`StructuredArgument.SearchResult` now take a `Path'` prefix rather than
the `Path.Absolute` and `Path` prefixes they took previously. This fixes
the absolute `Name` issue in `ls` results.
2024-06-06 23:53:00 -05:00
Greg Pfeil
3c197c51c8
Use a project in fix5055 transcript
...
This makes the absolute path problem more obvious.
2024-06-06 23:26:13 -05:00
Chris Penner
87bd96963e
Inline nosync versions into their regular forms so people aren't tempted to use them.
2024-06-05 15:31:15 -07:00
Greg Pfeil
cf6ab11088
Ensure Name
s are absolute after prefixing
...
In a separate part of the change this PR was extracted from,
`Path.prefixName` ensures the result is absolute, but that is more
involved than other changes here, so this uses the previous technique of
calling `Name.makeAbsolute` afterward.
I don’t think this changes anything important, but the `Name` _is_
always absolute after `Path.prefixName`, so this just ensures that it’s
tracked.
2024-06-05 11:18:29 -06:00
Greg Pfeil
4c12fe8a47
Make the transcript for #5055 more stable
2024-06-05 11:07:55 -06:00
Greg Pfeil
8ef107817d
Support ShallowListEntry
in InputPattern
handlers
...
These are produced by `ls`, but weren’t included in the handlers, so the
results of `ls` weren’t usable as numbered args.
Fixes #5055 .
2024-06-05 10:58:54 -06:00