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

ejira-update-my-projects does not run all the way on first run until buffer is saved to file #21

Open
chaorace opened this issue May 15, 2020 · 0 comments

Comments

@chaorace
Copy link
Contributor

I struggled with this issue a fair amount earlier today. I kept running jira-update-my-projects, but the generated buffer was always incomplete! As it turns out, the function was failing because global org id lookup uses whatever is saved to file, ignoring buffer contents. Since this was a first-time run, there were no such files and the function was failing silently as a result.

The workaround for this issue is to save the incomplete project buffer to file, then rerun jira-update-my-projects. Once the file actually exists, the issue stops occurring.

I believe the best fix for this would be to check if the file exists first. If the file does not exist, write the top level outline, with project IDs, to buffer and save, then proceed as usual.

@chaorace chaorace changed the title ejira-update-my-projects does not run all the way if generated buffer is not saved ejira-update-my-projects does not run all the way on first run until buffer is saved to file May 20, 2020
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

1 participant