You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using delete.namespace ucm will not assign numberedArgs which is unexpected.
It also assigns multiple things to the same number (possibly related).
Transcript showing the problem
First, lets create two namespaces. foo and bar, and add some definitions.
x = 42
y = 100
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
x : Nat
y : Nat
☝️ The namespace .foo is empty.
.foo> add
⍟ I've added these definitions:
x : Nat
y : Nat
z = x + y
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
z : Nat
☝️ The namespace .bar is empty.
.bar> add
⍟ I've added these definitions:
z : Nat
Now, if we try deleting the namespace foo, we get an error, as expected.
.> delete.namespace foo
⚠️
I couldn't delete
1. foo.x : builtin.Nat
2. foo.y : builtin.Nat
because it's still being used by these definitions:
1. bar.z : builtin.Nat
However, the numbered arguments are not assigned by that command.
.> debug.numberedArgs
1. .bar
2. .builtin
3. .foo
As you can see, the earlier output from `ls is still there.
When using
delete.namespace
ucm will not assignnumberedArgs
which is unexpected.It also assigns multiple things to the same number (possibly related).
Transcript showing the problem
First, lets create two namespaces.
foo
andbar
, and add some definitions.Let's see what we have created...
Now, if we try deleting the namespace
foo
, we get an error, as expected.However, the numbered arguments are not assigned by that command.
As you can see, the earlier output from `ls is still there.
Transcript source here:
delete-namespace-does-not-assign-numberedArgs.md.zip
The text was updated successfully, but these errors were encountered: