Slackluster / ProfessionShoppingList

Track recipes, reagents, cooldowns, and more!
5 stars 4 forks source link

Error in Tweaks module at login #178

Closed Gaviin1242 closed 2 months ago

Gaviin1242 commented 2 months ago

Using v11.0.2-012, this error is immediately thrown every time I log in:

18x ...aceProfessionShoppingList/modules/Tweaks.lua:261: attempt to index local 'f' (a nil value) [string "@ProfessionShoppingList/modules/Tweaks.lua"]:261: in function DisableHandyNotesAltRMB' [string "@ProfessionShoppingList/modules/Tweaks.lua"]:35: in function?' [string "@ProfessionShoppingList/modules/Tweaks.lua"]:17: in function <...aceProfessionShoppingList/modules/Tweaks.lua:15>

Locals: f = nil f2 = Frame { } (temporary) = "Frame" (temporary) = nil (temporary) = nil (temporary) = "attempt to index local 'f' (a nil value)"

Slackluster commented 2 months ago

I'm unable to reproduce this error on my end. Does the error occur when PSL and HandyNotes (and BugSack + BugGrabber, if you use them) are the only addons enabled? I suspect another addon has an outdated library that's interfering.

Slackluster commented 2 months ago

Closing this issue due to lack of user response.

Gaviin1242 commented 2 months ago

Sorry I lost track and forgot to respond! Yes, the error seems to only occur if HandyNotes is enabled along with this addon.

Slackluster commented 2 months ago

I still cannot reproduce this issue when only PSL and HandyNotes are enabled. Are you sure you are testing with only those 2 addons enabled? (And BugSack/BugGrabber)

Gaviin1242 commented 2 months ago

Ah, I think I know what might be doing it. I actually comment out a relatively small chunk of code in HandyNotes that hijacks the alt-right mouseclick event. I want that action to put a TomTom waypoint, as it always had until HandyNotes came along and took it over. So maybe removing that code causes some conflict with PSL? Seems odd that there would be a dependency like that, but what do I know. :)

Commented code is lines 473 through 502 in HandyNotes_HandyNotes.lua.

Slackluster commented 2 months ago

Yes, manually altering HandyNotes' code is probably causing the issue. The PSL module it's conflicting with, actually does the same thing. It stops HandyNotes from hijacking the Alt+RMB hotkey. I made it because I got tired of having to manually adjust HandyNotes code every time they threw out an update.

You can disable PSL's HandyNotes tweak from the addon settings, or restore HandyNotes' original code. :)

Gaviin1242 commented 2 months ago

Lol, well then, sounds like you and I have the same annoyance with HandyNotes! I just un-commented that code, and everything is working great now with no errors. And alt-right click goes to TomTom. All is right in the universe. :) Thanks, and sorry for the bother with this bug report!