The Errors pane displays the description, module, line and line position of any errors that occur during the compilation phase of running a .NET script. Highlighting an error in the Errors pane and clicking Go To (or, simply double-clicking the error) will open the relevant script component and place the cursor at the location of the error.
The Errors pane will automatically pop open if any errors occur when running the Script - Compile to DLL command.
|
|
Go To - Open the relevant script component and place the cursor at the location of the error. |
|
|
Show Module - Press in to show the module (script) names for each error. |
|
|
Show Line - Press in to show the line number for that error within the script. |
|
|
Show Line Position - Press in to show the position within the line for that error. Useful when there is more than one error on the same line. |
Example

Suppose we start with the default VB.NET script seen above, which has been named VB.NET Hello.

We introduce an error by changing the first Shared to Snared.

When we compile the script using Compile to DLL an error will be reported and the errors pane will pop open (if it is not yet open) as seen above. Note that the highlighted error text is repeated at greater length in the status text readout at the bottom of the pane.

Double clicking on one of the errors, for example, the top error as seen above, will highlight the error line in the script.

Double clicking the middle error will jump to that line. As is typically the case with errors in programming, one error can generate more than one report of syntax errors as the problem cascades through the text to be parsed.

In this case, double clicking on the first error reported and the 'End Sub' error helps us rapidly identify the mistake.
Error Codes
Error codes reported in the Errors pane are generated by the Microsoft .NET compiler for that language. The easiest way of looking up an error code is to visit the Microsoft MSDN library at http://msdn.microsoft.com/library or http://msdn.microsoft.com and to search for the error code. Regrettably, not all Microsoft .NET compiler error codes are documented in the MSDN site.
For example, a search on BC30188 will fail to turn up an error code while a search on CS1519 (a C# error code often triggered by insertion of an extra curly bracket) will turn up an error code page.
See Also