mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
520 stars 27 forks source link

[Obsidian 1.5 error] — Metadata menu autosuggest within tables freezes the entire app #438

Closed rushikb closed 10 months ago

rushikb commented 10 months ago

Flagging potential issue I'm seeing in the just-released Obsidian catalyst 1.5 — selecting autosuggest menu option causes the entire vault to freeze,

Error:

app.js:1 RangeError: Field is not present in this state
    at e.field (app.js:1:338560)
    at import_view.ViewPlugin.fromClass.decorations.buildDecorations (plugin:metadata-menu:12029:33)
    at new import_view.ViewPlugin.fromClass.decorations (plugin:metadata-menu:12015:31)
    at e.create (app.js:1:394529)
    at e.update (app.js:1:394959)
    at e.setState (app.js:1:495426)
    at t.clear (app.js:1:1353306)
    at t [as constructor] (app.js:1:1350205)
    at new t (app.js:1:1370839)
    at t.editTableCell (app.js:1:1366505)
    at t.receiveCellFocus (app.js:1:1286574)
    at t.setCellFocus (app.js:1:1286362)
    at app.js:1:1278063

CleanShot 2023-11-21 at 14 53 49

mdelobelle commented 10 months ago

Thanks I have a fix. inline fields aren't usable in tables right now: dataview is parsing the full line after the :: (not stopping after the first next | ) I will disable the autosuggest in tables in the next beta release

mdelobelle commented 10 months ago

you can test this version https://github.com/mdelobelle/metadatamenu/releases/tag/0.6.0-beta-9