p4535992 / foundryvtt-rarity-colors

MIT License
0 stars 1 forks source link

[BUG] Error: fromUuidSync was invoked on UUI #20

Closed CaosFR closed 1 month ago

CaosFR commented 3 months ago

Hi,

I have a bug with rarity-color . It's dont work with sheet inside a compendium (system or user). It's working if you export your sheet to your game or if I use a item compendium.

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Go to 'a sheet compendium'
  2. Open a sheet
  3. Open any action to edit
  4. See error
    Error: fromUuidSync was invoked on UUID 'Compendium.mon-compendium-partager.monstres-partager.Actor.WrDj95t16BTLQUGT.Item.vowp2kgd28v1VwqG' which references an Embedded Document and cannot be retrieved synchronously.
    at fromUuidSync (foundry.js:4896:11)
    at RetrieveHelpers.stringIsUuid (retrieve-helpers.js:75:22)
    at RetrieveHelpers.getItemSync (retrieve-helpers.js:635:29)
    at Object.getColorFromItem (API.js:26:32)
    at renderItemSheetRarityColors (raritycolors.js:364:23)
    at Object.fn (raritycolors.js:199:5)
    at #call (foundry.js:730:20)
    at Hooks.callAll (foundry.js:687:17)
    at ItemSheet5e._render (foundry.js:5855:13)
    at async ItemSheet5e._render (foundry.js:6532:5)

Screenshots Sheet compendium NOK image

Item compendium OK image

Sheet exported from compendium OK image

Browser: Chromium Version 126.

Foundry Version: Foundry v11.315

Game System: Dnd 3.3.1

Additional context

Reset settings to default or disable Rarity Color in compendium dont resolve the bug.

CaosFR commented 2 months ago

Any news ?

p4535992 commented 2 months ago

Sorry for the delay my free time is very short recently , i really hope after summer to come back to this