[Cuis-dev] Change List file in selections ignores method categorizations

Juan Vuletich juan at cuis.st
Mon May 13 07:39:27 PDT 2024


On 5/9/2024 10:52 AM, Bernhard Pieber via Cuis-dev wrote:
> Hi,
>
> The attached test change set includes just a method recategorization. If I file it in using the install button in the FileList the method is recategorized.
>
> However, if I use the contents button to open a ChangeList, select all changes and click file in selections it does not.
>
> The reason seems to be that ChangeRecord>>#fileIn just ignores this type of changes, i.e. ChangeRecords of type #preamble followed by a #doit. When using install the recategorization is done in PositionableStream>>#compileNextChunkWhenStartsWithExclamationMark.
>
> IMO it would be best to record method recategorizations differently in a ChangeSet. Currently, when a method gets recategorized the change is recorded as changeType #reorganize. When you save the ChangeSet the whole class organization is written to the ChangeSet file instead of just the changed method categorization. This has the effect that if you install two ChangeSets with independent method categorizations of the same class the second one will overwrite the first one.
>
>
> Cheers,
> Bernhard
>

Agreed. This would be a nice improvement.

Can you open an issue on GitHub so we don't forget?

Thanks!

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list