sizmailov / pybind11-stubgen

Generate stubs for python modules
Other
228 stars 45 forks source link

Error message only references type, not specific function #164

Closed virtuald closed 10 months ago

virtuald commented 10 months ago

Using 2.3.1, I'm seeing error messages like so:

pybind11_stubgen - [  ERROR] In ntcore._ntcore.Topic : Can't find/import 'json'
pybind11_stubgen - [  ERROR] In ntcore._ntcore.TopicInfo : Can't find/import 'json'
pybind11_stubgen - [  ERROR] In ntcore._ntcore.TopicInfo : Can't find/import 'NT_Type'

But the error is actually one of the methods (in this case ntcore._ntcore.Topic.publishEx)... which is annoying to figure out if there are a lot of methods. Pretty sure it used to print out the method name?

This should be a pretty straightforward thing to reproduce, but if it isn't I can make a test case to show it.

sizmailov commented 10 months ago

Thanks for the report! I've updated the error message to include the function/method name.