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

Post bugs related to the IDE here
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

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

Post 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.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

isn't TEMPFILE for things like that? (just an idea, i'm not really familiar with tools)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

#NULL is correct; %TEMPFILE is what you're after.
I may look like a mule, but I'm not a complete ass.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

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