-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: require relative names in import{Wordy,Symboly}Id #5568
Merged
+148
−26
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bad969d
require absolute names in import{Wordy,Symboly}Id
mitchellwrosen 0704755
update generic-parse-errors.md
mitchellwrosen 73293b7
remove `use` usage example with an absolute name
mitchellwrosen 8896e87
⅄ trunk → 25-02-04-fix-4536
mitchellwrosen a5e7d59
Revert "remove `use` usage example with an absolute name"
mitchellwrosen a71dd93
revert to allowing absolute names on LHS of use (`use .foo bar`)
mitchellwrosen 1d97895
Merge branch 'trunk' into 25-02-04-fix-4536
aryairani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
``` ucm | ||
scratch/main> builtins.merge lib.builtin | ||
|
||
Done. | ||
``` | ||
|
||
``` unison :error | ||
foo : Nat | ||
foo = | ||
use Nat .+ | ||
1 + 2 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
|
||
I got confused here: | ||
|
||
3 | use Nat .+ | ||
|
||
|
||
I was surprised to find a '.' here. | ||
I was expecting one of these instead: | ||
|
||
* bang | ||
* binding | ||
* do | ||
* false | ||
* force | ||
* handle | ||
* if | ||
* lambda | ||
* let | ||
* newline or semicolon | ||
* pattern | ||
* quote | ||
* termLink | ||
* true | ||
* tuple | ||
* typeLink | ||
``` | ||
|
||
``` unison :error | ||
namespace .foo | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
|
||
I got confused here: | ||
|
||
1 | namespace .foo | ||
|
||
|
||
I was surprised to find a .foo here. | ||
``` | ||
|
||
``` unison :error | ||
unique[.foo] type Foo = Foo | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
|
||
I got confused here: | ||
|
||
1 | unique[.foo] type Foo = Foo | ||
|
||
|
||
I was surprised to find a .foo here. | ||
``` | ||
|
||
``` unison :error | ||
.foo> 17 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
|
||
This looks like the start of an expression here | ||
|
||
1 | .foo> 17 | ||
|
||
but at the file top-level, I expect one of the following: | ||
|
||
- A binding, like .foo = 42 OR | ||
.foo : Nat | ||
.foo = 42 | ||
- A watch expression, like > .foo + 1 | ||
- An `ability` declaration, like unique ability Foo where ... | ||
- A `type` declaration, like structural type Optional a = None | Some a | ||
``` | ||
|
||
``` unison :error | ||
foo.> 17 | ||
``` | ||
|
||
``` ucm :added-by-ucm | ||
Loading changes detected in scratch.u. | ||
|
||
I got confused here: | ||
|
||
1 | foo.> 17 | ||
|
||
|
||
I was surprised to find a foo.> here. | ||
I was expecting one of these instead: | ||
|
||
* ability | ||
* bang | ||
* binding | ||
* do | ||
* false | ||
* force | ||
* handle | ||
* if | ||
* lambda | ||
* let | ||
* namespace | ||
* newline or semicolon | ||
* quote | ||
* termLink | ||
* true | ||
* tuple | ||
* type | ||
* typeLink | ||
* use | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note, I'm not sure which one of these it wants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I know, the error messages are atrocious :|