darcs

Issue 51 Darcs/Cygwin - Can't find editor on Cygwin

Title Darcs/Cygwin - Can't find editor on Cygwin
Priority not-our-bug Status resolved
Milestone Resolved in
Superseder Nosy List achambers, darcs-devel, dmitry.kurochkin, eivuokko, kowey, thorkilnaur, tommy, wglozer, zooko
Assigned To zooko
Topics Windows

Created on 2005-12-09.14:18:32 by achambers, last changed 2009-08-27.13:48:24 by admin.

Messages
msg186 (view) Author: achambers Date: 2005-12-09.14:18:32
Hi,

I'm testing out darcs on cygwin but I've come across a couple of
problems.  I think they're probably unrelated.

1) When recording a patch, darcs can't find the editor on my system
   I'm not sure why.  Here are some diagnostics.

$ echo $EDITOR
/usr/bin/vi
$
$ ls /usr/bin/vi
/usr/bin/vi    

...so then I tried,

$ darcs record
hunk ./README 1
+
+
Shall I record this patch? (1/?) [ynWsfqadjkc], or ? for help: y

What is the patch name? rev_2
Do you want to add a long comment? [yn] y

realdarcs.exe: vi: runProcess: does not exist (No such file or
directory)

A workaround is to use the --logfile option

2) Notice in the "Shall I record ..." above that it doesn't know
how many patches there are going to be.  On my Linux machine at
home this would say (1/1).
msg187 (view) Author: zooko Date: 2005-12-09.15:06:23
Please see this issue:

http://otherbugs.darcs.net//Ticket/Display.html?id=325

That web page contains an explanation of your current problem ("vi does not
exist") and how to work-around that and then a description of the next problem
that you will hit.

As for the "how many patches", in the newer versions of darcs you have to hit
"c" to get that information.
msg864 (view) Author: kowey Date: 2006-08-06.22:46:03
Hey Zooko, can you please have a look at this?
http://www.cygwin.com/ml/cygwin/2005-02/msg00257.html

If I understand correctly, the core issues is that darcs (being built with ghc)
is not Cygwin-aware.  However, if you export the PATH, Cygwin will take special
notice of it and translate it to the Windows environment equivalent, cygpathed
and all.  

Could you please add the export PATH line to the wrapper and report back?

[ It's still not-our-bug ;-) ]
msg1372 (view) Author: kowey Date: 2006-12-24.14:36:10
I can't reproduce this with Zooko's prepackaged 1.0.7 darcs.  Darcs
under Cygwin seems to find my text editor without any problems.

I am going to just resolve this; please reply if you have any
objections.
History
Date User Action Args
2005-12-09 14:18:32achamberscreate
2005-12-09 14:19:20droundysettopic: + Windows
nosy: + eivuokko, wglozer
2005-12-09 15:06:23zookosetstatus: unread -> unknown
nosy: + zooko
messages: + msg187
2005-12-17 22:00:42jchsetpriority: bug -> not-our-bug
nosy: droundy, tommy, wglozer, zooko, eivuokko, achambers
2006-08-06 22:46:07koweysetnosy: + kowey
messages: + msg864
2006-12-24 14:36:22koweysetstatus: unknown -> resolved
nosy: + beschmi
messages: + msg1372
2009-08-06 17:42:57adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, dagit, mornfall, simon, thorkilnaur, - droundy, wglozer, eivuokko, achambers
2009-08-06 20:39:57adminsetnosy: - beschmi
2009-08-10 22:07:32adminsetnosy: + wglozer, eivuokko, achambers, - markstos, darcs-devel, jast, dagit, Serware, mornfall
2009-08-25 17:56:16adminsetnosy: + darcs-devel, - simon
2009-08-27 13:48:24adminsetnosy: tommy, kowey, wglozer, darcs-devel, zooko, eivuokko, achambers, thorkilnaur, dmitry.kurochkin