taskit icon indicating copy to clipboard operation
taskit copied to clipboard

Error did not understand #sender

Open chicoary opened this issue 6 years ago • 6 comments

There is an error in the code below (See title above):

aFuture := [ Error signal ] future.
aFuture onFailureDo: [ :error | error sender method selector logCr ].

chicoary avatar Oct 09 '19 14:10 chicoary

Could you check what is the class of the received object?

sbragagnolo avatar Oct 25 '19 15:10 sbragagnolo

The code below dont halt.

aFuture := [ Error signal ] future. aFuture onFailureDo: [ :error | self halt ].

chicoary avatar Oct 29 '19 19:10 chicoary

Phar 8 @ Windwos cannot reproduce.

The Exceptions do not understand sender. you have to ask it to the signaling context inside the exception

sbragagnolo avatar Oct 31 '19 09:10 sbragagnolo

Could you give me more details, like installation, pharo version, step by step how did you treat your image before executing this code?

sbragagnolo avatar Oct 31 '19 10:10 sbragagnolo

@chicoary I get the debugger with the HALT a couple of seconds after "do it", with:

aFuture := [ Error signal ] future.
aFuture onFailureDo: [ :error | self halt ].

(it's a Pharo 7)

tinchodias avatar Dec 16 '19 16:12 tinchodias

Aha! but after closing the debuger, try again and it doesn't show up.

After debugging a bit, I saw the TKTConfiguration runner is not running and has the 2nd HALT task in the queue. When you #restart the runner, the 2nd HALT appears.

tinchodias avatar Dec 16 '19 16:12 tinchodias