darcs

Issue 188 Windows: darcs failing on files containing very long lines

Title Windows: darcs failing on files containing very long lines
Priority bug Status chatting
Superseder Nosy List beschmi, dagit, dmitry.kurochkin, droundy, edwint, eivuokko, kowey, markstos, simon, thorkilnaur, tommy, wglozer
Assigned To Topics Windows

Created on 2006-06-22.12:33:01 by edwint, last changed 2008-10-16.12:56:45 by kowey.

Files
File name Uploaded Type Edit Remove
longlines.hs kowey, 2008-05-14.15:57:43 text/x-haskell
Messages (mbox)
msg710 (view) Author: edwint Date: 2006-06-22.12:32:58
This happens in Windows, running darcs 1.0.8 in cmd.exe, but not when running
the same darcs binary from a cygwin shell, or in linux.

The file longline.txt is a 120KB text file with no line breaks.
C:\longline>darcs init
C:\longline>darcs add longline.txt
C:\longline>darcs record -A me
addfile ./longline.txt
Shall I record this change? (1/?)  [ynWsfqadjkc], or ? for help:
hunk ./longline.txt 1
-
+
darcs failed:  resource exhausted
C:\longline>
msg766 (view) Author: droundy Date: 2006-07-04.11:45:58
I guess the problem is that we're writing the very long line to the terminal,
and that causes trouble.  Perhaps (for windows only?) we should truncate lines
when writing to the terminal?

Can you tell me if

record -A me -a

works fine?
msg774 (view) Author: edwint Date: 2006-07-04.12:16:20
Yes, record -a works fine.
msg2947 (view) Author: markstos Date: 2008-01-31.03:35:50
Edwin,

Could you test with one of the Darcs2 pre-release binaries for Windows and see
if the experience is improved? They are available here:

http://wiki.darcs.net/index.html/DarcsTwo

  Mark
msg2984 (view) Author: droundy Date: 2008-01-31.16:33:28
I'd guess this problem is still there.  I think we need to find out what limit
cmd.exe places on length of lines printed.  Someone with windows ought to be
able to run a simple test.  Of course, it may depend on the variety of windows run.

David
msg3509 (view) Author: markstos Date: 2008-02-16.21:57:35
I found these references about long lines and cmd.exe, but they are both mainly
about how long the command line call can be, and how long the environment
variables can be (which I didn't think we used on Windows).

http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx
http://support.microsoft.com/kb/830473
msg4678 (view) Author: kowey Date: 2008-05-14.13:06:42
We could find out the dumb way with a little program to print out increasingly
long lines to screen...
msg4702 (view) Author: kowey Date: 2008-05-14.15:57:43
Edwin: do you think this Haskell program could give us any clues? Could you, or
somebody else on Windows tell us what happens when you run it?
msg4910 (view) Author: kowey Date: 2008-06-02.09:52:01
Well, I just got access to a Windows box... and the longlines.hs program
suceeeds.  Hmm...
msg6329 (view) Author: kowey Date: 2008-10-16.12:56:43
We still need to diagnose this bug, after my longlines.hs failed to confirm the
writing-long-lines-to-terminals hypothesis from David (of course, it could just
be that the test itself needs to be tweaked)

Browse related patches: unstable | stable

History
Date User Action Args
2006-06-22 12:33:01edwintcreate
2006-07-04 11:45:59droundysetstatus: unread -> chatting
nosy: droundy, tommy, edwint
messages: + msg766
2006-07-04 12:16:21edwintsetnosy: droundy, tommy, edwint
messages: + msg774
2006-07-13 18:23:19jchsettopic: + Windows
nosy: + eivuokko, wglozer
title: Darcs failing on files containing very long lines -> Windows: darcs failing on files containing very long lines
2008-01-31 03:35:51markstossetnosy: + kowey, markstos, beschmi
messages: + msg2947
2008-01-31 16:33:29droundysetnosy: droundy, tommy, beschmi, kowey, markstos, wglozer, eivuokko, edwint
messages: + msg2984
2008-02-16 21:57:36markstossetstatus: chatting -> deferred
nosy: droundy, tommy, beschmi, kowey, markstos, wglozer, eivuokko, edwint
messages: + msg3509
2008-05-14 13:06:43koweysetstatus: deferred -> in-progress
nosy: + dagit
messages: + msg4678
2008-05-14 15:57:45koweysetfiles: + longlines.hs
nosy: droundy, tommy, beschmi, kowey, markstos, wglozer, eivuokko, edwint, dagit
messages: + msg4702
assignedto: edwint
2008-06-02 09:52:03koweysetnosy: droundy, tommy, beschmi, kowey, markstos, wglozer, eivuokko, edwint, dagit
messages: + msg4910
2008-10-16 12:56:45koweysetstatus: in-progress -> chatting
nosy: + dmitry.kurochkin, simon, thorkilnaur
messages: + msg6329
assignedto: edwint ->