darcs

Issue 1841 2.4.3 - Windows - push - openBinaryFile: does not exist

Title 2.4.3 - Windows - push - openBinaryFile: does not exist
Priority bug Status resolved
Milestone 2.4.x Resolved in 2.4.x
Superseder Nosy List dmitry.kurochkin, eivuokko, jaredj, jeremy, kirby, kowey, wglozer
Assigned To
Topics Regression, SSH, Windows

Created on 2010-05-10.19:44:26 by jeremy, last changed 2010-06-16.14:38:03 by kowey.

Messages
msg11038 (view) Author: jeremy Date: 2010-05-10.19:44:25
I installed GHC Haskell Platform for Windows. Issued cabal update. I 
then downloaded 2.4.3 darcs and in the root directory executed: cabal 
install. A few moments later, I had darcs.exe. I then installed the 
2.4.3 static linux binary on my linux host. Following is the sequence of 
commands I issued and the resulting error.

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs --version
2.4.3 (release)

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ echo Hello > hello.txt

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs init

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ echo "Jeremy Cowgar <jeremy@cowgar.com>" > _darcs/prefs/author

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs add hello.txt

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs record
addfile ./hello.txt
Shall I record this change? (1/2)  [ynWsfvplxdaqjk], or ? for help: y
hunk ./hello.txt 1
+Hello
Shall I record this change? (2/2)  [ynWesfvplxdaqjk], or ? for help: y
What is the patch name? initial
Do you want to add a long comment? [yn]n
Finished recording patch 'initial'

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs changes
Mon May 10 14:45:34 Eastern Daylight Time 2010  Jeremy Cowgar 
<jeremy@cowgar.com>
   * initial

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs put jeremy@cowgar.com:repos/darcstmp
Finished applying...
Put successful.

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs --version
2.4.3 (release)

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ ls
_darcs  hello.txt

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ echo hello >> hello.txt

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs record
hunk ./hello.txt 2
+hello
Shall I record this change? (1/1)  [ynWesfvplxdaqjk], or ? for help: y
What is the patch name? change 1
Do you want to add a long comment? [yn]n
Finished recording patch 'change 1'

Jeremy@JEREMYCOWGAR-PC ~/josl/tmp
$ darcs push

darcs failed:  Not a repository: jeremy@cowgar.com:repos/darcstmp (Error 
reading file remotely:
: openBinaryFile: does not exist (No such file or directory))

==================================
On my linux box
==================================

jeremy@cowgar:~/repos/darcstmp$ darcs --version
2.4.3 (release)
jeremy@cowgar:~$ cd repos/darcstmp/
jeremy@cowgar:~/repos/darcstmp$ ls
_darcs  hello.txt
jeremy@cowgar:~/repos/darcstmp$ darcs changes
Mon May 10 14:45:34 EDT 2010  Jeremy Cowgar <jeremy@cowgar.com>
   * initial
msg11039 (view) Author: kowey Date: 2010-05-10.19:48:38
We need a volunteer to reproduce this bug.
Note that the official 2.3.1 binary does not suffer from this, according
to Jeremy.
msg11040 (view) Author: kowey Date: 2010-05-10.19:54:58
Jeremy says that when he uses the full path
(jeremy@cowgar.com:/home/jeremy/repos/darcstmp), then he gets a
complaint about not being able to mix repository formats.
msg11041 (view) Author: jeremy Date: 2010-05-10.20:01:39
$ darcs push --verbose --debug
Beginning identifying repository .
Done identifying repository .
Identified darcs-2 repo: c:/Development/Projects/darcs-2.4.3/tmp
Beginning identifying repository jeremy@cowgar.com:repos/darcstmp
Disabling progress reports...
ssh jeremy@cowgar.com darcs transfer-mode --repodir repos/darcstmp/
with ssh (transfer-mode) jeremy@cowgar.com: get format
Error reading file remotely:
: openBinaryFile: does not exist (No such file or directory)
Disabling progress reports...
with ssh (transfer-mode) jeremy@cowgar.com: get inventory
Error reading file remotely:
: openBinaryFile: does not exist (No such file or directory)
Done identifying repository jeremy@cowgar.com:repos/darcstmp

darcs failed:  Not a repository: jeremy@cowgar.com:repos/darcstmp (Error 
reading file remotely:
: openBinaryFile: does not exist (No such file or directory))
msg11042 (view) Author: jeremy Date: 2010-05-11.01:29:06
With kowey's (irc nick) help, I was able to make Darcs work on Windows. We 
had to set binary mode on for a few file handles. We will work some more 
on it tomorrow and hopefully have a patch.
msg11059 (view) Author: jeremy Date: 2010-05-12.20:21:20
The following patch updated the status of issue1841 to be resolved:

* Resolve issue1841: Apply binary mode to ssh process and patch file handles. 
Ignore-this: 8da8ddae9e95ba474c43b9d99430efd3
msg11387 (view) Author: jeremy Date: 2010-06-13.17:07:24
The following patch updated the status of issue1841 to be resolved-in-stable:

* Resolve issue1841: Apply binary mode to ssh process and patch file handles. 
Ignore-this: 8da8ddae9e95ba474c43b9d99430efd3
History
Date User Action Args
2010-05-10 19:44:26jeremycreate
2010-05-10 19:48:41koweysetpriority: bug
status: unknown -> needs-reproduction
topic: + Windows, Regression, Target-2.4
messages: + msg11039
nosy: + wglozer, eivuokko, kowey, kirby, jaredj
2010-05-10 19:55:00koweysetmessages: + msg11040
2010-05-10 20:01:40jeremysetmessages: + msg11041
2010-05-10 20:05:22koweysettopic: + SSH
2010-05-11 01:29:07jeremysetmessages: + msg11042
2010-05-12 20:21:21jeremysetstatus: needs-reproduction -> resolved
messages: + msg11059
2010-06-13 17:07:24jeremysetstatus: resolved -> resolved-in-stable
messages: + msg11387
2010-06-15 21:31:37adminsetmilestone: 2.4.x
2010-06-15 21:31:39adminsettopic: - Target-2.4
2010-06-15 22:14:28adminsetstatus: resolved-in-stable -> resolved
2010-06-15 22:14:29adminsetresolvedin: 2.5.0
2010-06-16 14:38:03koweysetresolvedin: 2.5.0 -> 2.4.x