dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

0-Arg main method not correctly used as the default root task for HTN generation (Errors instead) #111

Closed dcerys closed 6 years ago

dcerys commented 7 years ago

When using the htn action without specifying a root task (-t), if the Pamela file contains a single 0-arg main pmethod, that pmethod should be used as the root task. It currently results in a cryptic error.

dcerys@nebbiolo:~/DOLL/github/pamela/test/pamela$ pamela -v -i statements.pamela  -o ../../dan/statements-nrt htn
verbosity level: 1
log level: :warn
construct-tpn: nil
file-format: json
input: [#object[java.io.File 0x2bb62414 /Users/dcerys/DOLL/github/pamela/test/pamela/statements.pamela]]
output: ../../dan/statements-nrt
magic: nil
output-magic: nil
root-task: nil
cmd: htn (valid)
17-05-26 14:51:05 nebbiolo WARN [pamela.parser:0] - unable to determine if this keyword value is valid in pclass main :illuminated
17-05-26 14:51:05 nebbiolo WARN [pamela.parser:0] - unable to determine if this keyword value is valid in pclass main :dead
17-05-26 14:51:05 nebbiolo WARN [pamela.parser:0] - unable to determine if this keyword value is valid in pclass main :open
17-05-26 14:51:05 nebbiolo ERROR [pamela.cli:0] - 
 ERROR caught exception:
cannot create arg-mappings with static-task-args: [] and dynamic-task-args: