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

YAMLException: unknown tag #245

Open
ZsharE opened this issue Aug 11, 2021 · 8 comments
Open

YAMLException: unknown tag #245

ZsharE opened this issue Aug 11, 2021 · 8 comments

Comments

@ZsharE
Copy link

ZsharE commented Aug 11, 2021

Hi,

I get an error when i try to edit my yaml file. That line works fine, it's an extension for MkDocs.

Error: YAMLException: unknown tag !<tag:yaml.org,2002:python/name:pymdownx.emoji.to_svg> (17:5)

markdown_extensions:
    - markdown_fenced_code_tabs:
        template: "bootstrap4"
    - pymdownx.emoji:
        emoji_generator: !!python/name:pymdownx.emoji.to_svg   <---
    - attr_list
    - md_in_html
@fjogeleit
Copy link
Owner

Hey, thank you for reporting. I will have a look on your exception.

@fjogeleit
Copy link
Owner

Is it possible for you to set your value in quotes?

markdown_extensions:
    - markdown_fenced_code_tabs:
        template: "bootstrap4"
    - pymdownx.emoji:
        emoji_generator: '!!python/name:pymdownx.emoji.to_svg'
    - attr_list
    - md_in_html

@ZsharE
Copy link
Author

ZsharE commented Aug 11, 2021

Unfortunately not. If I add !!python/name:pymdownx.emoji.to_svg in quotes or double quotes, it will throw a lot of errors when I try to build the mkdocs static site.

@fjogeleit
Copy link
Owner

Hm okay, the underlying Library defines Tags with !! and tries to process your type. (https://github.com/nodeca/js-yaml#supported-yaml-types) I can add an custom tag to be able to parse your yaml but it will dump your Tag after processing into quotes. So currently I have no Solution to workaround your Problem. I will ask the maintainer of the lib and let you now if I can solve this issue completly.

@kavithatiru
Copy link

How to add reviewers to the PR created by fjogeleit/yaml-update-action@main

@fjogeleit
Copy link
Owner

https://github.com/fjogeleit/yaml-update-action/blob/main/action.yml#L91

It accepts a comma separated list of usernames

@kavithatiru
Copy link

can be PR be automerged from GitHub actions

@fjogeleit
Copy link
Owner

Sorry, don't know.

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

3 participants