iqsharp
iqsharp copied to clipboard
Confusing error message when redefining input on operation used by other operations
Describe the bug
If an operation DoA is called from another operation DoB, then redefining the signature of DoA in a subsequent cell can result in confusing error messages that appear to refer to lines in the current cell, but that actually refer to lines in the DoB cell.
To Reproduce Steps to reproduce the behavior:
- Define two operations,
DoAandDoBin distinct cells, making sure thatDoBcallsDoAat least once. - In a new cell, redefine
DoAand modify its signature. - See error
Expected behavior
An error message indicating clearly that the compilation error is with respect to DoB, and not the cell currently being executed.
Screenshots

System information

+1 to fixing this, I ran into this today and it was very confusing.