Problem passing --static-time to 'start'
App Development2 posts326 views5 likesLast activity Feb 2021
LU
LucianoOP
Feb 2021When trying to start daml with static time, I’m running into problems:
luciano@DA-Luciano:/tmp$ daml new foo
Created a new project in "foo" based on the template "skeleton".
luciano@DA-Luciano:/tmp$ cd foo
luciano@DA-Luciano:/tmp/foo$ daml start --sandbox-option --static-time
Compiling foo to a DAR.
Created .daml/dist/foo-0.0.1.dar
Waiting for sandbox to start:
Error: Option --static-time failed when given ''. Static time mode (`-s`/`--static-time`) and wall-clock time mode (`-w`/`--wall-clock-time`) are mutually exclusive. The time mode must be unambiguous.
Try --help for more information.
Not quite sure what this means … especially the when given ''. Is this a bug? Seems to work when running the sandbox directly though:
Initialized sandbox version 1.10.0-snapshot.20210209.6265.0.19bf4031
CO
cocreature
Feb 2021Hi @Luciano. The default daml.yaml contains the following section
sandbox-options:
- --wall-clock-time
which conflicts with the CLI option you’re passing. You have to remove it from daml.yaml.
Arguably the CLI option should overwite the config file but for various reasons that’s not what happens right now.