Thanks, Dezmo!
Yes, I use the ruby ââconsole quite often to talk to Gemini AI when testing the extension codes, those are the first messages that appear when I restart SketchUp.
Itâs probably a version that hasnât been updated in a while. I saw that in the loader there is also code that is not necessarily needed in newer versions of SketchUp. Thanks, TIG!
I can very well imagine that the code was written by AI, which, by analysing the existing codes, determined that these should be at the beginning of the file.
Then, the person reviewing the code is either lazy or doesnât care (or doesnât exist).
I hope the person who wrote the code had the opportunity to meet you at the 3D Basecamp in Vancouver and already knows that you didnât say it with malice.
I informed Gemini AI that it was no longer necessary to enter those codes and it only had words of praise for @TIG, agreeing with him of course. But, a day later, when I was working on the Flip Along plugin for SketchUp 2026, out of nowhere it still entered the code require 'sketchup.rb'. It probably takes a while for it to update.
Thereâs nothing wrong with the ârequireâ code, it works and then does nothing, because itâs already been required before anything else is loaded. Itâs just a very minor thing. Iâm sure if you look through many of my scripts I still include it too - not having bothered to fix it !
AI doesnât always learn well. The blackbelt-barrister in the UK has recently been testing ChatGPT and Grok, because our woeful justice secretary [Davis Lammy] is looking to scrap many jury trials and introduce AI in court because of the shortage of experienced judges. The results are risible. Consumer law questions return wrong answers and quote wrong sections as justification. Knife carrying questions gave plain wrong answer, it saying that provided the blade is <75mm long and locks open itâs OK, of course no blade can lock open, unless itâs a trade-tool and you have a reasonable excuse to be carrying it!
Simple questions about logic fail dismally - e.g. my car needs washing, the car-wash is a mile away, itâs a nice day, should I drive or walk ? AI says walk - missing the vital issue that you will arrive without the car to wash! All weird⌠BUT is is getting better, and can be trained sensibly with effort.
BTW, on macOS if you manually launch SketchUp via a terminal, you will see similar warnings about duplicated items in the C/C++ code. These have been there for many years, but normal users donât see them because they go to the old-fashioned stdout IO, which macOS doesnât display via its GUI. Same situation as not seeing the Ruby warnings unless you have the Ruby Console open, and the code is exact duplicate so the warnings can be ignored.