vigoren / foundryvtt-simple-calendar

A simple calendar module for the FoundryVTT system
https://simplecalendar.info/
MIT License
48 stars 35 forks source link

[BUG] Simple calendar non-funcitonal after upgrade to new version from old version #614

Closed SyntheticWeb closed 3 months ago

SyntheticWeb commented 3 months ago

Describe the bug I have been doing upgrades and modifications to an old base world in FoundryVTT. As it was a pre-1.3.75 version of simple calendar I followed the instructions to reinstall the module. However, after reinstalling, it seems that the data migration is not occurring (perhaps due to how old the previous version was) and it simple calendar seems stuck in its old state. No migration process occurs The icon and button to open the calendar remains in the token controls section instead of in Journal Notes, and I am unable to open the calendar or change the configuration settings.

Note that I do not need to have my old settings from previous, there is nothing there that I need to migrate/save, so if a solution requires me to wipe out the world specific simple-calendar data/settings, that is totally fine.

To Reproduce Steps to reproduce the behavior:

  1. World had very old version of Simple Calendar (<1.3.75)
  2. Uninstalled simple calendar
  3. Reinstalled new version
  4. After reopening world, no data migration occurs, and the old icon button remains and am unable to open the calendar or the configuration settings.
  5. When trying to open the calendar, the console prints the following error:
Error: An error occurred while rendering ee 1. ENOENT: no such file or directory, open '/data/Data/modules/foundryvtt-simple-calendar/templates/calendar.html'
[No packages detected]
    getTemplate foundry.js:7678
    value socket.js:532
    value socket.js:459
    emit index.mjs:136
    value manager.js:207
    promise callback*it< websocket-constructor.browser.js:5
    value manager.js:206
    emit index.mjs:136
    value index.js:131
    value manager.js:193
    emit index.mjs:136
    value socket.js:324
    emit index.mjs:136
    value transport.js:97
    value transport.js:89
    onmessage websocket.js:69

Foundry Information

Browser (please complete the following information):

Additional context So far I have tried to manually run the SimpleCalendar.api.runMigration() command after digging through some other github issues, but it seems this functionality has been removed in the newer versions. Unfortunately I did not mark down which old version of simple calendar i upgraded from, but I believe the version was pre 1.0. I have also tried manually removing the simple-calendar folder in modules, and then reinstalling via the manifest link vs the Foundry installer, but probably as expected it didnt make a difference.

SyntheticWeb commented 3 months ago

Apologies unsure what happened but when I launched the game today everything seems to be in order.