woops.
The compound needs to be upgraded so that it uses class names starting
with an uppercase letter.
I'll fix this.
The other compound sample in the demo directory has correct class names
and works fine.
The "fabulous error traceback dialog" is a creation of mine :-) However,
it doesn't always work well since it has to know all the different ways
errors are reported (Tcl is not very consistent in this), with ellipses
in the errorInfo not simplifying the job. Anyway, it was very helpful
for developing vTcl.
TkCon also has an error reporting dialog that seems to work better than
mine, and it also has a sourcing capability, which means you can see the
procedure causing trouble, fix it, and source it.
You can take a look at the lib/bgerror.tcl file and see if you can
isolate it. I would guess it shouldn't be too hard to use it outside
vTcl but you would have to get rid of syntax coloring or export the
syntax coloring code as well.
CG
Eric Taylor wrote:
> Using 1.6 I tried out the example user compound, and got this error:
>
> can't read "classes(frame,createCmd)": no such element in array
> while executing
> "append todo "$classes($class,createCmd) $name $replaced_opts; ""
> (procedure "vTcl:extract_compound" line 70)
> invoked from within
> "vTcl:extract_compound $name $name $cpd 0 $gmgr $gopt"
> (procedure "vTcl:insert_compound" line 7)
> invoked from within
> "vTcl:insert_compound $name $compound $gmgr $gopt"
> (procedure "vTcl:auto_place_compound" line 13)
> invoked from within
> "vTcl:auto_place_compound $compound $vTcl(w,def_mgr) {}"
> (procedure "vTcl:put_compound" line 7)
> invoked from within
> "vTcl:put_compound drawtool $vTcl(cmpd:drawtool)"
> (menu invoke)
>
> Any ideas?
>
> Also, where did that fabulous error traceback dialog come from.
> Can it be used in my own programs as well as vtcl?
>
> thanks
> eric
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user