pharo-contributions / taskit

TaskIt is a library that ease Process usage in Pharo. It provides abstractions to execute and synchronize concurrent tasks, and several pre-built mechanisms that are useful for many application developers.
MIT License
43 stars 24 forks source link

Error did not understand #sender #62

Open chicoary opened 5 years ago

chicoary commented 5 years ago

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

aFuture := [ Error signal ] future.
aFuture onFailureDo: [ :error | error sender method selector logCr ].
sbragagnolo commented 4 years ago

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

chicoary commented 4 years ago

The code below dont halt.

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

sbragagnolo commented 4 years ago

Phar 8 @ Windwos cannot reproduce.

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

sbragagnolo commented 4 years ago

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

tinchodias commented 4 years ago

@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 commented 4 years ago

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.