Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Renaming a project causes it to disappear from Code Explorer

Open IvenBach opened this issue 3 years ago • 1 comments

Rubberduck version information Version 2.5.2.0 OS: Microsoft Windows NT 10.0.19042.0, x64 Host Product: Microsoft Office 2016 x64 Host Version: 16.0.4266.1001 Host Executable: EXCEL.EXE

Description Renaming a project causes it to disappear from Code Explorer.

To Reproduce Steps to reproduce the behavior:

  1. Open a VBA project (excel workbook, access DB, etc..).
  2. Open IDE and parse.
  3. Menu at top Tools -> <ProjectName> Properties...
  4. Rename the project and accept with OK.
  5. RD will parse and the project will no longer be displayed in Code Explorer.

Expected behavior The renamed project display in Code Explorer.

Additional context Only way I've found to have it display is to save the project, close it, reopen.

IvenBach avatar Aug 05 '21 19:08 IvenBach

@IvenBach clicking refresh again works for me, but agree it shouldn't be required

Edit: I am doing a refactor rename from RD project explorer, so maybe it's different. But I still get "Ducky hasn't parsed anything yet" message in project explorer after the rename, even when I rename through Rubberduck - until the second refresh when it's fine.

Greedquest avatar Aug 05 '21 19:08 Greedquest