If anyone remembers this blog post was talking about Context Tools as one of our hack week projects. Finally the original plugin (greatly cleaned up!) is available for everybody to use. You can get it from here:
Kudos to @Seranok & @pa00 for helping with design and implementation.
In this case, the issue is the selected tool is Enum.RibbonTool.None which is not in either RIBBONTOOLS or CONTEXT_MENU_CONFIG – I was able to reproduce this with any plugin that uses plugin:GetMouse() which deselects all ribbon tools. The plugin will also error if a new selectable RibbonTool is added since it won’t be defined in the above two tables.
Thanks for reporting this issue with such a detailed explanation. I’ve fixed the problem and can’t reproduce it anymore (with my limited testing). Published new version. Let me know if anything else is broken.