Skip to content

Fix Duplicate class refactoring if there are spaces in package or package tag #18289

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

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Jun 17, 2025

Currently StRequestClassPresenter is checking if the name of a class, package and package tag are right. But is expects that we have no space in the package name or package tag name. But it is possible to have spaces there in Pharo!

Update the check.

Fixes #18287

@balsa-sarenac I added tests but I find it hard to setup the presenters. For one I had to use a #basicNew because the initialize is opening a modal which make it really tricky to test. I think some cleaning is necessary to make it easier to test

jecisc added 3 commits June 17, 2025 16:11
…kage tag

Currently StRequestClassPresenter is checking if the name of a class, package and package tag are right. But is expects that we have no space in the package name or package tag name. But it is possible to have spaces there in Pharo!

Update the check.

Fixes pharo-project#18287
@Ducasse Ducasse merged commit a275058 into pharo-project:Pharo14 Jun 18, 2025
1 check failed
jecisc added a commit that referenced this pull request Jun 18, 2025
Backport #18289 to P13: Fix Duplicate class refactoring
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.

Duplicate class refactoring does not work
3 participants