AStyle

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

AStyle

Post 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?
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: AStyle

Post 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.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: AStyle

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