Page 1 of 1

Sometimes auto-reload fails

Posted: 09 Apr 2008, 13:38
by AJCGames
Hi !

A strange bug occuring since the last version (1.6.1).
Sometimes, when you auto-reload an extension file this message appears :

Code: Select all

Error in extension [ my_extension.as ]: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Function (Line number not available)
I have to restart the server to work on the file again...
It's not a configuration or a code problem, because it works the more often, and fails only sometimes (1 time out of 20, I'd say), and if you restart the server and upload exactly the same file, it'll work.

Do you know something about this annoying bug ?

Posted: 14 Apr 2008, 14:50
by Lapo
I have no idea... by looking at the error message it looks like there could be a wrong/strange character confusing the parser.

Anyways sometimes it also happen to me that when I am in the middle of editing a script file I get errors because I save in a moment were the code is incorrect.
On each save the server parses and compiles the script, so if there are errors left in the code they will generate exceptions.

Posted: 14 Apr 2008, 15:49
by AJCGames
What you describe happend before, but since 1.6.1 it's often ! I'm sure it's not an character or typping error, 'cause when I reboot the server, without uploading the file once again, it works... Very strange...