| < Prev | Back to Table of Contents | Next > |
The MIB Smithy Compiler Panel provides two tabs: Tasks and Log. Together, these tabs provide information from the parser and MIB validator to aide you in ensuring SMI compliance. To show or hide the Compiler Panel, select the View > Compiler Panel option from the main menu. The Compiler Panel can be resized using the grab bars above and to the left, which are visible if the Project, Workspace and/or Information Panels are also visible.

The Tasks tab lists details about any errors (
) and warnings
(
)
encountered during parsing or validation. All columns are sortable,
so MIB Smithy can help you you can work on tasks in the order that is
most comfortable to you. You may wish to address errors and warnings
one file at a time, focus only on errors, work on one record type at
a time, or choose to work on the most common errors first. Whether
the message arises during parsing or validation, you can double-click
on a message to open the appropriate record's properties or, for
parse errors, open the file in a text editor at the line where the
error occurred.
The error and warning messages displayed in the Tasks list take one of two forms depending on when the error occurs.
Errors and warnings that occur while parsing (loading) a file
include the file name, line number in which the error occurs, a
description of the error and the last token (parsed symbol) read by
the parser. For example, here the compiler has indicated an
unrecoverable parse error on line 80 of file
example.mib, and the token that was found at that point
was the "OBJECT" keyword, where it was expecting either a
left paren "(" character or the
"::=" (colon colon equals) character
sequence:
| File | Location | ! | Description | |
|---|---|---|---|---|
| example.mib | 80 | parse error, unexpected OBJECT, expecting "(" or "::=" | ||
| example.mib | 80 | last read token == 'OBJECT' |
All other errors and warnings that occur after load time (that is,
during the validation or compiling stage) give similar messages.
However, instead of a line number, these messages indicate the name
of the record exhibiting the error. For example, the following
message indicates a warning generated during validation. The
TEXTUAL-CONVENTION named ExampleTC in the module named
EXAMPLE-TC-MIB of file example2.mib has
been defined a base type of OCTET STRING but has not
been given a size (length) restriction.
| File | Location | ! | Description | |
|---|---|---|---|---|
| example.mib | ExampleTC | Type 'OCTET STRING' is a character string type and should have a size limit specified. |
Most errors that occur during load time, other than parse errors, are recoverable and sometimes automatically correctable. Recoverable errors are those that typically generate parse errors in other compilers, but that MIB Smithy has been designed to work around. Unrecoverable errors are those that MIB Smithy cannot unambiguously work around and must be corrected before the module can be loaded successfully.
The Log tab provides other progress and statistics information from the parser and compiler. Most messages printed to the Status Bar during MIB parsing and validation are logged to this tab so you can monitor progress or return to see what was done. Error and warning counts are also printed to this tab.
| < Prev | Back to Table of Contents | Next > |