Tcl parser - requiring 'package require Itcl' #3136
-
Tried using the new tags package, but it's not finding nearly as much in my Tcl files. How do I force the parser for Itcl (and TclOO) to always be active when parsing a Tcl file? Our code base uses Itcl in 90% of Tcl files, but due to the flow, doesn't have 'package require Itcl' in but a small handful. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Could you tell me the detail of the flow? ctags needs a hint for detecting whether the current input is Itcl source or non-Itcl tcl source. |
Beta Was this translation helpful? Give feedback.
-
In the current implementation, ctags detects iTcl in two ways: |
Beta Was this translation helpful? Give feedback.
-
About tcl files having 'package require Itcl', does ctags work fine? |
Beta Was this translation helpful? Give feedback.
-
I read my code. As you wrote, itcl.c expects 'package require'. Without the statement, itcl.c does nothing. To use itcl in your code, isn't "package require ITcl" needed? What we have to do is simple, removing: Lines 259 to 260 in f2dc744 However, I need the reason why we have to remove the condition from the view of Tcl language semantics. |
Beta Was this translation helpful? Give feedback.
-
@bigfaceworm, thank you. |
Beta Was this translation helpful? Give feedback.
@bigfaceworm, thank you.
I will remove the condition,
itcl->foundITclPackageRequired
.Please, wait a while.