Behat: Error message "you need to quote the scalar"

Created on 25 Mar 2019  路  2Comments  路  Source: Behat/Behat

Trying to configure my suites and contexts as described here (http://behat.org/en/latest/user_guide/configuration/suites.html), I get the following error in my terminal:

The reserved indicator "%" cannot start a plain scalar; you need to quote the scalar at line 7 (near "paths: [ %paths.base%/features ]").

How do I "quote the scalar", since using actual quotes on the variable placeholder produces the same error?

Thanks.

Most helpful comment

I had to quote like this in my behat.yaml file:

'%paths.base%/features'.

It would be helpful to update the documentation. Tags also need quoting: '@tag'.

All 2 comments

I had to quote like this in my behat.yaml file:

'%paths.base%/features'.

It would be helpful to update the documentation. Tags also need quoting: '@tag'.

The doc source is available at https://github.com/Behat/docs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iongion picture iongion  路  8Comments

RusHiiii picture RusHiiii  路  6Comments

RynnHeldeD picture RynnHeldeD  路  5Comments

DavidGarciaCat picture DavidGarciaCat  路  8Comments

xorik picture xorik  路  3Comments