Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Tcl: Syntax highlighting, package handling(Tcl 8.5 issues not properly displayed, binary packages)
Tcl: Syntax highlighting, package handling [message #636916] Wed, 03 November 2010 10:47 Go to next message
Oliver Bienert is currently offline Oliver BienertFriend
Messages: 1
Registered: November 2010
Junior Member

Eclipse SDK 3.6.1, Build id: M20100909-0800
DLTK 2.0.0.v20100505-1154-7L0-EC3wSZiWSqREkvtZ
Windows XP Prof

I just started using the Eclipse DLTK Env for writing Tcl-programs and stumbled
over a number of oddities or maybe bugs.

1. In my code I write:
set app "c:/tcl/lib/kit/snodbc.kit"
source $app

Eclipce then puts a warning saying "Could not locate sourced file $app"
Giving the path directly works:
source c:/tcl/lib/kit/snodbc.kit

The next line reads:
package require snodbc

Independly from how I deal with path to the kit file above, I always get a
warning 'Unknown package snodbc'. How does package resolving work in DLTK-Tcl? Seems to me, that especially binary packages are signalled that way.

2. The 'catch' command has the general form:
catch script ?resultVarName? ?optionsVarName?

However when I give both optional args, Eclipse puts a warning saying:
Optional argument(s)

3. In Tcl 8.5, there is a new expand operator '{*}', formerly known as
'{expand}', e.g.:
return -code error {*}$options $result

When I use this syntax, Eclipse puts an error, saying:
Extra characters after close-brace

The good message is, it doesn't prevent me from executing the code, so it is
just sort of misleading, because I know the code is right.
If someone may give a hint how to start in the DLTK framework, I may be able to
look for the errors by myself, however any help appreciated.

Regards Oliver
Re: Tcl: Syntax highlighting, package handling [message #646069 is a reply to message #636916] Tue, 21 December 2010 19:37 Go to previous message
Taylor Braun-Jones is currently offline Taylor Braun-JonesFriend
Messages: 2
Registered: December 2010
Junior Member
I also get the "Extra characters after close-brace" error for legitimate use of the Tcl expand operator. Any updates/advice on this issue?
Previous Topic:[SOLVED]: LabelProvider not working in exported plugin...
Next Topic:DLTK Python interpreter recognition problems
Goto Forum:

Current Time: Mon Apr 22 01:16:49 GMT 2024

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

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

Back to the top