Rubberduck: Empty @Folder Annotation Causes Modules to Be Hidden From Code Explorer

Created on 26 Jun 2019  路  1Comment  路  Source: rubberduck-vba/Rubberduck

Rubberduck version information

Version 2.4.1.4742
OS: Microsoft Windows NT 10.0.17763.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.4834.1000
Host Executable: EXCEL.EXE

Description
Entering a blank @Folder annotation causes the RD Code Explorer to hide the module.

To Reproduce

  1. Paste this annotation in any module: '@Folder("") or '@Folder()
  2. Refresh RD.
  3. Notice the module has disappeared from Code Explorer.

Expected behavior
If the @Folder annotation doesn't resolve to a legal name then perhaps it can show it in the default folder for that project.

Screenshots

  • Before Annotation
    01
  • After Annotation and RD Refresh
    02
bug

Most helpful comment

Nice find! I agree without a valid folder a module should show up under the default folder, like the annotation wasn't there.

>All comments

Nice find! I agree without a valid folder a module should show up under the default folder, like the annotation wasn't there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gener4tor picture Gener4tor  路  3Comments

Gener4tor picture Gener4tor  路  3Comments

retailcoder picture retailcoder  路  3Comments

philippetev picture philippetev  路  3Comments

connerk picture connerk  路  3Comments