I’ve been learning Ruby, and SU scripting, and I need to level up my development setup. I’ve found some great resources so far (SU dev pages, SU github, thomthom’s sites, dan’s megathread). I haven’t yet set up the debugging, testing, etc, but I’m particularly interested in testing scripts live in SU. I’ve been using Console+ and Ruby Code Editor to play with scripts – but I’d much prefer to do my editing in VSCode. Ideally I can work on a script in VSCode, and then activate the script in SketchUp with a keyboard shortcut.
Maybe… save the script in a special “working directory” (or use a proxy loading script), and then have a SU tool which activates any script located in that special folder (e.g. tools / Run Current Script
), or with a special filename. Thoughts? I’m sure I’m missing something obvious!
I’m compiling what I learn here. I will soon dive into learning minitest and its SU integration, testup.