|
2001-04-16
| ||
| 20:46 | • Ticket [218162ffff] errors with comments status still Closed with 3 other ch... artifact: 3eb9cc0f6f user: dgp | |
|
2000-10-26
| ||
| 08:15 | • Closed ticket [218162ffff]. artifact: 820dcdaf27 user: welch | |
| 00:53 | • New ticket [218162ffff]. artifact: 688c378182 user: nobody | |
errors with comments
Closed / Fixed218162ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:57
OriginalBugID: 2206 Bug
Version: 8.0p2
SubmitDate: '1999-06-15'
LastModified: '1999-08-05'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-05'
Name:
Dimitry Patent
Extensions:
Tix, BLT
ReproducibleScript:
proc SomeProc { some parameters } {
# if { $something } {
if { $something_else } {
Do_something
}
}
ObservedBehavior:
last bracket matches with comment line instead of proc line. Tcl interp
invoked from within another tool my group is working on. Stack trace :
ERROR: bgerror: missing close-brace
while compiling
"traceproc Edit {tree selected {ext ""}} { ..."
(file "/user/dpatent/cvs/borg/tcl/viewedit.tcl" line 159)
invoked from within
"source $file"
(procedure "ReloadSource" line 6)
invoked from within
"ReloadSource"
(procedure "Reload" line 4)
invoked from within
"Reload"
invoked from within
".main.mainmenu.special.m invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
(procedure "tkMenuInvoke" line 29)
invoked from within
"tkMenuInvoke .main.mainmenu.special.m 1"
(command bound to event)
DesiredBehavior:
last brace should match top line.
This is the expected comment behavior. Brace matching is done
before comment recognition, which can cause confusion like this.
An example showing correctness:
if {1} {set a 5; # set the var}
The bracing must be considered first (in the context of the 'if').
Only when the if is evaled do we recognize the 2nd command as a comment.
-- 08/05/1999 hobbs
welch Closed ticket [218162ffff].
[History diff]2000-10-26 08:15:57
dgp Ticket [218162ffff]: 3 changes
[History diff]2001-04-16 20:46:45
Log in (anonymous is fine) to add a comment.