Skip to content
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

Receiving error when running #8

Open
mikeerickson opened this issue Jan 19, 2019 · 10 comments
Open

Receiving error when running #8

mikeerickson opened this issue Jan 19, 2019 · 10 comments

Comments

@mikeerickson
Copy link

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?

@mikeerickson
Copy link
Author

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

@mikeerickson
Copy link
Author

mikeerickson commented Jan 20, 2019

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

@mikeerickson
Copy link
Author

@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).

@ttscoff
Copy link
Owner

ttscoff commented Jan 20, 2019

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.

@tabuchid
Copy link

@mikeerickson Are you using zsh?

@mikeerickson
Copy link
Author

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?

@ttscoff
Copy link
Owner

ttscoff commented Sep 28, 2020 via email

@alinsim
Copy link

alinsim commented Aug 9, 2024

@ttscoff still seeing this error under zsh. if i run na under bash is working fine. Do you have any pointers how to fix the script to work with zsh?

@ttscoff
Copy link
Owner

ttscoff commented Aug 9, 2024

This script is outmoded, everything has been rewritten and turned into a gem. I highly recommend using that instead.

https://github.com/ttscoff/na_gem/

@alinsim
Copy link

alinsim commented Aug 9, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants