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

YAML Linting: Found 2 linting errors #40

Closed
bugsysop opened this issue Oct 19, 2020 · 2 comments
Closed

YAML Linting: Found 2 linting errors #40

bugsysop opened this issue Oct 19, 2020 · 2 comments

Comments

@bugsysop
Copy link

Error message in Grav's Tool Section about Hypertext theme:

/user/themes/hypertext/blueprints/asset/file.yaml 
The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 29 (near "@media.*.keys").
-- | --
/user/themes/hypertext/blueprints/default.yaml 
Found unknown escape character "\-" at line 5 (near "pattern: "[a-z][a-z0-9_\-]+"").

My Configuration:

  • Grav v1.6.28
  • Admin v1.9.17
  • Hypertext v2.2.1
  • PHP 7.3.19-1~deb10u1
  • Server: Nginx

This is a frech install, with no manual editing...

@bugsysop
Copy link
Author

Solution

It's a YAML formating problem, we have to add quotes to the values...

File: /user/themes/hypertext/blueprints/default.yaml
Replace pattern: '[a-z][a-z0-9_\-]+' with pattern: '[a-z][a-z0-9_\-]+'

File: /user/themes/hypertext/blueprints/asset/file.yaml
Replace @media.*.keys with '@media.*.keys'
Replace @media.*.values with '@media.*.values'

@artofthesmart
Copy link
Owner

Resolved, ready to go live in the next release. :)

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