Skip to content

Unclear error when running an animator without an init #96

@jon-wurtz

Description

@jon-wurtz

When running the following code snippet through an animator (note that I have commented out the init)

@move
def foo_move():
    zone = spec.get_static_trap(zone_id="traps")
    src = grid.sub_grid(zone, [0], [0])
    dst = grid.sub_grid(zone, [1], [1])
    waypoints = ilist.IList([src, dst])
    
    # init.fill([spec.get_static_trap(zone_id="traps")])
    move_by_waypoints(waypoints, True, True)

raises an error when run through an animator

==== Python stacktrace has been disabled for simplicity, set KIRIN_PYTHON_STACKTRACE=1 to enable it ====
ValueError: dialect path is not supported by DialectGroup([py.boolop, lowering.call, func, py.unary, py.builtin, py.ilist, squin.qubit, py.base, py.iterable, py.slice, scf, py.attr, py.assert, math, py.indexing, py.tuple, py.constant, py.assign, lowering.func, py.cmp, py.len, lowering.range.ilist, insight.machine, py.binop, cf])
Traceback (most recent call last):
  None
     path.play(path=%0)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions