javalent / dice-roller

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

Dice View not calculating dice rolls. #298

Open JorMerr opened 5 months ago

JorMerr commented 5 months ago

Check for existing bug reports before submitting.

Expected Behavior

Click of d20 button populates Dice Formula field. Formula following conventional syntax (1d20/1d4/2d6) and running will calculate dice roll.

Current behaviour

D20 button does not populate Dice Formula field. Other buttons populate intermittently. Typing dice formula in Dice Formula field and running the formula does not calculate dice rolls, and returns pop-up message: Invalid Formula: Cannot read properties of undefined (reading 'detach'). Inspector also shows error for plugin:obsidian-dice-roller:16 Uncaught Error: invalid syntax at line 1 col 1: dice: 1d20

Reproduction

  1. Launch Obisidian
  2. Open Dice Roller: Dice View
  3. Click 1d4 button
  4. Click run
  5. Unsuccessful run and pop-up showing Invalid Formula: Cannot read properties of undefined (reading 'detach').
  6. Repeat with other dice formula and syntax, Inspector shows Unexpected Error.

Which Operating Systems are you using?

Obsidian Version Check

1.5.8

Plugin Version

10.4.5

Confirmation

Possible solution

No response