OpenCyphal / yukon

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

Data type discovered incorrectly #353

Closed pavel-kirienko closed 1 year ago

pavel-kirienko commented 1 year ago

This is actually a service type

image

The issue persists after restart.

Failed to import 'uavcan.internet.udp.HandleIncomingPacket', trying with an underscore
Failed to make simple publisher.
Traceback (most recent call last):
  File "yukon/services/dtype_loader.py", line 69, in _load
    mod = importlib.import_module(name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "importlib/__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'uavcan.internet.udp.HandleIncomingPacket'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yukon/services/api.py", line 622, in make_simple_publisher_with_datatype_and_port_id
    new_publisher.datatype = datatype
    ^^^^^^^^^^^^^^^^^^^^^^
  File "yukon/domain/simple_publisher.py", line 47, in datatype
    loaded_temporary_type = pycyphal.dsdl.get_model(load_dtype(value))
                                                    ^^^^^^^^^^^^^^^^^
  File "yukon/services/dtype_loader.py", line 51, in load_dtype
    result = _load(name_components, major, minor)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "yukon/services/dtype_loader.py", line 74, in _load
    raise ex
  File "yukon/services/dtype_loader.py", line 72, in _load
    mod = importlib.import_module(name + "_")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "importlib/__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'uavcan.internet.udp.HandleIncomingPacket_'

Issue persists after stopping Yakut