Ruby Plugin failing in 2026 after migrating....works sometimes

Hello, everyone. I built a ruby plugin that only I use, so this only affects me. The plugin works fine in SketchUp 2023. I migrated it to SketchUp 2026 which I just newly installed (version 26.0.429 64 bit). The plugin only works on a fresh restart of SketchUp. As soon as I open an existing or new file from the File menu, the plugin fails. The ruby console gives no explanation. The error message pop-up is mine but it must be wrong as it works just fine sometimes.. Have you heard of this issue before? I have not found any similar issues upon searching. Thank you, Jeff

Even so, we need more information. What does the plugin do? How does it work if it works, and what happens if it doesn’t?

There are a lot of changes in API since SU2023, which can break your code. You can check it out here: File: Release Notes — SketchUp Ruby API Documentation

How did this happen? Did you use the SU2026’s built-in migration tool, or did you copy it manually, or did you install it as it should normally (install rbz file via Extension Manger)?

Did you install it correctly? Right click on the installer file and chose Run as administrator?

Does your plugin use Observer, such as: Class: Sketchup::AppObserver — SketchUp Ruby API Documentation

Have you tried turning on debug mode? Sketchup debug_mode class method

What is that message ?

Thank you dezmo for taking interest in my issue. I appreciate your thoughtful response and many questions. I am busy today with work until later this afternoon/early evening (EST) when I will try to get back to this. So please forgive me if I am not quick to respond. First I will enable the Debug option. I can answer a few questions now then I have to go.

At first I copied the plugin manually the I deleted and used the Migration Tool. I never made a rbz tool.

I did not install SketchUp 2006 via the Run as administrator .

My plugin does not use Observer…I think…answering quickly here, but I will double check later. I’ll get back to you on that.

The message is my error handler that tells me my selection is invalid. My selection is in a group that is open and partially selected. The group has no subgroups, so it is at the lowest level I suppose…right? At it’s simplest form, the group is a simple 4 sided box, with one face. The selection contains 3 sides and the face. If you don’t select that many sides and the face or you select all four sides, the error message pops up and informs you to select the two sides and the front side. This orientation is known to the user before hand but not to SketchUp….this help SketchUp orient the group in order to perform the following operations. After selecting the proper items in the model, the user selects a command from the plugin module which then is supposed to pop up an input dialog box.