Imagix 4D User Guide


Error Handling and Analyzer Messages

While the Imagix 4D analyzer does a full semantic parsing, just like a compiler, it is designed to be more forgiving than a normal compiler. This means your code doesn't have to be fully compilable in order to be analyzed.

The Imagix 4D analyzer has built-in error correction for language problems. These problems may result from incomplete or syntactically incorrect source code. However, even if the source code is compilable, problems may result from missing header files, incorrectly specified include directories, or errors in defining macros to use for evaluating preprocessor directives.

When the analyzer encounters a syntax or semantic problem in the source code it is analyzing, it invokes error correction rules in order to overcome the problem and continue the analysis. For more signification problems, these rules aren't sufficient, and the analyzer may need to skip several lines before becoming synchronized once again with the source code.

The analyzer returns error messages for these problems as they occur. The messages are displayed in the Analysis Results window. Settings in the window control what level of detail is displayed - just the source files being analyzed, any header files that can't be located, significant warnings, or all warnings.

To analyze what is causing a specific error, you can select the error (MOUSE [Left]) in the Analysis Results window, and then switch the window to displaying error analysis (Display > Investigate Error). This causes the Analysis Results window to display detailed information, derived from the database and source files, to help you determine what might be causing the analysis issue.