Vizard 8 » The Vizard IDE » Editing tools » Syntax error checking
8.0

Syntax error checking

The Vizard editor provides syntax error checking and will display a red squiggly line under Python code that is syntactically incorrect. Rather than tracking down a syntax error after the script is run, you can be notified immediately after typing in code or when saving the script.

Note: This will only check for Python syntax errors, and does not detect other types of errors that occur at runtime.

Example

The following examples demonstrate the syntax checking feature with some common errors:

 

Missing parenthesis:

Missing colon:

Indentation error:

Options

The Code Analysis tab of the Options window has the following syntax error checking options:

Status Icon

If syntax checking is enabled, the status bar will display one of the following icons representing the current status of the scripts syntax:

The script contains valid Python syntax.

The script contains a syntax error. Clicking the icon will move the cursor to the location of the error.

Script Tab

If the saved state of the script contains a syntax error, the script tab will turn red. The tab will remain red until the syntax error has been fixed and the script has been re-saved.