darcs

Issue 767 wish: nicer error message when send -o is given a file in a nonexistent directory

Title wish: nicer error message when send -o is given a file in a nonexistent directory
Priority wishlist Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jaredj, kowey, thorkilnaur, tim, tommy
Assigned To
Topics ProbablyEasy, UI

Created on 2008-03-27.20:22:22 by tim, last changed 2017-07-30.23:15:07 by gh.

Messages
msg4056 (view) Author: tim Date: 2008-03-27.20:22:21
If I do something like:
$ darcs send --output=~/GhcTrees/current-ext-core.patch

I eventually get:

darcs: ~/GhcTrees/current-ext-core.patch-0: takeFile
~/GhcTrees/current-ext-core.patch-0 in /home/tjc/GhcTrees/complete-2008: openFd:
does not exist (No such file or directory)

If I substitute $HOME for "~", it works.
msg4063 (view) Author: droundy Date: 2008-03-28.14:10:15
Actually, darcs *can* handle a tilde in filenames, and that's what's bothering
you.  Expansion of ~ to $HOME is done by the shell, as in other unix programs. 
If you put a space between the '=' and the path then your tilde will work fine.
 As an experiment you can compare the results of

mkdir '~'
ls ~
ls '~'
darcs add '~'

and ask yourself why darcs should allow directories with the name '~'.

So no, we aren't going to try to emulate shell glob expansion in darcs.
msg4074 (view) Author: tim Date: 2008-03-28.18:53:53
Okay, but I still think the error message could be improved. Why not an error like:

"Output directory ~/GhcTrees does not exist"

instead of the current cryptic error that mentions things like takeFile and
openFd that the user doesn't need to know about?
msg7053 (view) Author: thorkilnaur Date: 2009-01-12.10:14:01
Setting status deferred, as this is a wishlist issue.

Best regards
Thorkil
msg7079 (view) Author: thorkilnaur Date: 2009-01-13.11:16:01
Sorry, deferring was a mistake. Setting status need-info instead, asking for a 
discussion of whether we should work towards supporting this feature.

Thanks and best regards
Thorkil
History
Date User Action Args
2008-03-27 20:22:22timcreate
2008-03-28 14:10:17droundysetpriority: bug -> not-our-bug
status: unread -> wont-fix
messages: + msg4063
nosy: + droundy
2008-03-28 18:53:54timsetpriority: not-our-bug -> feature
status: wont-fix -> unknown
messages: + msg4074
nosy: droundy, tommy, beschmi, kowey, tim
2008-03-28 19:02:27droundysetpriority: feature -> wishlist
nosy: droundy, tommy, beschmi, kowey, tim
title: darcs send can't handle tilde in filename -> wish: nicer error message when send -o is given a file in a nonexistent directory
2008-05-14 13:34:03koweysettopic: + ProbablyEasy, UI
nosy: + dagit, jaredj
2009-01-12 10:14:07thorkilnaursetstatus: unknown -> deferred
nosy: + dmitry.kurochkin, simon, thorkilnaur
messages: + msg7053
2009-01-13 11:16:08thorkilnaursetstatus: deferred -> waiting-for
nosy: droundy, tommy, beschmi, kowey, dagit, simon, tim, thorkilnaur, jaredj, dmitry.kurochkin
messages: + msg7079
2009-08-06 17:57:36adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, - droundy, tim, jaredj
2009-08-06 21:01:18adminsetnosy: - beschmi
2009-08-10 22:18:51adminsetnosy: + tim, jaredj, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:05adminsetnosy: - dagit
2009-08-25 17:38:49adminsetnosy: + darcs-devel, - simon
2009-08-27 14:14:56adminsetnosy: tommy, kowey, darcs-devel, tim, thorkilnaur, jaredj, dmitry.kurochkin
2009-09-06 20:50:46koweysetstatus: waiting-for -> needs-implementation
nosy: tommy, kowey, darcs-devel, tim, thorkilnaur, jaredj, dmitry.kurochkin
2017-07-30 23:15:07ghsetstatus: needs-implementation -> given-up