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
If you accidentally end an expression/block with a variable assignment, the error message should be more helpful.
example
Here's an example of the current behavior (a trunk build from 2022-08-23):
scratch file
foo : Nat
foo =
x = 3
ucm output
I couldn't find any definitions matching the name _150003 inside the namespace .tmp
3 | x = 3
Some common causes of this error include:
* Your current namespace is too deep to contain the definition in its subtree
* The definition is part of a library which hasn't been added to this project
To add a library to this project use the command: `fork <.path.to.lib> .tmp.lib.<libname>`
Whatever it is, its type should conform to Nat.
notes
This is especially easy to encounter when you are debugging code. Sometimes I'll find myself changing the last line of an expression from:
foo 3
to:
result = foo 3
trace "result" result
result
When I get done debugging I often remove the trace and the line below it and forget to change the result = foo 3 line to no longer perform assignment.
The text was updated successfully, but these errors were encountered:
If you accidentally end an expression/block with a variable assignment, the error message should be more helpful.
example
Here's an example of the current behavior (a trunk build from 2022-08-23):
scratch file
ucm output
notes
This is especially easy to encounter when you are debugging code. Sometimes I'll find myself changing the last line of an expression from:
to:
When I get done debugging I often remove the trace and the line below it and forget to change the
result = foo 3
line to no longer perform assignment.The text was updated successfully, but these errors were encountered: