darcs

Issue 784 --help => darcs: darcs84bdba: removeFile: permission denied (Permission denied)

Title --help => darcs: darcs84bdba: removeFile: permission denied (Permission denied)
Priority bug Status resolved
Milestone Resolved in
Superseder catch 'does not exist' when running external programs
View: 770
Nosy List Troff, czapkofan, darcs-devel, dmitry.kurochkin, eivuokko, hoijarvi, jaredj, kirby, kowey, thorkilnaur, tommy, wglozer
Assigned To
Topics Windows

Created on 2008-04-06.19:16:21 by czapkofan, last changed 2009-08-27.14:15:50 by admin.

Files
File name Uploaded Type Edit Remove
darcs_CreateFile_stack.CSV Troff, 2008-04-14.21:11:18 application/vnd.ms-excel
darcs_fileoperations.CSV Troff, 2008-04-14.21:12:59 application/vnd.ms-excel
Messages
msg4195 (view) Author: czapkofan Date: 2008-04-06.19:16:19
I've just experienced the "removeFile: permission denied" error in
http://www.cs.mu.oz.au/~rgm/darcs/darcs_2008-03-21.exe on WinXP on my
friends computer (while I had no such a problem on WinXP on a PC at my
home). It shows e.g. when I try to run 'darcs add -h'.

Mateusz Czaplinski
msg4196 (view) Author: czapkofan Date: 2008-04-06.19:16:27
ah, and I forgot to mention that darcs1 runs OK (from
http://glozer.net/darcs/darcs-1.0.9-win32.zip)

On Fri, Apr 4, 2008 at 1:25 PM, Mateusz Czaplinski <czapkofan@gmail.com> wrote:
> I've just experienced the "removeFile: permission denied" error in
>  http://www.cs.mu.oz.au/~rgm/darcs/darcs_2008-03-21.exe on WinXP on my
>  friends computer (while I had no such a problem on WinXP on a PC at my
>  home). It shows e.g. when I try to run 'darcs add -h'.
>
>  Mateusz Czaplinski
>
msg4198 (view) Author: droundy Date: 2008-04-07.11:16:02
Thanks for the bug report! I'm afraid we'll need more information than this to
track down.  Does it mention which file cannot be removed? I understand that
since you can't reproduce this on your own computer it may be hard for you to
help us.

David
msg4203 (view) Author: czapkofan Date: 2008-04-07.17:05:42
I'm not sure, but I think it could be the temporary file created by
darcs during it's operations, as after we finished working with darcs
(it didn't have problems with executing commands, it did also print
the list of commands when run without a parameter) I noticed some of
these files in my repository's main directory. I don't know how it can
be related, but for me it feels a bit like if it was somehow connected
with darcs trying to run the "less" command, as I do have some
linux/GNU tools installed and in PATH, and my friend does not, and
when I run darcs -h it does look like it went through "less".

But as for the rest, yes, you're right, I can't reproduce this
unfortunately. Hope any of what I wrote here helps a bit.
Good luck!
Mateusz Czaplinski

On 4/7/08, David Roundy <bugs@darcs.net> wrote:
>
>
> Thanks for the bug report! I'm afraid we'll need more information than this
> to
> track down.  Does it mention which file cannot be removed? I understand that
> since you can't reproduce this on your own computer it may be hard for you
> to
> help us.
>
> David
>
> ----------
> nosy: +czapkofan, droundy -czapkofan
> priority:  -> bug
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue784>
> __________________________________
>
msg4237 (view) Author: Troff Date: 2008-04-14.21:11:18
Here's my story:

W:\ida\plugins\TePe>darcs diff --diff-command "WinMergeU.exe %1 %2"
Running command 'WinMergeU.exe pluginsold-TePe/ pluginsnew-TePe/'
darcs: darcs84bdba: removeFile: permission denied (Permission denied)

WinMerge never starts.

I have attached a stacktrace of the call that creates the file. I'll attach a
file with the operations performed on the file as captured by Process Monitor.
Attachments
msg4238 (view) Author: Troff Date: 2008-04-14.21:12:59
I should probably mention

W:\ida\plugins\TePe>darcs
darcs version 2.0.0 (2.0.0 (+ 19 patches))

as well.
Attachments
msg4467 (view) Author: hoijarvi Date: 2008-05-02.13:49:59
The reason is you don't have less.exe anywhere. Darcs puts the help text thru less.

Workaround until fix:
- install cygwin.
- If 500 MB download to show a text file is too much for you, look for
"more.com" in your winnt directory, and duplicate it as less.exe anywhere in path.
msg4470 (view) Author: kowey Date: 2008-05-02.13:58:02
2008/5/2 Kari Hoijarvi <bugs@darcs.net>:

>  Workaround until fix:
>  - install cygwin.
>  - If 500 MB download to show a text file is too much for you, look for
>  "more.com" in your winnt directory, and duplicate it as less.exe anywhere in path.

Out of curiosity, does duplicating more.com as more.exe work as well?
(of course, removing less.exe along the way)

Darcs is supposed to try 'more' if 'less' fails, so I'm a bit puzzled.
msg4471 (view) Author: hoijarvi Date: 2008-05-02.14:46:40
Probably it does then.

Personally speaking, my preferred fix to this bug is to remove paging 
with less. I can do it myself.

Kari

Eric Kow wrote:
> 2008/5/2 Kari Hoijarvi <bugs@darcs.net>:
>
>   
>>  Workaround until fix:
>>  - install cygwin.
>>  - If 500 MB download to show a text file is too much for you, look for
>>  "more.com" in your winnt directory, and duplicate it as less.exe anywhere in path.
>>     
>
> Out of curiosity, does duplicating more.com as more.exe work as well?
> (of course, removing less.exe along the way)
>
> Darcs is supposed to try 'more' if 'less' fails, so I'm a bit puzzled.
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue784>
> __________________________________
>
>
>
>
msg4474 (view) Author: droundy Date: 2008-05-02.15:01:30
I'd rather not remove the paging support, as this was a feature that folks
did ask for.  Better would be to simply print the help to stdout if paging
fails.

David

On Fri, May 02, 2008 at 09:26:58AM -0500, Kari Hoijarvi wrote:
> Probably it does then.
> 
> Personally speaking, my preferred fix to this bug is to remove paging 
> with less. I can do it myself.
> 
> Kari
> 
> Eric Kow wrote:
> >2008/5/2 Kari Hoijarvi <bugs@darcs.net>:
> >
> >  
> >> Workaround until fix:
> >> - install cygwin.
> >> - If 500 MB download to show a text file is too much for you, look for
> >> "more.com" in your winnt directory, and duplicate it as less.exe 
> >> anywhere in path.
> >>    
> >
> >Out of curiosity, does duplicating more.com as more.exe work as well?
> >(of course, removing less.exe along the way)
> >
> >Darcs is supposed to try 'more' if 'less' fails, so I'm a bit puzzled.
msg4488 (view) Author: hoijarvi Date: 2008-05-02.16:31:00
OOPS, Language ambiguity:

>Personally speaking, my preferred fix to this bug is to remove paging 
>with less. I can do it myself.

I meant I can do paging myself by typing "| more", not that I would remove paging support.

Kari

David Roundy wrote:
> I'd rather not remove the paging support, as this was a feature that folks
> did ask for.  Better would be to simply print the help to stdout if paging
> fails.
>
> David
>
> On Fri, May 02, 2008 at 09:26:58AM -0500, Kari Hoijarvi wrote:
>   
>> Probably it does then.
>>
>> Personally speaking, my preferred fix to this bug is to remove paging 
>> with less. I can do it myself.
>>
>> Kari
>>
>> Eric Kow wrote:
>>     
>>> 2008/5/2 Kari Hoijarvi <bugs@darcs.net>:
>>>
>>>  
>>>       
>>>> Workaround until fix:
>>>> - install cygwin.
>>>> - If 500 MB download to show a text file is too much for you, look for
>>>> "more.com" in your winnt directory, and duplicate it as less.exe 
>>>> anywhere in path.
>>>>    
>>>>         
>>> Out of curiosity, does duplicating more.com as more.exe work as well?
>>> (of course, removing less.exe along the way)
>>>
>>> Darcs is supposed to try 'more' if 'less' fails, so I'm a bit puzzled.
>>>       
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue784>
> __________________________________
>
>
>
>
msg4596 (view) Author: kowey Date: 2008-05-09.12:11:20
Wait a second, I don't think this is a duplicate.  Is there any reason to
believe that the diff-command stuff has anything to do with the pager?  I doubt it.
msg4982 (view) Author: kowey Date: 2008-06-05.16:12:56
I can confirm that this is still happening, even after fixing issue770.  It only
happens on the DOS prompt, not under MSYS or Cygwin

The file it's trying to remove is C:\Temp\/\darcspager-3223 (which works if you
do it on the DOS prompt and enclose it in quotes)
msg7062 (view) Author: thorkilnaur Date: 2009-01-12.11:39:43
Hello kowey,

As I read this, you are able to reproduce the problem reported. Could you supply 
some additional details, please?

Thanks and best regards
Thorkil
msg7063 (view) Author: kowey Date: 2009-01-12.11:46:09
On Mon, Jan 12, 2009 at 11:39:46 -0000, Thorkil Naur wrote:
> As I read this, you are able to reproduce the problem reported. Could you supply 
> some additional details, please?

I don't have a Windows machine handy at the moment, but I suspect that
with issue770 resolved, this too may be resolved.

Salvatore, any comments?

Thanks!
msg7087 (view) Author: kirby Date: 2009-01-14.08:14:45
On Mon, Jan 12, 2009 at 12:46 PM, Eric Kow <bugs@darcs.net> wrote:
>
> Eric Kow <kowey@darcs.net> added the comment:
> I don't have a Windows machine handy at the moment, but I suspect that
> with issue770 resolved, this too may be resolved.

This has been resolved already in 2.2, and in 2.1.2 too if I remember correctly.

Salvaatore
History
Date User Action Args
2008-04-06 19:16:21czapkofancreate
2008-04-06 19:16:29czapkofansetstatus: unread -> unknown
nosy: tommy, beschmi, kowey, czapkofan
messages: + msg4196
2008-04-07 11:14:32droundylinkissue785 superseder
2008-04-07 11:16:05droundysetpriority: bug
nosy: + droundy, czapkofan, - czapkofan
messages: + msg4198
2008-04-07 17:05:44czapkofansetnosy: + czapkofan
messages: + msg4203
2008-04-14 21:11:19Troffsetfiles: + darcs_CreateFile_stack.CSV
nosy: + Troff, - czapkofan
messages: + msg4237
2008-04-14 21:13:02Troffsetfiles: + darcs_fileoperations.CSV
nosy: droundy, tommy, beschmi, kowey, czapkofan, Troff
messages: + msg4238
2008-05-02 13:50:01hoijarvisetnosy: + dagit, hoijarvi
messages: + msg4467
2008-05-02 13:58:04koweysetnosy: droundy, tommy, beschmi, kowey, dagit, czapkofan, Troff, hoijarvi
messages: + msg4470
2008-05-02 14:46:43hoijarvisetnosy: + czapkofan
messages: + msg4471
2008-05-02 15:01:34droundysetnosy: droundy, tommy, beschmi, kowey, dagit, czapkofan, czapkofan, Troff, hoijarvi
messages: + msg4474
2008-05-02 16:31:03hoijarvisetnosy: droundy, tommy, beschmi, kowey, dagit, czapkofan, czapkofan, Troff, hoijarvi
messages: + msg4488
2008-05-07 14:33:11koweysetpriority: bug -> feature
nosy: - czapkofan
title: in 2.0pre3 (win32) - the "removeFile: permission denied" error -> if calling a pager fails, just print to stdout without a pager
2008-05-07 14:35:04koweysetpriority: feature -> bug
nosy: droundy, tommy, beschmi, kowey, dagit, czapkofan, Troff, hoijarvi
2008-05-07 14:56:32koweysetstatus: unknown -> duplicate
nosy: droundy, tommy, beschmi, kowey, dagit, czapkofan, Troff, hoijarvi
superseder: + catch 'does not exist' when running external programs
2008-05-09 12:11:23koweysetstatus: duplicate -> unknown
nosy: + wglozer, eivuokko, rgm, jaredj
topic: + Windows
messages: + msg4596
title: if calling a pager fails, just print to stdout without a pager -> diff --diff-command => darcs: darcs84bdba: removeFile: permission denied (Permission denied)
2008-05-21 11:28:01rgmsetnosy: - rgm
2008-06-05 16:12:58koweysetnosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, jaredj, czapkofan, Troff, hoijarvi
messages: + msg4982
title: diff --diff-command => darcs: darcs84bdba: removeFile: permission denied (Permission denied) -> --help => darcs: darcs84bdba: removeFile: permission denied (Permission denied)
2009-01-12 11:39:45thorkilnaursetnosy: + dmitry.kurochkin, simon, czapkofan, thorkilnaur, - czapkofan
messages: + msg7062
2009-01-12 11:45:27koweysetnosy: + kirby
2009-01-12 11:46:11koweysetnosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, Troff, hoijarvi, kirby
messages: + msg7063
2009-01-14 08:14:47kirbysetnosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, Troff, hoijarvi, kirby
messages: + msg7087
2009-03-03 07:59:22kirbysetstatus: unknown -> resolved
nosy: droundy, tommy, beschmi, kowey, wglozer, eivuokko, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, Troff, hoijarvi, kirby
2009-08-06 17:58:04adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, - droundy, wglozer, eivuokko, jaredj, czapkofan, Troff, hoijarvi, kirby
2009-08-06 21:01:57adminsetnosy: - beschmi
2009-08-10 22:19:21adminsetnosy: + wglozer, Troff, eivuokko, hoijarvi, kirby, czapkofan, jaredj, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:40adminsetnosy: - dagit
2009-08-25 17:39:01adminsetnosy: + darcs-devel, - simon
2009-08-27 14:15:50adminsetnosy: tommy, kowey, wglozer, darcs-devel, eivuokko, thorkilnaur, jaredj, dmitry.kurochkin, czapkofan, Troff, hoijarvi, kirby