Correctly formatted aliases don't work if there is an error elsewhere in the metadata

Steps to reproduce

Added YAML metadata at top of the document – with error!

---
aliases: [Luhmann, “Prof. Zettelkasten”] -- correctly formatted
tags: [#sociology] -- MISTAKEN formatting (missing "quotes")
---

Niklas Luhmann

Expected result

Either an indication of an error in the YAML metadata (that [#sociology] should be ["#sociology"] or [sociology])
AND/OR
The correctly formatted part of the YAML would work (but not the incorrect)

Actual result

The alias fails to function, although that part of the YAML metadata is correct.

Environment

  • Operating system: macOS 10.15.7
  • Obsidian version: 0.9.19

Additional information

I discovered this because I noticed that the metadata preview (on Insider build 0.9.19) was showing in some pages but not others.

yes, that’s not a bug. That’s how it’s gonna work.
The whole metadata section has to be written in YAML format.

Fair enough. But especially with both no error indication and so little documentation (I know you’re busy!), it’s easy not to realize where things have gone wrong.

we display an error when you enable show frontmatter but I think we should move it to the metadata box.

That seems like a good idea.
It would be ideal to get the error indication in Editing mode, but if that is not possible, it would be nice to get an error indication even if one has chosen the elegant “hidden” view of the metadata (with the “reveal” chevron).

1 Like