NO

Author Topic: Tools with empty argument  (Read 2137 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1822
Tools with empty argument
« on: August 24, 2012, 06:48:48 pm »
Open program when tool have empty argument like $(FilePath) .
May the source be with you

Offline Vortex

  • Member
  • *
  • Posts: 517
    • http://www.vortex.masmcode.com
Re: Tools with empty argument
« Reply #1 on: August 25, 2012, 10:55:27 am »
Hi timovjl,

Kindly, could you please give more details about the issue?
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1822
Re: Tools with empty argument
« Reply #2 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
May the source be with you

CommonTater

  • Guest
Re: Tools with empty argument
« Reply #3 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.
 
 
« Last Edit: September 02, 2012, 05:15:04 pm by CommonTater »