Page 1 of 1

Files not being passed to tool until source is saved to disk

Posted: Fri Mar 07, 2008 5:14 am
by Mistrel
I have a tool that runs "Before Compile/Run" and has the files %COMPILEFILE, %FILE, and %EXECUTABLE passed to it. The problem I'm experiencing is that this tool only receives these values if the source has been saved to disk before compiling. Otherwise these values are blank.

What this means is that the tool will fail if a user copy/pastes some code into a new file and runs it without saving it first.

Posted: Fri Mar 07, 2008 12:10 pm
by #NULL
isn't TEMPFILE for things like that? (just an idea, i'm not really familiar with tools)

Posted: Fri Mar 07, 2008 3:09 pm
by srod
#NULL is correct; %TEMPFILE is what you're after.

Posted: Sat Mar 08, 2008 5:48 am
by Mistrel
In this case %COMPILEFILE is the only expected value. I should get at least this. %TEMPFILE is not acceptable because changes made to it are not sent to the compiler.