Skip to content

<unknown>:1: SyntaxWarning: invalid escape sequence '\$' (maybe rose or cylc-rose?) #403

@ColemanTom

Description

@ColemanTom

I'm not sure if this is the correct repo for this. Perhaps it should be rose?

If you have a workflow structure with

.
├── flow.cylc
├── opt
│   └── rose-suite-a.conf
└── rose-suite.conf

And opt/rose-suite.a.conf has a single entry

[template variables]
F='\${ABC:-\$VARIABLE}'

When validating the workflow like cylc validate -O a $PWD I get

<unknown>:1: SyntaxWarning: invalid escape sequence '\$'
Valid for cylc-8.6.0

This warning message does not appear when I use cylc-flow=8.5.2

cylc-flow-8.5.2-pyhb01cd2f_0.json
cylc-flow-base-8.5.2-pyh707e725_0.json
cylc-rose-1.6.0-pyh707e725_0.json
metomi-rose-2.5.0-pyh707e725_0.json
metomi-rose-base-2.5.0-pyh707e725_0.json

but does with this combination

cylc-flow-8.6.0-pyhb01cd2f_0.json
cylc-flow-base-8.6.0-pyh707e725_0.json
cylc-rose-1.7.0-pyh707e725_0.json
metomi-rose-2.6.0-pyh707e725_0.json
metomi-rose-base-2.6.0-pyh707e725_0.json

Running with --debug on, both combinations have the say ROSE_SUITE_VARIABLES result, so it doesn't seem to affect the running of a workflow.

# 8.6.0 combo
    + ROSE_SUITE_VARIABLES={'ROSE_VERSION': '2.6.0', 'ROSE_ORIG_HOST': 'host.bom.gov.au', 'F': '\\${ABC:-$VARIABLE}',

# 8.5.2 combo
    + ROSE_SUITE_VARIABLES={'ROSE_VERSION': '2.5.0', 'ROSE_ORIG_HOST': 'host.bom.gov.au', 'F': '\\${ABC:-$VARIABLE}',

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFlag this as a question for the next Cylc project meeting.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions