Skip to content

no more RBScanner errorBlock #12900

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

Merged

Conversation

privat
Copy link
Contributor

@privat privat commented Mar 5, 2023

PR #12892 removed the last usage of errorBlock in RBScanner.

This PR does the almost final cleanup of now unused code.
Because existing images still refer to some undead method of RBScanner (on:errorBlock: and errorBlock:) they are kept as empty shells.
Note: for some reason, moving these two methods as extension methods in Deprecated11 also break Iceberg. Possible the "move" is not atomic so the removal of the method in AST-Core is done before it is added in Deprecated11 letting the low level code experiences MNU errors.

Copy link
Member

@guillep guillep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

@MarcusDenker
Copy link
Member

Failing test that maybe realted:

BCBeautifulCommentsSettingsTest>>testRenderingOfMyOwnComment

CI problem not related:

@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Mar 6, 2023
@privat
Copy link
Contributor Author

privat commented Mar 6, 2023

Hum... I cannot check out the branch anymore :/ all I got is a weird nonsensical emergency alert popup.

Capture d’écran du 2023-03-06 09-01-23

Maybe moving around low level code broke some Iceberg expectations.

@privat
Copy link
Contributor Author

privat commented Mar 6, 2023

Moved back old code as No-op to ease the loading :(

My assumption is that old compiled methods in fresh image are still using the killed API, but the RBScanner methods are moved/removed before such client method are updated (and recompiled).
Future images should not contain call to the deprecated method of RBScanner, so the removal can be complete at that time.

Now I can reproduce the BCBeautifulCommentsSettingsTest issue, I will investigate.

@MarcusDenker
Copy link
Member

Yes, I think so... code loading is not atomic sadly

@privat
Copy link
Contributor Author

privat commented Mar 6, 2023

I think it was a syntactic error in the depreciation clause (so the method just failed).

@MarcusDenker MarcusDenker removed the Status: Need more work The issue is nearly ready. Waiting some last bits. label Mar 6, 2023
@MarcusDenker MarcusDenker merged commit 4c2d7be into pharo-project:Pharo11 Mar 6, 2023
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

Successfully merging this pull request may close these issues.

3 participants