Closed virtuald closed 7 months ago
Thanks for the report!
Now I'm looking closer to #196, there are a few problems there. I'll not be able to quickly address it. I'm thinking of reverting #196, unfortunately.
Should be solved by #203
@virtuald for my understanding of the origin of this bug... were you using --enum-class-locations
when this error occurred? Does it still occur even when you don't use it? (using v2.4.1)
@ringohoffman I did not specify --enum-class-locations
. I have an automated binding tool called robotpy-build
which calls stubgen to generate pyi files (see https://github.com/robotpy/robotpy-build/blob/main/robotpy_build/command/build_pyi.py#L152).
I was likely building https://github.com/robotpy/mostrobotpy/ ... but I'm not 100% sure which one of the subprojects I was building. You can do RPYBUILD_PARALLEL=1 ./rdev.sh ci run
to build all of the projects, it takes awhile.
Not sure how this happened, but here's the stack trace in pybind11-stubgen 2.4.1: