Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 1 (near "@extends:")

admin

Solved by Paul Hibbitts View solution

Started by ontime 7 years ago · 2 replies · 2208 views
7 years ago

On /admin/tools/reports Grav Yaml Linter reports issues and for each admin .yaml file that uses @extends I got this error:

TXT
The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 1 (near "@extends:").

I am not a specialist of YAML and I don't know if this is an issue with the linter or my YAML syntax.

I found that @ should be replaced by ~ in the new YAML syntax. Not sure if that applies here, I did try anyway : the linting error was gone, but as was the effect of my .yaml file on its admin form.

Versions: Grav v1.6.11 - Admin v1.9.7

7 years ago Solution

Hi @ontime, I am no expert in this area but in the past I've used single quotes to fix this, for example:

'@extends':

Does that work for you?

7 years ago

@paulhibbitts it worked thank you:
The linting error is gone and the yaml file containing the include still works.

Maybe the Grav documentation should be adapted accordingly?

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 76 8 hours ago
General · by pamtbaau, 13 hours ago
1 47 12 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago