Problem passing --static-time to 'start'
- LucianoOP 2
When 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 - cocreature 3
Hi @Luciano. The default
daml.yamlcontains the following sectionsandbox-options: - --wall-clock-timewhich 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.