Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-2037

LSL syntax fetching for new keywords appears to be broken

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Unset
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      Steps to Reproduce

      1. Login to a Second Life Server 14.06.20.291351 region
      2. Create a new script, and paste the text below
        • PRIM_NAME PRIM_NORMAL PRIM_SPECULAR PRIM_ALPHA_MODE PRIM_ALPHA_MODE_NONE PRIM_ALPHA_MODE_BLEND PRIM_ALPHA_MODE_MASK PRIM_ALPHA_MODE_EMISSIVE
      3. Observe the text color of each word in the script
      4. Hover your mouse over every word, and observe if there is an appropriate-looking tooltip for the word

      Actual Behavior

      I see the following:

      • PRIM_NAME is correctly highlighted in teal, and has a tooltip with basic info (type: integer, value: 18)
      • The other keywords appear black (default for text) and do not have tooltips
      • There is no mention in the viewer log of the viewer attempting to fetch the LSL keywords from the sim
      • There is no keywords_lsl_*xml file in my viewer's cache folder ( ~/Library/Caches/SecondLife/ on mac)
        • apparently the definition was never fetched

      Expected Behavior

      All of the keywords should be highlighted in teal (or whatever is the current color for integer constants), and each should have a tooltip which makes sense.

      Information about 'new' keywords comes from the LSLSyntax capability from the simulator. Earlier builds of this viewer correctly highlighted PRIM_NORMAL and friends, when connected to the right simulator.

      Other information

      The 'Second Life 3.7.11 (291465) Jun 25 2014 06:54:17 (Second Life Release)' viewer contains support for STORM-1831, which is the ability to fetch an LSL syntax file from the simulator for up-to-date syntax highlighting of keywords. This ability does not appear to work, however. New LSL keyworks such as PRIM_NORMAL, PRIM_SPECULAR, and PRIM_ALPHA_MODE (present in Second Life Server 14.06.20.291351's keyword file) are not highlighted as integer constants.

      The new keywords are definitely present in the xml found in the LSLSyntax cap from the sim; curling this cap, I see that PRIM_NORMAL is well-formed, for example:

      $ curl -sk https://sim10560.agni.lindenlab.com:12043/cap/c7fd89f6-37a4-1a13-3b14-11cd29771d44 | grep -C9 --color=always PRIM_NORMAL
               <key>PRIM_NAME</key>
               <map>
                  <key>type</key>
                  <string>integer</string>
                  <key>value</key>
                  <integer>27</integer>
                  <key>tooltip</key>
                  <string/>
               </map>
               <key>PRIM_NORMAL</key>
               <map>
                  <key>type</key>
                  <string>integer</string>
                  <key>value</key>
                  <integer>37</integer>
                  <key>tooltip</key>
                  <string>Prim parameter for materials using integer face, string texture, vector repeats, vector offsets, float rotation_in_radians</string>
               </map>
               <key>PRIM_OMEGA</key>
      

      xmllint is happy with the output too, so I don't see why it's not being fetched and parsed by the viewer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                maestro.linden Maestro Linden
                Contributor:
                Cinder Roxley
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: