Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error did not understand #sender #62

Open
chicoary opened this issue Oct 9, 2019 · 6 comments
Open

Error did not understand #sender #62

chicoary opened this issue Oct 9, 2019 · 6 comments

Comments

@chicoary
Copy link

chicoary commented Oct 9, 2019

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

aFuture := [ Error signal ] future.
aFuture onFailureDo: [ :error | error sender method selector logCr ].
@sbragagnolo
Copy link
Collaborator

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

@chicoary
Copy link
Author

The code below dont halt.

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

@sbragagnolo
Copy link
Collaborator

Phar 8 @ Windwos cannot reproduce.

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

@sbragagnolo
Copy link
Collaborator

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

@tinchodias
Copy link
Contributor

tinchodias commented Dec 16, 2019

@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
Copy link
Contributor

tinchodias commented Dec 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants