aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Warnings--onefang2019-06-041-1/+1
|
* Dump OpenSim 0.9.0.1 into it's own branch.onefang2019-05-1911-1321/+1265
|
* Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel2016-11-0310-9684/+13243
|
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-242-2/+2
| | | | automatically turns off any logging enabled between tests
* Added AssemblyInfos to every dll in the OpenSim.Region namespace.Diva Canto2012-11-141-0/+33
|
* Add a reference to OpenMetaverseType.dll to compiled script assemblies.Melanie2012-08-181-0/+2
|
* Adds support to ScriptModuleComms for region modules to exportMic Bowman2012-07-311-2/+37
| | | | constants to the script engine.
* Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)2012-07-111-5/+3
| | | | | | | constructing fresh copies. The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
* Revert "Bind ~ and ! operators in LSL tighter in order to resolve issues in ↵Justin Clark-Casey (justincc)2012-06-111-3956/+3978
| | | | | | | | LSL where these aren't evaluated propertly." This reverts commit a8a9d13dc07bc9e23ebf439cbea5ece6ae002315. Accidentally committed, this patch might not be the correct approach.
* Bind ~ and ! operators in LSL tighter in order to resolve issues in LSL ↵Justin Clark-Casey (justincc)2012-06-091-3978/+3956
| | | | | | where these aren't evaluated propertly. Addresses http://opensimulator.org/mantis/view.php?id=3268
* Protect the scriptmodulecomms interface.Mic Bowman2012-03-151-1/+4
|
* Adds a new script command 'modInvoke' to invoke registered functionsMic Bowman2012-03-152-3/+30
| | | | | | | | | from region modules. The LSL translator is extended to generate the modInvoke format of commands for directly inlined function calls. A region module can register a function Test() with the name "Test". LSL code can call that function as "Test()". The compiler will translate that invocation into modInvoke("Test", ...)
* Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop()Justin Clark-Casey (justincc)2012-03-061-8/+14
| | | | | | | They were all failing assertions but the exceptions these threw were caught as expected Exceptions. I don't think we can easily distinguish these from the Exceptions that we're expecting. So for now we'll do some messy manually checking with boolean setting instead. This patch also corrects the assertions themselves.
* Get all test methods in OpenSim.Region.ScriptEngine.Tests.dll to report that ↵Justin Clark-Casey (justincc)2012-03-062-1/+101
| | | | they're running
* Fix off by one error in script error reporting.Justin Clark-Casey (justincc)2012-03-061-1/+1
|
* Add a regression test to compile and start a script. Remove ↵Justin Clark-Casey (justincc)2012-02-072-3/+13
| | | | | | | | Path.GetDirectoryName when getting assembly loading path in Compiler.CompileFromDotNetText(). The Path.GetDirectoryName call in Compiler.CompileFromDotNetText is unnecessary since AppDomain.CurrentDomain.BaseDirectory is always a directory. Later path concatenation is already done by Path.Combine() which handles any trailing slash. Removing Path.GetDirectoryName() will not affect the runtime but allows NUnit to work since it doesn't add a trailing slash to AppDomain.CurrentDomain.BaseDirectory.
* Optionally, don't delete previously compiled scripts on startupOren Hurvitz2011-06-241-5/+14
|
* Add configurable path to script engine assembliesBlueWall2010-09-261-2/+3
| | | | | | | | | Adding ability to place script engine assemblies outside the codebase directories. Uses new [XEngine] option: ScriptEnginesPath = "path_to_assemblies" Signed-off-by: Melanie <melanie@t-data.com>
* Comment and remove JScript support. Mono 2.7Dev and 2.8 no longer include theMelanie2010-06-011-19/+19
| | | | needed libraries
* Compiler.cs contained method GetCompilerOutput which, apparently,unknown2010-04-281-4/+7
| | | | | | | was not used, but exactly the same path was calculated inline. This patch does some minor refactoring by replacing inline path calculation with GetCompilerOutput. This doesn't actually affect anything, just minor prettifying of the code
* FINALLY! Script compile errors now appear in the script error pane,Melanie2009-12-223-4/+4
| | | | not in a funky debug window.
* Fix http://opensimulator.org/mantis/view.php?id=3874 - parenthesis in for ↵Justin Clark-Casey (justincc)2009-11-201-1/+19
| | | | | | | | | | statements cause script compile failures This fixes a problem in OpenSim where statements of the form for ((i = 0); (i < 10); (++i)) { ... } do not compile even though they are valid lsl.
* * Misc. formatting cleanup for the previous patchJohn Hurliman2009-10-291-25/+26
| | | | * Added the new AppDomainLoading variable to the [XEngine] section in the example config
* OptimizationsDan Lake2009-10-291-84/+72
|
* Add copyright header. Formatting cleanup.Jeff Ames2009-09-291-28/+22
|
* Added delay loop to give a newly created assembly time to appear. OnAlan M Webb2009-09-231-32/+71
| | | | | | | | | | | | | | Linux (as an example), it is possible for the existence check to fail because the file is not yet recognized by the file system. Although the loop has a 250mS delay, in practise, the existence test in the for loop is successful and no delay is introduced. Next, this takes care of the two, unpredictable, situations where a script fails to compile. The first is caused by an occasional SEGV in the underlying mono VM while mcs is running, the second is caused by file system latency. Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
* Change the return value if the compiler to "object" to allow compilersMelanie2009-08-311-2/+2
| | | | to return dynamic method objects
* Publish a method on ICompiler to generate the CIL assembly pathMelanie Thielker2009-06-211-0/+7
| | | | | | Cause group deeding to apply next owner perms
* Formatting cleanup.Jeff Ames2009-06-103-8/+8
|
* Formatting cleanup. Ignore some generated files.Jeff Ames2009-06-092-10/+10
|
* Skip lone ident statments or for-loop assignmentsMike Mazur2009-06-072-3/+65
| | | | | | | | | | | | | | | | | SL's LSL supports lone idents: integer x; x; as well as lone idents in for-loop assignments: for (x; x < 10; x++) { ... } while those are errors in C# (MONO at least). This patch skips lone idents in such places. Fixes Mantis #3042.
* Allow empty assignment in for-loopMike Mazur2009-06-075-7513/+7733
| | | | | | | | | | | | For loops with no assignment are no longer syntax errors. For example, this is now valid: for ( ; i < 10; i++) { ... } Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs. Fixes Mantis #2501. Fixes Mantis #2884.
* Thank you, thomax, for a patch to provide finer-grained access control toMelanie Thielker2009-06-051-1/+9
| | | | | | | scripting. Fixes Mantis #2862
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-018-8/+8
| | | | LICENSE.txt.
* cleaning out warnings.Dr Scofield2009-05-221-1/+0
| | | | | | NOTE: we currently have a gazillion warnings caused stuff flagged as "obsolete" (OGS1 stuff) --- what's up with that?
* Make the LSL HTTP server create and give out URLs to scriptsMelanie Thielker2009-05-132-14026/+14346
|
* Add events to IScriptEngine to notify scripting modules of the removalMelanie Thielker2009-04-101-2/+5
| | | | | | | | | of objects from the scene, and of scripts from objects. This facilitates the development of modules that can register prims with externall servers for inbound email and XMLRPC. Currently implemented in XEngine only. Also applying cmickeyb's compiler locking patch, since it seems risk-free.
* Fix a nullref when compiling non-LSL scriptsMelanie Thielker2009-04-021-5/+8
|
* * minor: remove one mono compiler warningJustin Clarke Casey2009-03-271-1/+1
|
* Read the .map files in on sim startup. Also clean them up when an assemblyMelanie Thielker2009-03-261-1/+29
| | | | | | is deleted.
* Avoid preprocessing scripts on region restart just to generate the lineMelanie Thielker2009-03-261-11/+23
| | | | | | | | number map. Instead, write the map to a file for later use. That is not yet used, so currently runtime errors after a sim restart will have wrong line numbers
* cleanupDr Scofield2009-03-251-1/+0
|
* Thank you, dslake, for a patch that speeds up the Delete Old Files optionMelanie Thielker2009-03-241-13/+19
| | | | | | | in the compiler. Committed with changes. Fixes Mantis #3325
* * Make all coded defaults match settings in OpenSim.ini.exampleJustin Clarke Casey2009-03-111-2/+1
| | | | | | | * In most cases, the setting in OpenSim.ini.example is taken as the canonical one since this is the file virtually everyone ends up using * OpenSim will start up with a blank OpenSim.ini, in which case sqlite is the default database (as before)
* Remove chained tests in BasicGridTest.cs.Mike Mazur2009-03-111-1/+1
| | | | | | | | | | It's good practice to isolate unit tests so their outcome (pass/fail) does not depend on whether another test has been run/passed/failed. A method is used to populate the DB independently for each test, and a TearDown method cleans up the database after each test. Also adding extra comment in C-style comment test.
* * minor: Remove most mono compiler warningsJustin Clarke Casey2009-02-251-1/+1
|
* Allow /* C-style comments */ in LSL scripts.Mike Mazur2009-02-252-17501/+17655
| | | | | | This fixes Mantis #3199. opensim-libs SVN r87 contains the corresponding changes.
* Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke2009-02-252-0/+2
| | | | | Deals with the multiple warning side affect introduced earlier.
* Update svn properties, add copyright headers, minor formatting cleanup.Jeff Ames2009-02-231-1/+1
|
* Mantis#3187. Thank you kindly, DoranZemlja for a patch that:Charles Krinke2009-02-233-0/+99
| | | | | | | Adds a warning for an LSL construct that exploits a popular list memory saving hack.