Command Palette

Command Palette

2.7k Downloads

Stuck on "Load Bindings" at launch.

Sudonymoose opened this issue ยท 4 comments

commented

Message: bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))
Time: Tue Nov 14 21:00:55 2023
Count: 1
Stack: bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))
[string "@Interface/AddOns/CommandPalette/utils/Async.lua"]:32: in function <Interface/AddOns/CommandPalette/utils/Async.lua:19>

Locals: ticker =
start = 306.589151
(for generator) = defined =[C]:-1
(for state) =

{
=
{
}
}
(for control) =
thread =
status = "suspended"
success = false
message = "bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))"
_threads =
{
=
{
}
}
_ticker =

commented

Most likely an addon you use has a binding with a nil value. I'll make a check for this.

If you want, you can try to narrow down which addon is causing it.

commented

Let me know if 1.2.4 fixes your issue. I could not see an error line in your error message, but I fixed the one line that could possibly ever have a nil value.

commented

Thanks for finding the culprit addon!

Rarity seems to set their category to the global variable Rarity, this global variable returns their API, which has a metamethod __tostring to return its name Rarity as a string. Instead they were supposed to set category to BINDING_HEADER_Rarity.

I messaged them about this, but in the meantime, I just tostring all the inputs to StripHyperlinks, which seems to be what Blizzard does, as this is why it LOOKS like it works in the addon settings panel.

Should be fixed in 1.2.5!

commented

A-ha! The 1.2.4 didn't fix it, but i did identify it was Rarity breaking Command Palette. Looks like they may have added a keybind not long ago? WowRarity/Rarity@d33d179

That said, setting the keybind doesn't fix the command palette breakage. I still get the following lua output

Message: bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))
Time: Wed Nov 15 14:06:47 2023
Count: 1
Stack: bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))
[string "@Interface/AddOns/CommandPalette/utils/Async.lua"]:32: in function <Interface/AddOns/CommandPalette/utils/Async.lua:19>

Locals: ticker = <userdata>
start = 2037.117011
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
  = <table> {
 }
}
(for control) = <no value>
thread = <no value>
status = "suspended"
success = false
message = "bad argument #1 to '?' (Usage: local stripped = StripHyperlinks(text [, maintainColor, maintainBrackets, stripNewlines, maintainAtlases]))"
_threads = <table> {
  = <table> {
 }
}
_ticker = <userdata>