OpenCyphal / yukon

The OpenCyphal IDE
https://opencyphal.org
MIT License
16 stars 0 forks source link

Noncritical racecondition #341

Open silverv opened 1 year ago

silverv commented 1 year ago

I think it takes about 4 seconds for the monitor to get the right datatype for the "Publish to" context menu action as it loads, thus this error happens when you don't get the graph enough time to finish:

23-03-21 22:10:33 yukon.services.api E: Failed to make simple publisher.
23-03-21 22:10:33 yukon.services.api E: Traceback (most recent call last):
File "C:\Users\silve\yukon\yukon\services\api.py", line 621, in make_simple_publisher_with_datatype_and_port_id
new_publisher.datatype = datatype
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\silve\yukon\yukon\domain\simple_publisher.py", line 47, in datatype
loaded_temporary_type = pycyphal.dsdl.get_model(load_dtype(value))
^^^^^^^^^^^^^^^^^
File "C:\Users\silve\yukon\yukon\services\dtype_loader.py", line 47, in load_dtype
raise FormatError(f"Data type name format not understood: {name!r}")
yukon.services.dtype_loader.FormatError: Data type name format not understood: 'undefined'