Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Debug problem

Posted by skumar003 (skumar003), 12 February 2003
I am facing an error which says" extra charcters after close brace" and visually i cannot figure out anything wrong with the code.

How can debug this further and pinpoint the error.?

Posted by admin (Graham Ellis), 12 February 2003
Could be that you have some sort of control characters on the end of your command that you shouldn't have - that can cause this message.    If you're on a unix or linux box, call up the file in vi and
:set list
which will display all wierd characters using visible multi-letter sequences.   The od utility is an alternative.

The other possibility is that you have a } character followed straight away by something other than a space - remember that in Tcl, the space charaacter separates parameters and so
set  {fred}  {19}
is NOT going to be that same as
set   {fred}{19}
(note tha different spacing here

Posted by skumar003 (skumar003), 12 February 2003
I have pasted the exact code snippet heer , please see if U can find anything weird
---------------------------

if { $command == "P_ADD" } then {

           for {set nn [expr $tab_tot_lines - 1]} {$nn >= $log_line} {incr nn -1} {

                 set step_number_indicator_log([expr $nn + 1]) $step_number_indicator_log($nn)
                 set step_description_log([expr $nn + 1]) $step_description_log($nn)
                 set repeat_count_log([expr $nn + 1]) $repeat_count_log($nn)
                 set line_enable_log([expr $nn + 1]) $line_enable_log($nn)
                 set script_name_log([expr $nn + 1])      $script_name_log($nn)
--------------------------------------------

Posted by admin (Graham Ellis), 12 February 2003
I create some variables so that I could get into the code, the ran your pasted code.   No problem ... it ran.

Did you try od or vi to look for odd characters?   If so, did it come up clean?   Cutting / pasting into the forum may well have removed the special character(s) that are possible causing the problem.

If you don't have any tool that can look at your program in the way I'm suggesting, take a copy of the Tcl program and retype the line that's causing the problem - hopefully the problem will go away.

Posted by skumar003 (skumar003), 12 February 2003
I will retype and see one more time.

Cheers,




This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho