Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Evaluating Tcl-Editor
Evaluating Tcl-Editor [message #525647] Wed, 07 April 2010 10:55 Go to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Hi,

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,
Dirk

Thankd
Re: Evaluating Tcl-Editor [message #526814 is a reply to message #525647] Tue, 13 April 2010 05:40 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Dirk,

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
at http://xdebug.org/docs-dbgp.php

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
already implemented.

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.

Regards,
Alex
Previous Topic:[BUILD] I-I201004071246-201004071246
Next Topic:[BUILD] I-I201004141240-201004141240
Goto Forum:
  


Current Time: Thu Apr 18 10:00:56 GMT 2024

Powered by FUDForum. Page generated in 0.03142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top