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

pocket-lib--save-access-token doesn't create parent directories #3

Open
repelliuss opened this issue Aug 6, 2021 · 1 comment
Open
Assignees
Labels

Comments

@repelliuss
Copy link

repelliuss commented Aug 6, 2021

with-temp-file in pocket-lib--save-access-token errors if file's directory does not exist. I encountered this issue in your pocket reader package. This leads an error to

pocket-lib--authorize: Opening output file: No such file or directory, c:/msys64/home/repelliuss/.cache/emacs-pocket-lib-token.json

on second call to pocket-reader which is not obvious as after authorizing you think pocket-reader couldn't authorize and therefore couldn't create the file but the actual problem is .cache directory doesn't exist.

It may not be common in Linux systems but I also use MSYS2 environment so it may be a good idea to make sure ~/.cache directory exists or even ask to create it.

@alphapapa
Copy link
Owner

Thanks.

@alphapapa alphapapa self-assigned this Aug 6, 2021
@alphapapa alphapapa added the bug label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants