Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Item Macro #22

Open
caewok opened this issue May 17, 2021 · 0 comments
Open

Conflict with Item Macro #22

caewok opened this issue May 17, 2021 · 0 comments

Comments

@caewok
Copy link

caewok commented May 17, 2021

Setup

Foundry 0.7.9, dnd5e 1.2.4, Item Macro 1.5.1, Macro Marker 1.0.6

How to Replicate

Add a macro to an item using Item Macro, then execute it (open the item, click "Item Macro" in the top bar, add the macro). The errors show up in the console. I used a very basic console.log("Item Macro execute");.

Issue

I am seeing repeated errors thrown when executing a macro stored in an item using Item Macro. The errors appear to be related to macro marker expecting this.macro to be set, but I am guessing that Item Macro interferes with that assumption:

Uncaught (in promise) TypeError: this.macro is null
macro-marker.js:148:23
getData macro-marker.js:148
renderConfig macro-marker.js:758
macroMarkerConfig_awaiter macro-marker.js:736
macroMarkerConfig_awaiter macro-marker.js:732
renderConfig macro-marker.js:755
init macro-marker.js:750
_call lib-wrapper.js line 1 > eval:4
call foundry.js:2481
_render foundry.js:4547
call_wrapped libWrapper-wrapper.js:441
libWrapper-errors.js:208
0 libWrapper-wrapper.js:142
_render foundry.js:5157
render foundry.js:4479
render foundry.js:5621
_init ItemMacroConfig.js:73
jQuery 9
_init ItemMacroConfig.js:63
_call lib-wrapper.js line 1 > eval:4
call foundry.js:2481
_render foundry.js:4547
call_wrapped libWrapper-wrapper.js:441
libWrapper-errors.js:208
0 libWrapper-wrapper.js:142
_render foundry.js:5157
render foundry.js:4479
render foundry.js:5621
render foundry.js:29079
_onUpdate foundry.js:29651
entities foundry.js:29629
_handleUpdate foundry.js:29622
update foundry.js:29603
update foundry.js:29678
update foundry.js:32517
setFlag foundry.js:30247
updateMacro ItemMacroConfig.js:54
_updateObject ItemMacroConfig.js:40
_onSubmit foundry.js:5251
activateListeners foundry.js:5193
activateListeners foundry.js:18198
_render foundry.js:4537
call_wrapped libWrapper-wrapper.js:441
macroMarkerConfig_awaiter macro-marker.js:732
renderConfig macro-marker.js:755
init macro-marker.js:750
_call lib-wrapper.js line 1 > eval:4
call foundry.js:2481
_render foundry.js:4547
AsyncFunctionNext self-hosted:690
(Async: async)
call_wrapped libWrapper-wrapper.js:441
call_wrapped self-hosted:1277
libWrapper-errors.js:208
wrapper self-hosted:1220
0 libWrapper-wrapper.js:142
_render foundry.js:5157
render foundry.js:4479
render foundry.js:5621
_init ItemMacroConfig.js:73
jQuery 9
_init ItemMacroConfig.js:63
_call lib-wrapper.js line 1 > eval:4
call foundry.js:2481
_render foundry.js:4547
AsyncFunctionNext self-hosted:690
(Async: async)
call_wrapped libWrapper-wrapper.js:441
call_wrapped self-hosted:1277
libWrapper-errors.js:208
wrapper self-hosted:1220
0 libWrapper-wrapper.js:142
_render foundry.js:5157
render foundry.js:4479
render foundry.js:5621
render foundry.js:29079
_onUpdate foundry.js:29651
entities foundry.js:29629
map self-hosted:221
_handleUpdate foundry.js:29622
update foundry.js:29603
InterpretGeneratorResume self-hosted:1480
AsyncFunctionNext self-hosted:690
(Async: async)
update foundry.js:29678
update foundry.js:32517
setFlag foundry.js:30247
updateMacro ItemMacroConfig.js:54
InterpretGeneratorResume self-hosted:1480
AsyncFunctionNext self-hosted:690
(Async: async)
_updateObject ItemMacroConfig.js:40
_onSubmit foundry.js:5251
_onSubmit self-hosted:1173
(Async: EventHandlerNonNull)
activateListeners foundry.js:5193
activateListeners foundry.js:18198
_render foundry.js:4537
AsyncFunctionNext self-hosted:690
(Async: async)
call_wrapped libWrapper-wrapper.js:441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant