Prat 3.0

693 - Editbox Error

What steps will reproduce the problem?

  • 1. Configure the addon to user preference.
  • 2. Log to a different character.
  • 3. Editbox settings does not copy over to any character.

What is the expected output? What do you see instead?

  • I expect the edit box to look the same across all characters. The edit box on my main looks just fine. When I log to any alternate character, the edit box is completely gone.
  • Example: What Prat should look like.
  • Example: What Prat looks like on alt characters - The teal color is actually the sky in Stormwind; the focus is that there is no frame around the edit box as there should be (reference the first example).

What version of the product are you using?

IMPORTANT -> Can you reproduce the problem when ONLY Prat is running?

  • Yes. This problem occurs with just Prat 3.0 running and no other addon enabled.

Do you play on US or EU. What language do you use?

  • I play on the US servers. I use the English language.

Do you have an error log of what happened?

  • Message: Interface\AddOns\Prat-3.0\modules\Editbox.lua:586: attempt to index field 'history' (a nil value)
    Time: 04/21/14 08:44:30
    Count: 1
    Stack: Interface\AddOns\Prat-3.0\modules\Editbox.lua:586: in function <Interface\AddOns\Prat-3.0\modules\Editbox.lua:585>
    Interface\AddOns\Prat-3.0\modules\Editbox.lua:644: in function <Interface\AddOns\Prat-3.0\modules\Editbox.lua:618>
    (tail call): ?
    [C]: ?
    [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
    (tail call): ?
    ...Ons\Prat-3.0_Libraries\AceAddon-3.0\AceAddon-3.0.lua:558: in function `EnableAddon'
    ...Ons\Prat-3.0_Libraries\AceAddon-3.0\AceAddon-3.0.lua:571: in function `EnableAddon'
    ...Ons\Prat-3.0_Libraries\AceAddon-3.0\AceAddon-3.0.lua:651: in function <...Ons\Prat-3.0_Libraries\AceAddon-3.0\AceAddon-3.0.lua:636>
    [C]: in function `LoadAddOn'
    Interface\FrameXML\UIParent.lua:306: in function `UIParentLoadAddOn'
    Interface\FrameXML\UIParent.lua:380: in function `TimeManager_LoadUI'
    Interface\FrameXML\UIParent.lua:740: in function <Interface\FrameXML\UIParent.lua:705>

Locals: <none>

Please provide any additional information below.

  • I hope this gets resolved soon. I'm OCD about my addons and having a setting like this on one toon and not my others makes me twitch a little, lol.
User When Change
Sajakain Apr 21, 2014 at 13:49 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Shaft840 Shaft840 Jun 14, 2014 at 21:07 UTC - 0 likes

    I wanted to play on my alt.. so i messed with it.

    Changing

    e.history_lines =  Prat3CharDB.history.cmdhistory and Prat3CharDB.history.cmdhistory[e:GetName()] or {}
    

    To:

    e.history_lines =  ( Prat3CharDB.history and Prat3CharDB.history.cmdhistory ) and Prat3CharDB.history.cmdhistory[e:GetName()] or {}
    

    is a quick fix so that the code can continue to skin and place the editbox without breaking.

    I think the reason for this is because I or (we) have history module disabled. but even with it, it should error 1 time the way it was and then work. Currently there is no check to see if that module is enabled, so even disabled it still tries to use it and does if history module was enabled on that toon before.

    Anyways just posting to help peeps that have had the same problems as I. Changing said code, enable history and then reloading twice, or check marking only use alt-up/down.. are all options to fix your probs.

    Great Addon sylvanaar!!!!

    - long time user

    Last edited Jun 14, 2014 by Shaft840
  • Avatar of Shaft840 Shaft840 Jun 14, 2014 at 05:22 UTC - 0 likes

    Same problem

    1x 18Prat-3.0-3.5.8\modules\Editbox.lua:590: attempt to index field 'history' (a nil value) 18Prat-3.0-3.5.8\modules\Editbox.lua:590: in function <Prat-3.0\modules\Editbox.lua:589> 18Prat-3.0-3.5.8\modules\Editbox.lua:648: in function <Prat-3.0\modules\Editbox.lua:622> (tail call): ?

  • Avatar of Zwixx Zwixx May 18, 2014 at 11:01 UTC - 0 likes

    In the release version, same error with another line number occurs. (line 590)

  • 3 comments

Facts

Last updated
Jun 14, 2014
Reported
Apr 21, 2014
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
3

Reported by

Possible assignees