javalent / dice-roller

Inline dice rolling for Obsidian.md
265 stars 27 forks source link

🐞Dataview Inline Fields Stop Working After Restart On iOS #290

Open rbruchal opened 6 months ago

rbruchal commented 6 months ago

Check for existing bug reports before submitting.

Expected Behavior

(foo:: 42)

dice: 2d6+foo

Should produce a tappable dice roller. It does work correctly until the app restarts from a phone restart or the system shutting the app down.

Current behaviour

After an app restart, there is a parsing error and the dice roller no longer works. If you redo it with a different field name it will work until another app restart.

See screen video: https://github.com/javalent/dice-roller/assets/1096643/96c1172c-03d5-4d58-a684-e6e5388d6819

The app is force quit to simulate a phone restart or similar shutdown.

Reproduction

  1. Open obsidian and create a new vault. The bug happens no matter whether the vault is local or iCloud
  2. Install Dataview and Dice Roller
  3. Make a new note called Test
  4. Add an inline field and dice roller:
  5. (foo:: 42)

dice: 2d6+foo

  1. Note that the dice roller works
  2. Force quit the app
  3. Restart app
  4. Note that there is a parsing error displayed and the dice roller no longer works
  5. See the enclosed video

Which Operating Systems are you using?

Obsidian Version Check

Obsidian 1.4.16

Plugin Version

10.4.3 (Dataview 0.5.64)

Confirmation

Possible solution

No response

rbruchal commented 6 months ago

This can also happen if you switch to a different vault and switch back

bwoods commented 5 months ago

It also happens if you select