Trouble Logo Troubleshooting Tycho

Other sources of information:

  • Tycho Help System Overview
  • Tycho 0.1.1 Release Notes
  • Tycho Bugs
  • Tycho Frequently Asked Questions (FAQ)
  • Tcl and Itcl Internet Resources
  • Below is a list of common problems that people have with Tycho.

    Problems Starting Tycho

    Itcl Versions

    Note that Tycho0.1.1 will not work with Itcl2.0, you must have Itcl2.1 or Itcl2.2. (Itcl2.0 was shipped with Ptolemy0.6)

    Error Message about "error while autoloading tk_setPalette"

    If you see a message like:
    error while autoloading "tk_setPalette": bad option "join": should be
    atime, dirname, executable, exists, extension, isdirectory,
    isfile, lstat, mtime, owned, readable, readlink, root, size,
    stat, tail, type, or writable
    	
        invoked from within
    "tk_setPalette activeBackground #e6ceb1 activeForeground black \
    background #ffe4c4 disabledForeground #b0b0b0 foreground black \
    highlightBackground ..."
    
    then you are probably running Itcl2.0, but the tclIndex files were prepared with Itcl2.1 or later. Tycho0.1.1 will not work with Itcl2.0, you must upgrade to Itcl2.1 or later. See the Installation guide for more information.

    file join error message

    If you are starting up Tycho0.1.1 or later and you see a message about
     bad option "join": should be atime, dirname, executable, 
        exists, extension, isdirectory, isfile, lstat, mtime, owned, readable, 
        readlink, root, size, stat, tail, type, or writable
            while executing
        "file join $tycho kernel"
            invoked from within
    
    then the problem is that you are running an itcl2.0 itkwish, and Tycho0.1.1 requires itcl2.1, which includes the tcl7.5 file join command. The way to tell is to start itkwish by hand and type
    set itcl::version
    
    you should get back 2.0 if you are running itcl2.0 and 2.1 if you are running itcl2.1.

    Problems creating indexes

    The steps to follow if the indexes start failing on you:
    1. Do
      cd $TYCHO
      make realclean
      make install
      
      
      make realclean removes the tclIndex files and doc/codeDoc/*.
      make install creates the tclIndex files and recreates the doc/codeDoc/*. The doc/codeDoc/* files get created once by tydoc, then $TYCHO/lib/idx/codeDoc.idx gets created, then the tydoc files get recreated so that they can use $TYCHO/lib/idx/codeDoc.idx.
    2. If that does not work, and you are using a private tree that has links to a master Tycho tree, destroy your private tree and use tylndir to create a new one. tylndir is documented in $TYCHO/doc/coding/directories.html

    Debugging hints

    You can start Tycho by hand by starting up itkwish and then sourcing $TYCHO/kernel/Tycho.tcl.

    If the tcl variable tyDebug is set to 1, then Tycho.tcl will print out status messages as it starts up. Also, if tyDebug is set to 1, then tycho will not automatically exit if there is an error.

    The example below shows how it is possible to start up tycho from itkwish

    cxh@watson 357% setenv TYCHO ~/pt/tycho
    cxh@watson 358% cd $TYCHO/kernel
    cxh@watson 359% itkwish
    % set tyDebug 1
    1
    % source Tycho.tcl
    TYCHO=/users/cxh/pt/tycho
    Set auto_path
    About to source FontManager.itcl
    Sourced ErrorMessage.itcl
    Handled preferences
    Processed argv
    About to create a TclConsole
    % exit
    cxh@watson 360% 
    

    Up to: Tycho Introduction - Previous: Installation - Tycho Home Page


    Copyright © 1996, The Regents of the University of California. All rights reserved.
    Last updated: 96/12/17
    comments to: tycho@eecs.berkeley.edu