Compiler Check Tab

The Compiler Check tab is used to test compile the currently selected snippet. If no snippet is selected this tab displays no information. When a snippet is selected the tab displays a table of information about compilation results. The table columns are:

Click the Test Compile Snippet glyph Test Compile Snippet link in the option box to test compile the snippet with all available compilers. You can also initiate tests using the Database | Test Compile menu option or the Test Compile button Test Compile button. The results of the test compilation will then be displayed as described above. Any compilation that results in compiler warnings or errors will cause a link to be displayed that can be clicked to display the warnings or errors. Note: this option is not available if the snippet is freeform.

The LEDs used to indicate compiler results have the following meaning.

Green LED Compiled successfully.
Yellow LED Compiled with warnings.
Red LED Failed to compile.
Grey LED Not tested (database column) or compiler not available (test column).

If CodeSnip has not been configured to work with any compilers a message will be displayed to that effect and the Test Compile glyph Test Compile Snippet link will be not be displayed. Use the Configure Compilers dialog box to set up your compilers. This can be accessed from the Configure Compilers glyph Configure Compilers link that appears in the option box.

In order to test compile a snippet CodeSnip generates a Pascal unit containing the snippet along with any other snippets it depends on. The test unit can be displayed in a dialog box by using the Display Test Unit glyph Display Test Unit link.

Should the "Compiled with warnings" indicator appear for any Delphi compiler from Delphi 6 upwards you may be able to suppress the warnings by configuring CodeSnip's code generator to emit suitable compiler directives. Use the Code Generation tab of the Preferences dialog box (Tools | Preferences menu option) to do this.

See also: About Compiler Checks.