Sun WorkShop TeamWare 2.1 User's Guide

Fixing an Error

The following steps show how you can use the Building window and the text editor to quickly fix build errors:

  1. Click a highlighted error in the Build Output display pane.

    The editor window opens, displaying the source file containing the error. You do not have to search for the line containing the error--the error line is highlighted in the editor and the cursor is already positioned at the line. The error message is repeated in the footer of the text editor.

  2. In the text editor, make sure the source file can be edited.

    If the file is under SCCS control, check it out using the appropriate menu commands in the text editor:

    • In the vi editor, choose Version > Checkout.

    • In the XEmacs editor, choose Tools > VC > Check out File file.

    • In the GNU Emacs editor, choose Tools > Version Control > Check Out.

  3. Edit the source file containing the error.

  4. In the Building window, click the Next Error button in the tool bar (or use the keyboard shortcut F4) to go to the location of the next build error in the text editor.

    As you click Next Error, notice how each successive error in the build output is highlighted and how the corresponding source line in the text editor is also highlighted.

  5. Save the edited file.

    • In the vi editor, choose File > Save.

    • In the XEmacs editor, choose File > Save file.

    • In the GNU Emacs editor, choose Files > Save buffer.

  6. If the file is under SCCS control, check it in using the appropriate menu commands in the text editor:

    • In the vi editor, choose Version > Checkin.

    • In the XEmacs editor, choose Tools > VC > Check in File file.

    • In the GNU Emacs editor, choose Tools > Version Control > Check In.

  7. Click the Build button in the text editor's tool bar to rebuild.

    You can also build by clicking on the Build button in the Building window's tool bar or using the keyboard shortcut F3.

    You can watch the Build Output display pane to follow the progress of the build.