Pelles C forum

Pelles C => Feature requests => Topic started by: TimoVJL on August 24, 2012, 06:48:48 PM

Title: Tools with empty argument
Post by: TimoVJL on August 24, 2012, 06:48:48 PM
Open program when tool have empty argument like $(FilePath) .
Title: Re: Tools with empty argument
Post by: Vortex on August 25, 2012, 10:55:27 AM
Hi timovjl,

Kindly, could you please give more details about the issue?
Title: Re: Tools with empty argument
Post by: TimoVJL on August 25, 2012, 11:33:38 AM
If i have Tool with Arguments: $(FilePath) and i try to use it when there is no documents open,
that tool doesn't open without document.
Test that for example with Notepad.exe
Title: Re: Tools with empty argument
Post by: CommonTater on September 02, 2012, 05:09:35 PM
If i have Tool with Arguments: $(FilePath) and i try to use it when there is no documents open,
that tool doesn't open without document.
Test that for example with Notepad.exe

Ahhh, I see the problem ...
 
In Tools->customize->Tools  adding a new tool fails if you don't use an explicit path because when poide is running the path is set only for pelles tools.
 
Similarly if you use an explicit path, but use $(filepath) in the command line arguments, the tool won't open if the IDE has no documents open at the time.
 
I agree, that's a bit of a problem... with no documents open $(filepath) should be a 0 length string.