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

Right click in code explorer not showing Add Module contexts #4716

Closed djrivers closed 5 years ago

djrivers commented 5 years ago

I am trying to add a class module by right-clicking in the folder inside the code explorer and it's showing nothing.

right click issue

Version 2.3.1.4431 OS: Microsoft Windows NT 10.0.17134.0, x64 Host Product: Microsoft Office x64 Host Version: 16.0.11126.20196 Host Executable: MSACCESS.EXE

Inarion commented 5 years ago

This is not universal behavior. I'm on 4431 as well and not experiencing this issue.

Version 2.3.1.4431 OS: Microsoft Windows NT 6.1.7601 Service Pack 1, x64 Host Product: Microsoft Office 2010 x86 Host Version: 14.0.7224.5000 Host Executable: EXCEL.EXE

comintern commented 5 years ago

I must have spent an hour and a half right-clicking last night and was only able to replicate this once. It appears that something? is causing the bind on AddModuleCommands to either break or recycle in a way that causes the visibility of the commands to toggle off. We did identify some potential casting issues in the templates sub-menu that is addressed in #4718, but I can't definitively declare that as the cause.

Would it be possible to set your logging level to "trace" in the settings and post the log file if this happens again? I doubt there will be much relevant information logged (binding problems don't tend to show up there), but it would at least help rule out things like exceptions in the EvaluateCanExecute procedures.

djrivers commented 5 years ago

I reverted back to version 2.3.1.4414 after I discovered this. I'll install the latest version and see if this is still there then comment back.

djrivers commented 5 years ago

Everything is good now. I discovered another bug though. Will open another ticket with the log.