-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh brew install fails with Fatal Error: Cannot read configuration file /Users/me/.todo/config
#252
Comments
Installation may be more hosed than I realized:
|
The CLI defaults to looking for its config in Line 606 in d589fd0
That folder and file do not get created on install with Homebrew. So it tries, to check for other paths: Lines 660 to 703 in d589fd0
The last one it checks is Oh and the one before tries This is not great. Here is what I would personally suggest, but I have no idea of all the constraints to take into account:
[ -e "$TODOTXT_CFG_FILE" ] || {
CFG_FILE_ALT="$(cd "$(dirname "$0")" && cd "$(dirname "$(readlink "$0")")" && pwd)/../todo.cfg"
if [ -e "$CFG_FILE_ALT" ]
then
TODOTXT_CFG_FILE="$CFG_FILE_ALT"
fi
} This tries to follow the I'd also suggest changing the config's default |
Side note, when installing via homebrew, a caveat is displayed. |
Same is occurring here, I just created the config file but it gives me
|
Thanks @karbassi: |
For those who landed here from a google result: I installed it from a clone in Ubuntu 18.04. This situation is explained in https://github.com/todotxt/todo.txt-cli/wiki/Troubleshooting and it is fixed by copying todo.cfg in
|
Great thanks it work ;-) |
This works. But you have to populate the config file. So after creating the directory & then the config file within it, edit the config file and place the contents from the following source within it (link below). |
At the very minimum, shouldn't this step be noted in the documentation (after "Install" and before "Usage") ? |
Fixes #252 (by adding a note to README)
Fixes #252 (by adding a note to README)
Fixes todotxt#252 (by adding a note to README)
The given caveat for me was incorrect. It gave: But what was needed, and worked, was: |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
After a fresh install, first run yields the following message:
Simple workaround is
mkdir -p ~/.todo
andtouch ~/.todo/config
.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
See help text.
Which versions todo.sh are you using?
Which Operating System are you using?
OS X 10.13.3 High Sierra
Which version of bash are you using?
The text was updated successfully, but these errors were encountered: