Closed marcofavorito closed 1 year ago
Duplicates in typed lists, e.g. in the (:types ...) section of a PDDL domain, are not detected, whereas we should signal to client code there a syntactic problem in the PDDL domain definition.
(:types ...)
22.04
3.10.9
0.3.1
Run the following code:
domain_str = """ (define (domain test) (:requirements :typing) (:types a b c a) )""" domain = DomainParser()(domain_str)
An error is raised signalling that the PDDL file has syntactic problems.
The PDDL file is parsed without any issue.
Subject of the issue
Duplicates in typed lists, e.g. in the
(:types ...)
section of a PDDL domain, are not detected, whereas we should signal to client code there a syntactic problem in the PDDL domain definition.Your environment
22.04
3.10.9
0.3.1
, tag v0.3.1Steps to reproduce
Run the following code:
Expected behaviour
An error is raised signalling that the PDDL file has syntactic problems.
Actual behaviour
The PDDL file is parsed without any issue.