• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-2773
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Babbage Linden
Reporter: Gellan Glenelg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono Beta: Script editor "Save" does not save scripts containing syntax errors

Created: 08/Aug/08 06:00 PM   Updated: 15/Aug/08 02:22 PM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: 1.24 Server

Environment:
Second Life 1.20.15 (93532) Aug 1 2008 15:59:25 (Second Life Release)

You are at 255754.3, 255323.5, 21.4 in Sandbox Cordova MONO located at sim3006.aditi.lindenlab.com (8.2.33.232:13000)
Second Life Beta Server 1.24.0.93856

CPU: Intel Core 2 Series Processor (2327 MHz)
Memory: 2048 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: Quadro FX 1500M/PCI/SSE2
OpenGL Version: 2.1.1
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.17210 (Mozilla GRE version 1.8.1.11_0000000000)
Packets Lost: 2/109264 (0.0%)
Issue Links:
Relates
 

Linden Lab Issue ID: DEV-19142
Linden Lab Internal Branch: release


 Description  « Hide
Scripts (in prims) containing syntax errors cannot be saved. This is a change in behaviour from 1.23.4.93100

Case 1 - closing script editor after using "Save":

  • Add a default script to a prim
  • Modify the script so that it contains a syntax error
    For Example:

default
{
state_entry()

{ llSay(0, "Hello, Avatar!"); xxxxxxxxxxxxxxxxxxxxxxxxx }

touch_start(integer total_number)

{ llSay(0, "Touched."); }

}

  • Press Save
  • Observe: "ERROR: Syntax error" [as expected]
  • Close the script editor window using the top-right X
  • Re-open the script
  • Observe: The script is no longer running [as expected]
  • Observe: The script no longer contains the syntax error (xxxxxxxxxxxxx if you used the above example)
    = Expected: The modified script should have been saved

---------------------------------------------

Case 2 - closing script editor without pressing "Save", then choosing "Save" from pop-up:

  • Add a default script to a prim
  • Modify the script so that it contains a syntax error
  • Attempt to close the script editor using the top-right X
  • Observe: "Save Changes?" pop-up, with Save / Don't Save / Cancel options [as expected]
  • Choose "Save"
  • Re-open the script
  • Observe: The script is no longer running [as expected]
  • Observe: The script no longer contains the syntax error (xxxxxxxxxxxxx if you used the above example)
    = Expected: The modified script should have been saved

------------------

NOTE: Scripts in inventory (not in a prim) appear to save correctly even if they contain a syntax errors.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gellan Glenelg added a comment - 13/Aug/08 02:37 PM
Second Life Beta Server 1.24.0.94231:
Script containing a syntax error is now saved; the "Running" box is unchecked, but
the "Mono" box is also unchecked.
Is this intentional?

Milo Linden added a comment - 15/Aug/08 08:02 AM
Hi,

Yes this is intentional, as the script was saved, but failed to compile any bytecode the mono checkbox will become disabled too, when opening a script the mono checkbox only shows as ticked when there is a mono script running