Skip to content

YAMLParseError when copying from button builder to button template #666

@ITMighty

Description

@ITMighty

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.4.15

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: 1.13.0
	Installer version: 1.12.4
	Operating system: Windows 11 Enterprise 10.0.26200
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 8
	Plugins enabled: 2
		1: Meta Bind v1.4.15
		2: Templater v2.21.0

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

I used the Metabind button maker via the command menu (ctrl + p), Open button builder and after copying the builder results to clipboard and attempting to paste as a button template using the Add Template from Clipboard, I get the error:

YAMLParseError: Implicit keys need to be on a single line at line 1, column 1

The offending code, according to the warning, is:

```meta-bind-button
^

Steps to Reproduce

I do not know what, if any of the provided data in the button fields, could be causing this issue. However, here are steps I know work to create the issue.

  1. Use ctrl + p to bring up the command palette.
  2. Type button to get the button builder command to show up and select it.
  3. Add anything as the label, I used Part Lookup.
  4. Set the style to primary.
  5. Set the tooltip to anything, I used Find LEGO parts based on multiple criteria..
  6. Set the id to whatever, I set mine to button-part-lookup.
  7. Leave the hidden toggle off.
  8. Select the runTemplaterFile action and select a template found within your Templater templates folder, mine doesn't do anything currently (just setting this vault up).
  9. Click the button Copy to clipboard.
  10. Open the Obsidian Settings and go to the plugin settings for Meta Bind.
  11. Click the Edit templates button for Button templates.
  12. Choose the Add Template from Clipboard button.
  13. Receive error.

Expected Behavior

The button content used to be pasted into a new button template and show in the Meta Bind Button Templates list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions