Tk Library Source Code

View Ticket
Login
Ticket UUID: 1855635
Title: tkchat: Error message on opening current history in new pane
Type: Bug Version: None
Submitter: sbron Created on: 2007-12-21 10:05:02
Subsystem: tclapps :: tkchat Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-04-22 02:02:18
Resolution: Fixed Closed By: patthoyts
    Closed on: 2008-04-21 19:02:18
Description:
Using the "Show current history in new pane" option on Dec 21 2007 gave the following error message:

extra characters after close-brace
extra characters after close-brace
    while executing
"$w tag configure {NICK-}"
    ("eval" body line 1)
    invoked from within
"eval $value"
    ("exec" arm line 1)
    invoked from within
"switch $key {
    exec    {eval $value}
    image   {$w image create $index -name $value}
    text    {$w insert $index $value}
    mark    {
   ..."
    (procedure "::tkchat::textRestore" line 14)
    invoked from within
"::tkchat::textRestore $clone [::tkchat::textSave $text]"
    (procedure "::tkchat::textClone" line 8)
    invoked from within
"::tkchat::textClone .txt .clone"
    (procedure "::tkchat::HistoryPaneToggle" line 28)
    invoked from within
"::tkchat::HistoryPaneToggle"
    invoked from within
".#mbar.#mbar#vis invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .#mbar.#mbar#vis 1"
    (command bound to event)

The problem was observed with tkchat v1.411 running on tclkit 8.4.13 form equi4 on SuSE linux 10.1 and could be reproduced with a 8.5.0 tclkit built using kitgen.
User Comments: patthoyts added on 2008-04-22 02:02:18:
Logged In: YES 
user_id=202636
Originator: NO

This is caused by the text widget cloning code using [append] to build strings when it should be using lists.
Fixed in version 1.424

sbron added on 2007-12-21 17:20:52:
Logged In: YES 
user_id=37987
Originator: YES

The contents of the history pane stops after the second line of these lines taken from the history in the main tkchat window:

[03:23]<[Azbo]>test
[03:24]<}>test2
[03:24]<ยต>3