On 16 Dec 2021, at 20:25, Quinn Comendant via TextMate textmate@lists.macromates.com wrote: I tried running my Duplicate Line command: https://pastebin.com/G8HLz4tc https://pastebin.com/G8HLz4tc I get the error above. This command doesn't work with ruby v2, so it can't be fixed as easy as Christophe's ruby18 wrapper script hack.
Why doesn’t it work on Ruby 2? It’s just a couple of lines and I don’t see anything in those lines that wouldn’t work on Ruby 1.8.
Should the ruby18 included in TextMate be able to run on Apple silicon?
Ideally yes, but it might not be that simple. Ruby 1.8 is very old now, it might not work on Apple Silicon. It also won’t compile out of the box (regardless of architecture) because new versions of the C compiler has been released which enforces more warnings. IIRC Ruby compiles with warnings as errors which will cause the compilation to fail. It’s possible to workaround this issue.
I think it’s better to try to move to Ruby 2 (or even 3).