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

Mac with configured default RecipeCreateLocation that doesn't exist causes failure #185

Open
apizz opened this issue Dec 17, 2020 · 2 comments
Assignees
Labels

Comments

@apizz
Copy link

apizz commented Dec 17, 2020

Describe the bug
When a fresh Mac has autopkg & Recipe Robot installed but the default RecipeCreateLocation directory path does not exist, produces error.

To Reproduce
Steps to reproduce the behavior:

  1. On Mac with autopkg & recipe robot, delete the RecipeCreateLocation key from ~/Library/Preferences/com.elliotjordan.recipe-robot.plist
  2. Delete the default folder path from system
  3. Have Recipe Robot attempt to create recipes for an item
  4. See error

Expected behavior
A message indicates that the folder doesn't exist, or Recipe Robot automatically creates this path for the user.

Screenshots
Screen Shot 2020-12-17 at 11 57 35 AM

Desktop (please complete the following information):

  • macOS: 10.15.7
  • Recipe Robot Version: 2.2.0
  • autopkg version: 2.2
  • /usr/local/autopkg/python --version: Python 3.7.5
@homebysix
Copy link
Owner

homebysix commented Dec 21, 2020

Hi @apizz - Thanks for reporting this. Could you check the output you get for:

defaults read com.elliotjordan.recipe-robot Initialized

@apizz
Copy link
Author

apizz commented Jan 15, 2021

~ > defaults read-type com.elliotjordan.recipe-robot Initialized                                                                                     255 19:09:25
Type is boolean

~ > defaults read com.elliotjordan.recipe-robot Initialized                                                                                              19:07:00
1

I did some more testing and confirmed that if RecipeCreateLocation value is present but folder doesn't exist that it will create the folder.

Error was slightly different in most recent testing.
Screen Shot 2021-01-14 at 7 12 37 PM

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