League-of-Foundry-Developers / foundryvtt-devMode

A module with some tools to help enable Foundry VTT package developers.
MIT License
12 stars 15 forks source link

Enabling hooks logging causes a mergeObject error #51

Open Eligarf opened 2 years ago

Eligarf commented 2 years ago

Environment Details

Describe the bug The save changes operation of the debug flag config dialog crashes with these messages in the console: foundry.js:3856 Error: One of original or other are not Objects! at mergeObject (helpers.mjs:472) at DevModeConfig._updateObject (DevModeConfig.mjs:271) at DevModeConfig._onSubmit (foundry.js:3853) _onSubmit @ foundry.js:3856 async function (async) _onSubmit @ foundry.js:3853

To Reproduce Steps to reproduce the behavior:

  1. Disable all modules except Developer Mode module v1.15.2
  2. Click on the Developer Mode Icon
  3. Enable the Hooks checkbox
  4. Click 'Save Changes'

Expected behavior I expect to start seeing a log of hooks being fired as I interact with actors/etc.

Screenshots

I've tried deleting the module and reinstalling, no change in behavior. This affects all my worlds equally, Any assistance in helping me at least get rid of the bad data poisoning this operation would be very helpful.

akrigline commented 2 years ago

Hmmm. That's unfortunate. I would advise backtracking to v1.13.2 That line looks like it deals with the compatibility warnings side of things for v10, in v9 it's useless and evidently causing issues... Sorry about that.