rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.92k stars 302 forks source link

Empty @Folder Annotation Causes Modules to Be Hidden From Code Explorer #5019

Open ChrisBrackett opened 5 years ago

ChrisBrackett commented 5 years ago

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

retailcoder commented 5 years ago

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