Bug: Rebuild Exports
by Nathan Bowhay - ESAL · in Torsion · 08/04/2009 (11:19 am) · 20 replies
I keep getting this bug where rebuild exports finishes half way and doesn't pick up a bunch of stuff from engine code. I can sometimes get it to work by trying a series of things like recompiling and/or deleting the exports file and/or starting a new project and sometimes trying a combination of those things doesn't work. I know it my be hard to fix without sending you an exe, but our code is really proprietary. I may be able to talk to my boss and be able to send it, but if there is any way you could help with the bug without that would be much easier. I know you are busy working on T3D stuff, but I hope you can help cause it is driving me crazy.
I am kind of addressing Tom Spilman or anyone else at Sickhead who may be working on torsion issues, but if anyone else has any suggestions or ran into the same issue let me know.
In advance thank you so much for any help you can give, Torsion is an amazing tool and loosing functionality like auto-complete shows you how valuable it is and how much time it saves.
Thought it may be important to let you know I am using the latest version of Torsion (v1.1.392 Final) and T3D Beta 3 (will move to Beta 4 soon).
I am kind of addressing Tom Spilman or anyone else at Sickhead who may be working on torsion issues, but if anyone else has any suggestions or ran into the same issue let me know.
In advance thank you so much for any help you can give, Torsion is an amazing tool and loosing functionality like auto-complete shows you how valuable it is and how much time it saves.
Thought it may be important to let you know I am using the latest version of Torsion (v1.1.392 Final) and T3D Beta 3 (will move to Beta 4 soon).
#2
I will try and narrow down what exactly happens and make sure and check those two things you talked about.
08/19/2009 (2:48 pm)
No, I checked those two things already. The odd thing is it will build some items and not others so everything will look like it is rebuilt and then I will notice for some object none of the engine defined script methods are showing up and sometimes after I notice that I will rebuild again and it will be fine. It could be because there is an error in script when I rebuild though, not sure if that would cause issues (how separate the script defined methods are from the engine defined ones). I also notice if I have two configurations it can have issues, but I haven't tested the two configurations in a while, so I may have had the issue you described when that happened.I will try and narrow down what exactly happens and make sure and check those two things you talked about.
#3
I also have no errors in the compile process and the rebuild exports get to 50% and stops. All I did was add 2 more console methods to the guiMenuBar and they are don't have the same name as anything else for the menu bar.
I wish are exe could be given out so I could just give it to you to check it out :(
Note: There where no script errors listed when pre-Compiling either.
09/09/2009 (3:51 pm)
Ok so I just got the issue to pop up again. I tried doing a clean rebuild and that didn't fix it. I also made sure the exe wasn't running anyplace already.I also have no errors in the compile process and the rebuild exports get to 50% and stops. All I did was add 2 more console methods to the guiMenuBar and they are don't have the same name as anything else for the menu bar.
I wish are exe could be given out so I could just give it to you to check it out :(
Note: There where no script errors listed when pre-Compiling either.
#4
09/09/2009 (3:55 pm)
Oh wow so I closed torsion and deleted the .exports file then opened my torsion project again, it auto-rebuild the exports and trim was exported, it looks like most of the things where not sure if there are any missing, but it doesn't look like it, so maybe it is just an issue rebuilding if there is already and export file or something, hope that helps.
#5
If memory serves me it had to do with the exe defined in the project config.
The problem was that one of the exe's was defined as demo.exe with no path and torsion couldn't find it so it would only build just the classes part or the functions part (can't remember which one) and not build the other one.
To fix it simply make sure that all of your configurations have a properly defined path to the exe.
09/10/2009 (4:00 pm)
I ran into this a while back.If memory serves me it had to do with the exe defined in the project config.
The problem was that one of the exe's was defined as demo.exe with no path and torsion couldn't find it so it would only build just the classes part or the functions part (can't remember which one) and not build the other one.
To fix it simply make sure that all of your configurations have a properly defined path to the exe.
#6
09/14/2009 (1:33 pm)
Yeah they all are.
#7
09/16/2009 (3:59 am)
If you have more than one project setup then make sure you have build exports only checked for one of them.
#8
09/16/2009 (1:58 pm)
Oh ok so that was causing the issue a long time ago so I just removed one of them and it fixed it, but I am still getting the issue for different reasons.
#9
I changed these first couple of lines.
setLogMode(2);
cls();
to this
cls();
new ConsoleLogger( logger1,"Console.log", false );
setLogMode(6);
Hope this helps. :)
06/22/2010 (10:52 am)
Hey guys, I fixed the issue on my computer by changing the file Torsion_exports.txt in your in your Torsion file directory(wherever you installed torsion).I changed these first couple of lines.
setLogMode(2);
cls();
to this
cls();
new ConsoleLogger( logger1,"Console.log", false );
setLogMode(6);
Hope this helps. :)
#10
06/22/2010 (11:29 am)
This didn't appear to fix it for me. I tried a rebuild and only have one exe in my torsion project. I also deleted the .exports file before opening the project. Glad it worked for you. It is such an odd bug cause I will rebuild and sometimes objects like GuiTextEditCtrl won't show up as blue and other times it will but others won't. I really need to put together a build of torque which it happens to I could give to sickhead to test with or exact steps.
#11
I guess you could try changing
new ConsoleLogger( logger1,"Console.log", false );
to
new ConsoleLogger(logger1,"console.log",false);
so it will right to the same file.
06/22/2010 (11:55 am)
Odd, I thought for sure that this would fix it since this was the only solution that worked for me. I have noticed that normally when you use dumpConsoleFunctions() or dumpConsoleClasses() they don't appear to dump all of the available functions to the console.txt file. So that's why used I created the new ConsoleLogger object to write out all of the functions and classes. Sorry that this didn't work out for you. I guess you could try changing
new ConsoleLogger( logger1,"Console.log", false );
to
new ConsoleLogger(logger1,"console.log",false);
so it will right to the same file.
#12
06/22/2010 (12:05 pm)
So how does that work? The thing I am confused about is when I run torsion normally it doesn't generate this file. It just generates a .exports file which holds everything. Is that generated using the console.txt file, but it normally deletes it?
#13
06/22/2010 (12:12 pm)
Yes, I believe the .exports file is generated when it reads the Console.txt, but I don't think the console.txt file is deleted when it's finished. Console.txt is created by the engine when Torsion executes it.
#14
06/22/2010 (12:23 pm)
Hmm cause when it rebuilds exports the file isn't in the working directory.
#15
06/22/2010 (12:25 pm)
Really? Where does it put it? Or does it just delete it?
#16
THREED-951
06/22/2010 (2:42 pm)
I've seen this, it is a serious issue. It could be there is so much text the console log is getting reallocatted, not sure yet.THREED-951
#17
06/22/2010 (5:38 pm)
Oh wow so I guess i was being stupid and got the name wrong (console.txt) and it needed to be console.log LOL. So far so good, all the classes seem to be there. I will post if I notice anything not working. yeah the .log file
#18
Working on a Project with a lot of mission files.
Rebuild my .exe, and now it'll never finish rebuilding the exports.
Have I hit the maximum limit for torqueScript or something?
06/25/2010 (12:45 am)
I'm Having the same issue as well. Working on a Project with a lot of mission files.
Rebuild my .exe, and now it'll never finish rebuilding the exports.
Have I hit the maximum limit for torqueScript or something?
#19
06/30/2010 (2:22 pm)
I found an issue with dump functions and the formatting of your comments that could be causing the problem as well. I noticed it when using doxygen to generate script documentation and posted about it here: http://www.torquepowered.com/community/forums/viewthread/117287
#20
08/02/2010 (4:19 pm)
Fixed in 1.1 Beta 2
Associate James Ford
Sickhead Games
Could either of those be what is happening for you?