Lua error in Shadowlands 9.0.2
havlok opened this issue ยท 1 comments
Hi, I really wanted to use your addon for auto-marking my friends instead of manually/macroing it, but I'm unfortunately getting some errors in Shadowlands.
This is upon loading into the game with the addon enabled:
Message: Binding header WANMARK is defined more than once in Interface\AddOns\WanMark\Bindings.xml
Time: Thu Dec 31 07:49:43 2020
Count: 4
and this is when trying to use any (as far as I can tell) slash command:
Message: Interface\AddOns\WanMark\WanMark.lua:387: attempt to index global 'word' (a nil value)
Time: Thu Dec 31 07:51:12 2020
Count: 1
Stack: Interface\AddOns\WanMark\WanMark.lua:387: attempt to index global 'word' (a nil value)
[string "@Interface\AddOns\WanMark\WanMark.lua"]:387: in function `SlashCmdHandler'
[string "@Interface\AddOns\WanMark\WanMark.lua"]:273: in function `?'
[string "@Interface\FrameXML\ChatFrame.lua"]:5093: in function `ChatEdit_ParseText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4757: in function `ChatEdit_SendText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4793: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: msg = ""
editbox = ChatFrame1EditBox {
0 = <userdata>
tabCompleteTableIndex = 1
focusLeft = ChatFrame1EditBoxFocusLeft {
}
focusRight = ChatFrame1EditBoxFocusRight {
}
customAutoCompleteFunction = <function> defined @Interface\FrameXML\ChatFrame.lua:4246
chatFrame = ChatFrame1 {
}
addSpaceToAutoComplete = true
language = "Common"
focusMid = ChatFrame1EditBoxFocusMid {
}
headerSuffix = ChatFrame1EditBoxHeaderSuffix {
}
text = "/"
Backdrop = <unnamed> {
}
setText = 0
autoCompleteParams = <table> {
}
NewcomerHint = ChatFrame1EditBoxNewcomerHint {
}
addHighlightedText = true
languageID = 7
header = ChatFrame1EditBoxHeader {
}
}
help = "yes"
words = <table> {
}
changed = "no"
(*temporary) = nil
(*temporary) = "(%w+)%s*(.-)%s*$"
(*temporary) = nil
(*temporary) = ""
(*temporary) = 0
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'word' (a nil value)"
WMARK_Mark = <function> defined @Interface\AddOns\WanMark\WanMark.lua:164
WMARK_DeMark = <function> defined @Interface\AddOns\WanMark\WanMark.lua:186
WMARK_Mode = <function> defined @Interface\AddOns\WanMark\WanMark.lua:243
MARKS = <table> {
1 = "star"
2 = "circle"
3 = "diamond"
4 = "triangle"
5 = "moon"
6 = "square"
7 = "cross"
8 = "skull"
0 = "none"
}
WanMark = <table> {
ShowHelp = <function> defined @Interface\AddOns\WanMark\WanMark.lua:284
SlashCmdHandler = <function> defined @Interface\AddOns\WanMark\WanMark.lua:298
}
I know enough about Lua to be dangerous, so I might take a crack at this myself, but I don't have time for awhile and I wanted to let you know in case it's a quick fix. If you are able to fix it, I appreciate it! If not, no worries. Thank you!