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

Fix bindings stubs generation #153

Conversation

georges-berenger
Copy link

Summary:
Regenerated bindings

buck run arvr/mode/platform010/opt //arvr/python/pyvrs2:vrsbindings_stubgen

This required a decent amount of work, because pybindings actually expect things to be declared in order of usage. In other words, you shouldn't declare a pybind for void do_something(MyType foo); before the pybinding MyType itself.

This makes sense, but in practice, the VRS pybindings were breaking these rules in a myriad of ways, so I had to move a lot of things around, and it was quite annoying to do so...

There is a way to prevent regression for this, I will reach out to VRS team about this...

Differential Revision: D69120247

Summary:
Regenerated bindings

```
buck run arvr/mode/platform010/opt //arvr/python/pyvrs2:vrsbindings_stubgen
```

This required a decent amount of work, because pybindings actually expect things to be declared in order of usage. In other words, you shouldn't declare a pybind for  `void do_something(MyType foo);` before the pybinding `MyType` itself. 

This makes sense, but in practice, the VRS pybindings were breaking these rules in a myriad of ways, so I had to move a lot of things around, and it was quite annoying to do so...

There is a way to prevent regression for this, I will reach out to VRS team about this...

Differential Revision: D69120247
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69120247

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4e5072c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants