Overview
| Artifact ID: | f73fa5201d7afe495c6e3d7313f53cb5f71e9f434c6191b6a60b7a9b1c011d75 |
|---|---|
| Ticket: | 95061fc746ea9d8d4c2c244e4f6daa3e6b472150
Line number discrepency |
| User & Date: | anonymous on 2021-06-02 05:10:49 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
My command interface is Tcl based and my aim is to know the line number of a particular command given in a file of Tcl commands. In order to know the line number of the command, I execute the following in my program. get dict [info frame -1] line This works perfectly in most cases. However, there is one corner case as below. 1: If { 1 } { 2: my_command1 -option1 { object1 \ 3: object2 \ 4 object3 } 5: my_command2 …. 6: } For my_command1, I’m getting the line number correctly as 2. But my_command2, I’m getting the line number as 3 and not as 5. If I try the same set of commands by commenting ‘if’ construct, I get line number of my_command2 correctly as 5! 1: #If { 1 } { 2: my_command1 -option1 { object1 \ 3: object2 \ 4 object3 } 5: my_command2 …. 6: #} I’m wondering if this is a bug with Tcl ‘info frame’ command. Do you know if this is a known issue? Is there anything I could do to fix this problem? Thanks and regards - is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "17. Commands I-L"
- title changed to: "Line number discrepency"
- type changed to: "Bug"