Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-1831 Obtain LSL syntax table from simulator so that it is always up to date
  3. STORM-2003

Erroneous appearance of 'void' in tooltips for LSL functions which either take no arguments or return nothing.

    Details

    • Type: Story Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Active
    • Labels:
      None
    • Environment:

      Description

      In the LSL syntax viewer, the 'void' string appears for functions which either take no arguments or return nothing. This is a problem since 'void' is not a valid keyword in LSL, and will cause syntax errors if you follow the tooltip. For example, this script will fail with a syntax error:

      default
      {
          state_entry()
          {
              void llSetScale(<1,1,1>);
              vector foo = llGetScale( void );
          }
      }

      Repro:

      1. Open the script editor
      2. Paste 'llSetScale' and 'llGetScale' into the editor
      3. Note the tooltip for each function

      Expected results:

      • llGetScale's tooltip should have "vector llGetScale();" for the first line
      • llSetScale's tooltip should have "llSetScale(vector Scale);" for the first line

      Actual results:
      Expected results:

      • llGetScale's tooltip has "vector llGetScale( void );" for the first line
      • llSetScale's tooltip has "void llSetScale(vector Scale);" for the first line

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maestro.linden Maestro Linden
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: