Povray SDL error indications

The PovClipse editor is able to perform some types of Povray SDL (Scene Description Language) syntax checks.

Unfortunately a complete SDL syntax check is nearly impossible to do, as the DSL is a grown language and not a designed one. There are many context sensitivity issues which can not be handles in an easy manner.

Anyway, PovClipse supports at least some kinds of checks:

  • Imported files
  • Keywords and named declarations / objects / macros
  • Macro comments

The following are examples of the supported checks:
Error indications
Hover on the red error or yellow warning symbol the get the detailed error / warning message.

The message of each error and warning indication is shown at the Problem view:
Error messages

Imported files

If an imported file can not be found the imported file name is marked using a red squiggled underline and the line is marked using an error indication.

The reason might be that you have misspelled the file name or the directory of the file is not included within the library path.

In the example shown above the error mark would be eliminated if the imported file name is corrected to "shapes.inc".

You can turn off this syntax check using the PovClipse preference page.

Keywords and named declarations / objects / macros

If a word is neither a Povray keyword, nor a declared variable / object or a macro name, the word is considered an unknown token and marked using a red squiggled underline and the line is marked using an error indication.

You've probably misspelled a keyword or decelerated variable.

You can turn off this syntax check using the PovClipse preference page.

Macro comments

As macro comments are used by the macro information hover a warning indication is displayed using a yellow squiggled underline and the line is marked using a warning indication.

In the example shown above the object "notDeclaredDeclaration" is declared neither in the actual file nor in an imported file.

You can turn off this syntax check using the PovClipse preference page.

MegaPOV mode

If there are keyword errors for MegaPOV keywords, the scene file was probably opened using the PovClipse editor in Povray mode.
Open the file in the MegaPOV mode in order to eliminate the error marks. Please see Invoking the editor for more information.


Hosted by SourceForge.net Logo