Open pierrewillenbrockdfki opened 1 year ago
We made a ruby run-script somewhat work, result for orocos.rb can be found https://github.com/pierrewillenbrockdfki/tools-orocosrb/tree/fix-ruby3
We managed to get into the block passed to Orocos.run, find and start configuring tasks, where things stopped working for issues with the tasks.
Similar changes were needed for drivers/orogen/transformer/rock/runtime.rb and base/scripts/lib/rock/bundles.rb that i did not push anywhere. I can do that if there is interest.
The change from potentially converting the last hash in the argument list to keyword arguments to not doing that at all breaks some pieces of orocos.rb. This becomes visible when trying to pass keyword arguments through the new method of the TaskContext and NameServer, and when calling the get method of the ruby side of the nameserver.
The exact errors are:
when starting rock-display
when trying to create a vizkit3d widget
Compare also two commits that work around the issues: https://github.com/rock-core/tools-orocosrb/compare/master...pierrewillenbrockdfki:tools-orocosrb:master
On the bright side: the qt4 rock-display works on ubuntu 22.04, with this and the change to the qtbindings.
@doudou i did not want to do a PR with this because i barely have an idea what is going on here, and the changeset above may or may not be appropriate. It working may also be a fluke. Also, no idea if that is actually working with ruby 2.7 or before, i only tried with ruby 3.0.