[Geany] vcdiff output on windows

Enrico Tröger enrico.troeger at xxxxx
Sun Feb 17 20:09:23 UTC 2008


On Sun, 17 Feb 2008 19:35:04 +0100, "Pierre Joye"
<pierre.php at gmail.com> wrote:

> Hi Enrico,
> 
> On Feb 17, 2008 6:55 PM, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> > On Sun, 17 Feb 2008 10:04:22 -0600, "Jeff Pohlmeyer"
> > <yetanothergeek at gmail.com> wrote:
> >
> > Hi,
> >
> > > Would it make sense to use a proc_open and store the output in a temp
> > > file (new tab) instead or to some custom output/handler? I can even
> > what is proc_open? Is this anything from the Windows API?
> >
> > > > It may work but it does not seem to use the "cmd" preference content
> > > > to call the cmd. Or can I set a cmd call specifically for vcdiff?
> > >
> > >
> > > oops, sorry - you're right, that won't work.
> > >
> > > Maybe you can try starting Geany with the -d option
> > > to see if the debug output shows you anything...
> > No, this won't help either.
> > The vcdiff plugin doesn't work on Windows, at the moment. This is
> > because some Windows binaries work different to others ;-).
> 
> Well, the diff itself works, I can see the diff output :)
In the opened console window, but not in Geany, right?

> > The whole story:
> > in the vcdiff plugin, we execute the svn command line binary using
> > g_spawn_sync() and then reading the commands stdout. This works for
> > some commands like gcc.exe and g++.exe. It works also with the grep.exe
> > and make.exe but only if you use the ones from the UnxUtils package.
> > grep.exe and mingw-make.exe from the Mingw package, doesn't work on
> > Windows with Geany. "Doesn't work" means, the commands are executed and
> > they return. But they don't send their stdout to g_spawn_sync(), instead
> > they send the output to the opening console prompt. I don't know a way
> > how to retrieve this output.
> > And this is also what happens when executing the svn command.
> 
> My experiences with the various posix compliant functions told me that
> windows is crap, nothing new :) The best way is to use the native
yes ;-).

> Will you be interested in a patch to store the output of the diff in a
> custom location? Ideally I would like to use a proc open-like system
> to fetch the output of the VC commands and store it somewhere (be the
> clipboard, a new tab or send it to a pastebin service for example). It
I would prefer the clipboard and then paste it into Geany. But in
general YES, I'm interested in such a patch. I don't know the Windows
API very well(read: almost none). This patch can later also be used in
the GeanyVC plugin which has the same problem and for the build-related
code in Geany itself.

> > The strange thing is that exactly the same code works for e.g. gcc.exe
> > (Mingw) and grep.exe, make.exe from the UnxUtils package.
> >
> > If anyone has an idea about this, please tell us.
> 
> I can take that as an yes to my question?
> 
> The next thing I was thinking about is to add a non portable
> implementation of the console for the window versions. However I have
What do you mean? We already got a console window for debugging output
(stdout, stderr) on Windows, it's only activated when Geany is started
with -d. But maybe I didn't understand you correctly.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080217/83636638/attachment.pgp>


More information about the Users mailing list