Rubberduck
Rubberduck copied to clipboard
Public Enum Not Updating in CE
Rubberduck version information Version 2.5.2.5958 OS: Microsoft Windows NT 10.0.19042.0, x64 Host Product: Microsoft Office x86 Host Version: 16.0.14228.20226 Host Executable: EXCEL.EXE
Description After initial parse of a class module with an Enum the CE displays the Enum members as Declared. Changing a member's Declaration value is not reflected in the CE after subsequent parse.
To Reproduce Steps to reproduce the behavior:
- In a Class Module Declare a Public Enum where the first member is assigned a value (1) with some number of members not assigned values explicitly (each one then is +1 of the previous. Assign a final member a number (-1)
- Refresh RD
- The Enum is shown in the CE as declared
- Change the value of the final member (0)
- Refresh RD
- The CE does not show the final member = 0; it remains = -1
Expected behavior Refreshing RD would pick up the change in value and present it
Screenshots
The CE remains as it was after the initial parse. UndeterminedMonth = 0 is not what the CE displays.
Logfile RubberduckLog.txt
Additional context Add any other context about the problem here.