-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BUG]: Error since latest release (r37) #3
Comments
Thank you for reporting. Greetings Hizuro |
I picked up r38 (which is funny as what you did was what I had actually done trying to fix it). I still get the same error (just the line number moved 1). I took a look at the Update_DropDownMenuButton() function, and IMO that compare on the second line exiting seems backwards (the not seems out of place, I think you're saying if it already exists, leave), but I removed the not (heck I even commented the entire line out), and I still get the error. That's why I said I am not sure how the heck this thing is nil!
|
Actually there's something funky going on with the way different versions of the addon load / interact with each other. I know the LibStub behavior works for the main LUA file, but not sure what (if anything) it's doing for the additional files. As a test, I replaced the LibDropDownMenu files in the 3 addons I have with it and it's working now. Broker_Everything (I think that's yours, it was at r35 I believe) And while I loaded LibDropDownMenu (r38) as it's own AddOn, it was still misbehaving. But as soon as I put all the files for r38 into every addon above (so they're all at r38 now). Works fine. I had also tried moving the addon to !LibDropDownMenu and even ZZLibDropDownMenu to figure out what was going on (including adding prints into the Update_DropDownMenuButton() function which is how I knew it wasn't getting called in the main AddOn (it appears it was calling the one in the r37 version of the addon loaded by DBM-Core as that function existed there as well)). So as I said, things aren't working as expected (every other library I looked at that uses the LibStub functionality to handle loading the latest version only has a single LUA file, you're loading 4) I'm far from a wow addon expert, so I'll leave it to you to ponder this situation (pretty easy to recreate my environment, all the addons above are the latest versions, and unfortunately most addons no longer ship with a -nolibs version like they did in the old days). |
WoW client
WoW Retail
What happened?
I have several addons that import the LibDropDownMenu library, and one of them a few days ago updated to r37. The others are at r36. Since doing so, when I attempt to right click on the LDB icon for WIM (which imports LibDropDownMenu), I get the following error.
NOTE: I installed LibDropDownMenu by it's self to ensure that it was the AddOn.
If I roll back to r36 (which involves replacing it within the AddOn that updated to r37 (DBM-Core for me)), everything is fine. Looking at the diffs between r36 and r37, it's mostly around this NewFeature functionality which it's claiming in this case is nil. I've read through the code and honestly not sure how it's nil (I even tried to force it to initialize it in the function that this is failing in), but here we are. I'm going to keep rolling back to r36 for now, but wanted you to be aware (and this is going to become more difficult as more AddOns I have update their libraries).
Lua Error Message?
Other addons?
No response
The text was updated successfully, but these errors were encountered: