Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message "you need to quote the scalar" #1216

Closed
paddelboot opened this issue Mar 25, 2019 · 2 comments
Closed

Error message "you need to quote the scalar" #1216

paddelboot opened this issue Mar 25, 2019 · 2 comments

Comments

@paddelboot
Copy link

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.

@paddelboot
Copy link
Author

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'.

@stof
Copy link
Member

stof commented Mar 25, 2019

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

SvenRtbg added a commit to SvenRtbg/docs that referenced this issue Sep 4, 2019
According to Behat/Behat#1216 the recent YAML parser throws an error when encountering unquotes strings with special characters.
leymannx added a commit to leymannx/drupal-circleci-behat that referenced this issue May 29, 2021
leymannx added a commit to leymannx/drupal-circleci-behat that referenced this issue May 29, 2021
* #11 Drupal 9

* #11 Add DDEV config

* #11 Up CircleCI PHP

* php/issues#880 Add libonig-dev

* Behat/Behat#1216 You need to quote the scalar

* #11 Fix site name

* #11 Re-enable Toolbar to let auth user logout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants