Recompile failed for script in the function execfile

barry.marcus
Posts: 288
Joined: Thu Nov 16, 2006 1:05 pm

Recompile failed for script in the function execfile

Post by barry.marcus »

I have a large Vortex app that involves a number of files. The file containing the main routine references these through <uses> statements. Whenever I make a change to one of the files referenced by the "main" file and force a recompile (by deleting the .vtx file and reloading the app, I always get the following error:

000 <path/app>: Internal error: Recompile failed for script in the function execfile

It can a very very long time (sometimes an hour or more) until I no longer get this error? I know I must be doing something wrong, because nothing is syntactically wrong anywhere and, in fact, the code eventually WILL COMPILE!

What am I doing wrong? What does this error mean? I can't seem to find an explanation in the documentation. Thanks.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Recompile failed for script in the function execfile

Post by Kai »

The error means that the Vortex compiler tried several times to compile the script and failed. Were there any other messages printed or in vortex.log? Do the <uses> statements refer to in-library modules (e.g. <uses bob>) or to separate files (e.g. <uses bob=/mymodules/bob>)?
barry.marcus
Posts: 288
Joined: Thu Nov 16, 2006 1:05 pm

Recompile failed for script in the function execfile

Post by barry.marcus »

I think I figured out what was going on here... (Well, truth be told, I don't really know why but the change I made seems to have resolved the issue.) Both the system clock and the hardware clock on the server were incorrect. The system clock on the server was off by nearly an hour from the clock on the development machine. Since correcting that the compile delay issue has not shown up at all! But I don't know... This may be a red herring! Does the compiler check timestamps on files as part of the compilation?
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Recompile failed for script in the function execfile

Post by John »

Yes, the system checks if the compiled version (.vtx) has an older timestamp than the source, if so it recompiles.
John Turnbull
Thunderstone Software