Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Public Enum Not Updating in CE

Open SmileyFtW opened this issue 4 years ago • 0 comments

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:

  1. 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)
  2. Refresh RD
  3. The Enum is shown in the CE as declared
  4. Change the value of the final member (0)
  5. Refresh RD
  6. 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 Enum On Initial Parse CE Initial Parse After Enum Changed 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.

SmileyFtW avatar Aug 19 '21 17:08 SmileyFtW