recipe-robot icon indicating copy to clipboard operation
recipe-robot copied to clipboard

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

Open apizz opened this issue 3 years ago • 2 comments

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

apizz avatar Dec 17 '20 17:12 apizz

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

defaults read com.elliotjordan.recipe-robot Initialized

homebysix avatar Dec 21 '20 07:12 homebysix

~ > 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

apizz avatar Jan 15 '21 00:01 apizz