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

Debugger should prevent reinstallation on non-installed method #12931

Closed
privat opened this issue Mar 7, 2023 · 0 comments · Fixed by #13469
Closed

Debugger should prevent reinstallation on non-installed method #12931

privat opened this issue Mar 7, 2023 · 0 comments · Fixed by #13469

Comments

@privat
Copy link
Contributor

privat commented Mar 7, 2023

Bug description

Trying to save a non-installed method in the debugger cause an exception

To Reproduce

  1. execute
nil executeMethod: (Smalltalk compiler compile: 'foo ^ self doesNotExists').
  1. get a debug window #doesNotExists was sent to nil
  2. edit the code (remove doesNotExists for instance)
  3. save (ctrl-s)
  4. get a second debug window KeyNotFound: key #foo not found in MethodDictionary

Expected behavior

If possible, replace the method in the stack without installing the method.
Alternatively, get an error message like the one we DoIt methods.

Version information:

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

Successfully merging a pull request may close this issue.

1 participant