Bug 328236 - apparent syntax errors, package handling
Summary: apparent syntax errors, package handling
Status: NEW
Alias: None
Product: DLTK
Classification: Technology
Component: Tcl (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: dltk.tcl-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-20 07:29 EDT by Oliver Bienert CLA
Modified: 2010-10-20 07:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Bienert CLA 2010-10-20 07:29:44 EDT
Build Identifier:  M20100909-0800

Hello,

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?

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

Reproducible: Always