[Cuis-dev] [BUG] "DoIt' does not work in the Debugger
Nicolás Papagna Maldonado
nicolas.papagna at gmail.com
Mon Jan 3 12:31:28 PST 2022
Thanks for taking a look at it!
Yes, that was my hunch. I didn't think it was so hard to fix tho.
If that is the case, I believe we should "fail gratefully" to the user
instead of showing a low-level error like that (parser, etc).
That will keep us from giving a bad UX/feeling that "the system is broken".
What do you think?
Best,
Nico PM
On Mon, Jan 3, 2022 at 5:15 PM Hernan Wilkinson <
hernan.wilkinson at 10pines.com> wrote:
> This error exists since variables are automatically defined in the
> Workspace.
> The problem is that those variables are not defined as temporary variables
> but as global variables in the workspace, although the DoIt bytecode treats
> them as temporary variables and that is the reason it does not find them.
>
> The solution would be for the workspace to define the variable as local,
> not global, but to do that major changes in the parser and workspace should
> be done and variables in the workspace could not be inspected after
> execution because they would be local and not global... It is a very
> difficult and time consuming change for a rare situation like this one.
> Another solution would be for the parser to realize they are not local
> vars but global vars and create the corresponding bytecode... another
> really time consuming task, not easy at all...
>
> I think that it does not make sense to invest time on this error by now
> (I've already invested 2.5 hours trying different solutions...)
>
> Cheers!
> Hernan.
>
>
> On Mon, Jan 3, 2022 at 11:59 AM Hernan Wilkinson <
> hernan.wilkinson at 10pines.com> wrote:
>
>> ok, the error happens when the variable (in the example a) is not defined
>> in the workspace. If it is defined, it works...
>> Let me look deeper.
>>
>> Cheers!
>> Hernan.
>>
>> PS: Nice way to start the year! :-)
>>
>> On Sun, Jan 2, 2022 at 1:35 PM Nicolás Papagna Maldonado via Cuis-dev <
>> cuis-dev at lists.cuis.st> wrote:
>>
>>> Aloha folks, and happy 2022 to everyone!
>>>
>>> I filed this bug yesterday and forgot to send it to the list: Invoking
>>> Do it in a Debugger raises an error
>>> <https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/issues/220>
>>>
>>> Best,
>>> Nico PM
>>> --
>>> Cuis-dev mailing list
>>> Cuis-dev at lists.cuis.st
>>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>>
>>
>>
>> --
>> <https://10pines.com/>Hernán WilkinsonSoftware Developer & Coach
>>
>> Alem 896, Floor 6, Buenos Aires, Argentina
>>
>> +54 11 6091 3125
>>
>> @HernanWilkinson
>>
>
>
> --
> <https://10pines.com/>Hernán WilkinsonSoftware Developer & Coach
>
> Alem 896, Floor 6, Buenos Aires, Argentina
>
> +54 11 6091 3125
>
> @HernanWilkinson
>
--
Nicolás Papagna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220103/64e889dd/attachment.htm>
More information about the Cuis-dev
mailing list