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

protobuf dsl compiler does not create type definitions for enums #604

Closed
shidel-dev opened this issue Nov 9, 2021 · 1 comment · Fixed by #607 or #1079
Closed

protobuf dsl compiler does not create type definitions for enums #604

shidel-dev opened this issue Nov 9, 2021 · 1 comment · Fixed by #607 or #1079
Labels
good-first-issue Good for newcomers

Comments

@shidel-dev
Copy link
Contributor

Method signatures which return an enum are generated correctly, but no definitions of the enums themselves are generated.

There is an example of this in the test suite already

add_ruby_file("protobuf.rb", <<~RUBY)

No rbi is generated for Cart::VALUE_TYPE which will result in type errors (Unable to resolve constant)

@shidel-dev
Copy link
Contributor Author

Enum descriptors can be identified with:
ObjectSpace.each_object(Google::Protobuf::EnumDescriptor)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Good for newcomers
Projects
None yet
2 participants