Jump to content
You are about to reply to a thread that has been inactive for 100 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

Five years ago there was this thread

which, if nothing else, is amusing for how miserable this forum was five years ago.

Less amusing: Now I'm getting "Internal server compile error" on a script, an error I don't recall getting before, and only if I have the "Mono" checkbox set.

Taking "internal server" at face value, this is on Second Life Server 2024-07-22.10048683488 which is the now standard Combat 2.0 server. I'm wondering if there could be some LuaU stuff happening behind the scenes, in which case maybe others would likely be encountering this error, too.

Yes, it's almost always something dumb in the script, and given that this is just a sketch of a refactoring of what was an incomplete first draft script, it's mostly "dumb", but the fact it compiles without Mono checked makes me think it might not be only how dumb the script is.

I guess my question is: anybody else seeing this? If not, I'll need to somehow step-wise de-dumb the script until it works, and/or I have some code that still breaks but isn't quite so big and convoluted, to report here and on Canny.

 

  • Thanks 1
Posted

It could be a Mono issue due to a very specific code usage..most of those I've seen are at runtime not compile-time however.

I bet you can find it without too much headache by commenting out large sections of code.

I'm mostly "configuring" these days..will try compiling a big one later and report back. I hope it's nothing to do with the Lua project.

  • Like 1
Posted

The Mono compiler gets an internal error if the code creates a list containing a void function call. Obviously no script wants a list containing a void function call, but it's a little ungraceful of the compiler to just croak with an internal error. Not sure it's better of the non-Mono compiler to just merrily pretend all is well and do something inscrutable at runtime.

Here's a simple example, with two different void-valued functions:

default
{
    state_entry()
    {
        list foo = [ llMessageLinked(LINK_THIS, 0, "", NULL_KEY) ];
        list bar = [ llDialog(NULL_KEY, "message", ["label"], 0) ];
        llOwnerSay("foo = |"+llDumpList2String(foo, "+")+"|");
        llOwnerSay("bar = |"+llDumpList2String(bar, "+")+"|");
    }
}

I don't know if I should make a Canny report for an unhelpful error message, or just chalk it up to penance for abusing the compiler to find my editing errors.

  • Thanks 1
Posted (edited)

Peeve: We have no "VOID" type..

..and yet Functions that do not return a value cannot be used as if they return a value..

..and also the return value can be ignored for Functions that DO return a value..

In the Parser I've been working on, the "function does not return a value" use-case is treated as if "Type 0" is returned, and "Type 0" is not actually defined so results in a parser error similar to "type mismatch".

 

Edited by Love Zhaoying
  • Like 1
Posted
2 hours ago, Qie Niangao said:

I don't know if I should make a Canny report for an unhelpful error message

I say if you've come this far, might as well finish the job.

  • Thanks 2
Posted
2 hours ago, Quistess Alpha said:
4 hours ago, Qie Niangao said:

I don't know if I should make a Canny report for an unhelpful error message

I say if you've come this far, might as well finish the job.

Agreed. If nothing else, Lua will handle it differently (causing even more divergence, and spawning multiple timelines and realities).

  • Like 1
Posted
3 hours ago, Love Zhaoying said:

Agreed. If nothing else, Lua will handle it differently (causing even more divergence, and spawning multiple timelines and realities).

Here's hoping none of them involve anything called Kelvin. ;)

  • Thanks 1
You are about to reply to a thread that has been inactive for 100 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...