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
 
20.9.2014 - We have just updated our course layouts and descriptions and added our 2015 schedule.

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., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho