Closed lenormf closed 4 years ago
This happens because stig interprets "off" as a path relative to the current value of "srv.path.complete", e.g. "/my/torrents/foo", which doesn't exist and the "rpc.free_space()" request reports the error.
Should be fixed more or less. Now it just hides the free space display for any path that doesn't exist. I'll try to find a good way report the error instead.
The "No such file or directory" is now displayed next to the directory name.
It may get tight depending on terminal size, but I think it's better than ignoring the error.
It feels a bit counter-intuitive. Setting srv.path.incomplete = off
disables the feature, but srv.path.complete = off
interprets the argument as a directory.
I think the intent is clear, in that case, that the user is trying to disable a setting that is not optional, so I would rather have a warning displayed saying something along the lines of "pass a fullpath to the off
directory instead of using a keyword by itself".
The commit that was pushed to fix this issue is useful for paths that don't exist though, in any case.
By the way, could you mention the issue number in the commit that closes it? Append "Fixes #1234" to the commit message, and Github will close the issue automatically, plus it allows users to jump to the patch directly from the ticket.
Thanks!
I don't think the intent is clear. To me, "disabling the download path" doesn't make any
sense. What did you expect when you set srv.path.complete
to off
?
I don't really want to make values illegal for no good reason. I justified making boolean
values illegal for srv.path.incomplete
by combining two settings into one
(srv.path.incomplete
and srv.path.incomplete.enabled
). But I don't see any reason to
make boolean values illegal for srv.path.complete
.
I'll try to remember adding issue numbers to commit messages.
Reproducer:
:set srv.path.complete off
Trace:
HTH.