|Evaluating Tcl-Editor [message #525647]
||Wed, 07 April 2010 06:55
| Dirk Hoffmann
Registered: July 2009
while evaluating the DLTK Tcl Editor the following questions came up:
1 Is it possible to edit Tcl files across a network connection and if
yes can you give me a pointer on how to achieve that?
2 If we provided our own debugging engine would that be able to debug
files across a network connection?
3 In order to connect our own Tcl debugger with the Tcl IDE where would
we have to start?
4 Completion of variable names does not seem to work in cases where the
dollar symbol is surrounded by braces as in if conditions. Is this
recognized as a bug (I couldn't find the corresponding bugzilla entry)?
5 We have a modified version of the source command, namely "source
-relax FILE" only sources the file if it exists. The lines containing
this command are marked as an error. What do I need to change so that
such a command is considered correct tcl code?
6 We have our own tcl interpreter which is not recognized by the
Tcl-IDE. What do I need to change to make it recognizable. I heard a
script is sent to the interpreter to get versioning info. Where can I
change that script?
7 Our own Tcl interpreter adds its own commands to the language. How can
I add them to code completion, syntax coloring, etc.
Thanks and Regards,
|Re: Evaluating Tcl-Editor [message #526814 is a reply to message #525647]
||Tue, 13 April 2010 01:40
| Alex Panchenko
Registered: July 2009
To edit network files you can use "RSE" (it's provided by Eclipse DSDP
project) and DLTK Remote Projects component. Links to download are
available at the build download page. It works over ssh (sftp) protocol.
DLTK supports DBGP debugging protocol it works over TCP/IP, so it always
works over network connection. The protocol specification is available
If DBGP protocol is good for you then you should start with the
implementation of the protocol at the debugging engine side. At the DLTK
side you should provide the implementation of IInterpreterRunnerFactory
interface to construct correct command line, and the DBGP protocol is
Completion in expressions (as well as expression validation and probably
some other aspects) is not implemented yet. You can file the feature
request for this.
The grammars for Tcl commands are provided in the
org.eclipse.dltk.tcl.tcllib/definitions/builtin.xml file. The format is
not documented, but it should be easy enough to understand.
To validate interpreter DLTK executes the following script
org.eclipse.dltk.tcl.core/scripts/dltk.tcl with the "get-pkgs" argument.
The only way to change it is provide your own IInstallType (standard
implementation is in
org.eclipse.dltk.tcl.internal.launching.GenericTclInstallTyp e class).
However, it would be better if you can provide patch for the dltk
script, so it would work with different tcl versions.
To contribute your own keywords you can use the
org.eclipse.dltk.tcl.core.tclkeywords extension point.
If you have more questions please ask.
Powered by FUDForum
. Page generated in 0.01543 seconds