Receiving error when running
mikeerickson opened this issue · 7 comments
I have thought about trying this script for quite sometime, and finally pulled the trigger.
When I run na -a "test"
it throws an error
-:38:in `initialize': No such file or directory @ rb_sysopen - (Errno::ENOENT)
from -:38:in `new'
from -:38:in `<main>'
I have a todo.taskpaper
file in the directory where I am running it, must it contain anything else?
The first time I execute, it properly creates the file and adds the todo item. however, subsequent calls it produces the above error.
in my case, I am testing in
~/desktop
File created
~/desktop/desktop.taskpaper
Fixed the issue per se, I changed the script na.sh
line: 158
# target=${fileList[0]}
target=${fileList[1]}
While this helps the script work, it will still fail if there are more than one *.taskpaper
files in the directory
@ttscoff I can debug/fix this code further if you would like, but I wanted to let you know what was happening sooner rather than later. It is working for me now to allow me to test (while i also work with the trial version of TaskPaper).
Looks like that error is occurring in the Ruby portion of the script. I'm not seeing it happen locally, but if you do have a chance to debug, happy to look at a pull request.
@mikeerickson Are you using zsh?
A year later, I was presented with this error again today. I tracked it down (at least in my case) to the fact that I had two different .taskpaper
files in the directory. I was thinking the script would always add to the dirname.taskpaper
file?