I come to Sketchup development from a background of about 5 years of development in pure Ruby and RoR. I’ve read a few threads on the forums about the trials and tribulations of trying to install gems for plugins, and followed suggestions in threads like this: https://forums.sketchup.com/t/keeping-gems-locally-inside-extension/59436/6
I’m working with a complicated existing codebase on a plugin, and would love to be able to work with my beloved Pry bindings to access program state while developing. There is no need to leave the gem installed outside of the development environment.
I tried including the gem install in a module I’m working with, following the approach in the above thread, and it seemed to install ok, but pry is giving me errors when I try to call it. Here is just the last line of the call stack:
Error: #<NoMethodError: undefined method `sync=' for #<Sketchup::Console:0x007fd0451a84d0>> /Users/jessefarber/Library/Application Support/SketchUp 2018/SketchUp/Gems/gems/pry-0.11.3/lib/pry/config/default.rb:10:in `block (2 levels) in <class:Default>'`
I am aware that things like matching version numbers can be the issue, but I thought maybe someone here has looked at the ins and outs of getting the Pry gem to work here before. Does anyone have any ideas?