Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby bindings for std::optional<> are broken #617

Open
peci1 opened this issue Aug 19, 2024 · 0 comments
Open

Ruby bindings for std::optional<> are broken #617

peci1 opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@peci1
Copy link
Contributor

peci1 commented Aug 19, 2024

Environment

  • OS Version: Ubuntu 20.04
  • Source or binary build?
    source, main branch @ 56b9fcb

Description

The *.i files like Box.i contain a typemap for std::optional<>, but the typemap is not for Ruby - it is for Python. There is no typemap for Ruby.

Steps to reproduce

  1. Start ruby irb and follow this interactive session
rb(main):001:0> require 'math'
=> true
irb(main):002:0> v = Gz::Math::CoordinateVector3.new
irb(main):003:0> v.X()
Traceback (most recent call last):
        5: from /usr/bin/irb:23:in `<main>'
        4: from /usr/bin/irb:23:in `load'
        3: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in `<top (required)>'
        2: from (irb):3
        1: from (irb):3:in `X'
ArgumentError (wrong # of arguments(0 for 1))

This was discussed in #616 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

1 participant