Open pavel-kirienko opened 2 years ago
Even if the uavcan namespace is available, you may get this error which is incorrect and badly misleading:
uavcan
$ y sub 24:uavcan.nonexistent.nested NotFoundError: Run `yakut compile <path>/uavcan` to compile DSDL namespace 'uavcan'
The problem is not that uavcan is not available (it is!) but rather that it doesn't contain uavcan.nonexistent.
uavcan.nonexistent
If the last part .nested is removed, we get the correct error message:
.nested
NotFoundError: Could not locate nonexistent.*.* in module 'uavcan'
The culprit is here:
https://github.com/OpenCyphal/yakut/blob/996e64668d8902bd876fab16b64e3361094a674d/yakut/dtype_loader.py#L68
The error message generated by make_usage_suggestion() is misleading and should be improved as follows:
make_usage_suggestion()
Even if the
uavcan
namespace is available, you may get this error which is incorrect and badly misleading:The problem is not that
uavcan
is not available (it is!) but rather that it doesn't containuavcan.nonexistent
.If the last part
.nested
is removed, we get the correct error message: