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
Describe the bug
Invoking Do it in an object inspector with a selection containing undefined variables fails.
To Reproduce
Follow these steps for all scenarios:
Inspect Object new.
In the object inspector, evaluate a _ self. a printString..
The Unknown variable dialog shows up.
1) Block-Local/Method-Local temporary scenario
Select block-local temp/method-local temp
Notice that Do it failed, and the source code got messed up:
a Nothing more expected ->_ se| a |
lf. a printString.
2) Instance variable scenario
Select instance
Notice that the debugger is opened because of Error: a is already defined in a subclass of Object
Change the script so that the undefined variable has an unused name (e.g. aaa _ self. aaa printString.)
Notice that the system actually tried to define that instance variable, but it did not because in this case, Object cannot be changed.
Expected behavior
I was expecting the evaluation panel in the debugger to behave more like a workspace than a debugger (e.g. to avoid defining instance variables if I am doing experiments with a script).
Screenshots
Block-Local/Method-Local temporary scenario:
Screen.Recording.2022-01-03.at.17.25.33.mp4
Instance variable scenario:
Screen.Recording.2022-01-03.at.17.26.10.mp4
Additional context
N/A
The text was updated successfully, but these errors were encountered:
npapagna
changed the title
Cannot invoke Do in on an object inspector with an expression containing undefined variables
Cannot invoke Do it on an object inspector with an expression containing undefined variables
Jan 3, 2022
Describe the bug
Invoking
Do it
in an object inspector with a selection containing undefined variables fails.To Reproduce
Follow these steps for all scenarios:
Object new
.a _ self. a printString.
.Unknown variable
dialog shows up.1) Block-Local/Method-Local temporary scenario
block-local temp
/method-local temp
Do it
failed, and the source code got messed up:2) Instance variable scenario
instance
Error: a is already defined in a subclass of Object
aaa _ self. aaa printString.
)Object cannot be changed
.Expected behavior
I was expecting the evaluation panel in the debugger to behave more like a workspace than a debugger (e.g. to avoid defining instance variables if I am doing experiments with a script).
Screenshots
Block-Local/Method-Local temporary scenario:
Screen.Recording.2022-01-03.at.17.25.33.mp4
Instance variable scenario:
Screen.Recording.2022-01-03.at.17.26.10.mp4
Additional context
N/A
The text was updated successfully, but these errors were encountered: