Page 1 of 1

AStyle

Posted: Mon Jul 08, 2019 10:20 am
by MSpagni
I need to use Artistic Style as a plugin in order not to become mad comparing some source files that were reformatted. :roll:
I set up a plugin with astyle.exe and "< $INPUTFILEPATH" as argument.

Used alone, "astyle.exe < foo.c" works perfectly and puts its output on the stdout.
When used inside EDP with the above argument I get an empty file (stdout) and on stderr:
No file to process <
Artistic Style has terminated
I solved the problem using the alternative syntax "--stdin=$INPUTFILEPATH", but why the previous argument didn't work?

Re: AStyle

Posted: Mon Jul 08, 2019 10:26 am
by psguru
I solved the problem using the alternative syntax "--stdin=$INPUTFILEPATH", but why the previous argument didn't work?
Because EDP does not support this syntax, which typically is not an issue since most command line tools dealing with files would accept file path.

Re: AStyle

Posted: Mon Jul 08, 2019 11:08 am
by MSpagni
So I had no hope trying. :!:
Well, luckily now we have the (relatively) new syntax that works.
And it's available for XP too. :wink:
Thank you.