Open daFreeMan opened 5 years ago
Version 2.5.0.5394
OS: Microsoft Windows NT 10.0.17134.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.4924.1000
Host Executable: MSACCESS.EXE
I believe that I have just noticed a related issue - Items within a UDT are not sorted in the CE - they're listed in the order they're defined in the UDT in code until I manually change sort order.
By default (and by my preference), by Name
is selected as the sort order, and this is what I get for my UDT:
When I switch to As in Module
, I get this:
Then, when I switch back to by Name
, I finally get this:
I'm not 100% certain that this is related, perhaps it's a new item. As I was posting this I think that this is because the CE is not sorting after a parse, as opposed to not sorting properly. However, the more I've investigated, attempting to determine exactly what's going on, it appears that on initial parse, the CE is ignoring the sort order
and group by
flags. On changing these flags, it seems to display properly.
Attached is a new log where I've done the initial parse, then turned on the Group by type
flag (which is initially off), then turned that flag back off. After turning the flag on (and also after it's off), everything seems to be sorted just fine.
RubberduckLog.txt
Rubberduck version information Version 2.4.1.4627 OS: Microsoft Windows NT 10.0.15063.0, x64 Host Product: Microsoft Office 2016 x64 Host Version: 16.0.4813.1000 Host Executable: MSACCESS.EXE
Description Members within a module are sorted according to the sort option setting, however, the modules themselves are not sorted by this setting.
To Reproduce Steps to reproduce the behavior:
'@folder
annotation, put several modules in an RD folderSort
button to select a sort orderExpected behavior I would expect that modules themselves would sort alphabetically, with the
Group by type
setting being applied if selected. I'm not sure how theAs in module
function would work, since there is no order to the modules themselves. Effectively, the sort should always be alpha, with the option toGroup by type
.Screenshots This could be considered sorted alpha and grouped by type, however,
Group by type
is not selected. Also, I believe that the "green circle" icon indicates an interface, and I would think thatGroup by type
would consider that a different type.Logfile RubberduckLog.txt