hongruiqi / happs

Automatically exported from code.google.com/p/happs
0 stars 0 forks source link

AllIn fails on Windows #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm not sure whether it's all right to report this, but the AllIn example
in darcs HEAD doesn't run on Windows.

It could be related to the recent changes in HAppS.State and
atomicWriteFile trying to update a file by renaming without deleting the
old version.

The message it gives is:
AllIn.exe: _local/AllIn.exe_state\current-0000000000.atomic-tmp-2096344122:
rena
meFile: permission denied (Permission denied)

Upon subsequent runs, it says:
AllIn.exe: _local/AllIn.exe_state\current-0000000000: openBinaryFile:
permission
 denied (Permission denied)

Since Windows is less tolerant than Linux when it comes to deleting open
files, I'm guessing you might not know about this. If you do, sorry for
spamming.

Original issue reported on code.google.com by graysh...@gmail.com on 5 Feb 2008 at 4:34

GoogleCodeExporter commented 8 years ago
Are you running the example from GHCi?

Original comment by lem...@gmail.com on 6 Feb 2008 at 1:56

GoogleCodeExporter commented 8 years ago
No, I compile it first. Running it from GHCi gives the same, though.

Original comment by graysh...@gmail.com on 6 Feb 2008 at 2:21

GoogleCodeExporter commented 8 years ago
Fixed in HEAD.

Original comment by lem...@gmail.com on 6 Feb 2008 at 4:08