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

Fix #writeExtensionMethods:className: on TonelWriter to sort methods with the same selector consistently #122

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

Rinzwind
Copy link
Contributor

This pull request fixes #writeExtensionMethods:className: on TonelWriter to sort methods with the same selector consistently (putting the metaclass’s method first). This avoids the confusing reordering of, for example, the #taskbarIconName methods in ‘Object.extension.st’ in ‘Morphic-Base’ like in Pharo commits 56e2288f4b, cad205a6a3, 206ca1db95, 3b669bacaa and c403ecc570. The snippet given in Pharo pull request #14743 could be used to rewrite all ‘.extension.st’ files but that may cause merge conflicts in some open pull requests.

…s with the same selector consistently (putting the metaclass’s method first).
@jecisc
Copy link
Contributor

jecisc commented Apr 21, 2024

Thank you!!

I had on my todo list a item to fix this since months :) I often had the problem with Epicea but I never found the time to check the origin of the problem.

@jecisc jecisc merged commit 2c82875 into pharo-vcs:Pharo12 Apr 21, 2024
1 check passed
@Rinzwind Rinzwind deleted the fix-extensionmethods-sorting branch April 21, 2024 12:26
@Rinzwind
Copy link
Contributor Author

I just noticed there’s an issue about this as well: issue #65.

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.

2 participants