Sometimes auto-reload fails

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
AJCGames
Posts: 40
Joined: 17 Sep 2007, 13:13

Sometimes auto-reload fails

Post 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 ?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
AJCGames
Posts: 40
Joined: 17 Sep 2007, 13:13

Post 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...
Post Reply