feature_folder_cli icon indicating copy to clipboard operation
feature_folder_cli copied to clipboard

Mason Cache File Deletion Failure During Generation

Open jlambright opened this issue 3 years ago • 4 comments

FileSystemException: Deletion failed, path = 'C:\Users\jlambright\AppData\Local\Mason\Cache\git\feature_folder_cli_aHR0cHM6Ly9naXRodWIuY29tL1J5YW5Ec2lsdmEvZmVhdHVyZV9mb2xkZXJfY2xp_efb98f7bcbaaa7b1aded22abcf8654c33ec6456f' (OS Error: The system cannot find the path specified. , errno = 3)

Has this been seen? Happens after reactivating the package as well.

jlambright avatar Jul 07 '22 14:07 jlambright

Somehow the ..\Mason folder was set to read-only by the OS. Perhaps a folder permissions check would catch this?

jlambright avatar Jul 07 '22 14:07 jlambright

Spoke too soon. After one successful generation, the ..\Mason folder becomes read-only again.

jlambright avatar Jul 07 '22 14:07 jlambright

Hi @jlambright, could you specify the steps to replicate this? Works fine for me throughout multiple generations across projects. I am on macOS though.

RyanDsilva avatar Jul 13 '22 12:07 RyanDsilva

Sorry for the late reply. Here is currently what happens.

ff generate -n dispatch -t getx

Time Taken: 21 milliseconds

✓ Feature dispatch created successfully
✖ FileSystemException: Deletion failed, path = 'C:\Users\jlambright\AppData\Local\Mason\Cache\git\feature_folder_cli_aHR0cHM6Ly9naXRodWIuY29tL1J5YW5Ec2lsdmEvZmVhdHVyZV9mb2xkZXJfY2xp_efb98f7bcbaaa7b1aded22abcf8654c33ec6456f' (OS Error: The system cannot find the path specified.
, errno = 3)

jlambright avatar Aug 01 '22 13:08 jlambright

Issue can be replicated on Win10 machine. Only happens when using -t getx to generate getx brick template. Seems like somehere in the brick is an error or mason need's a bump in version.

nikitka5702 avatar Jan 19 '23 09:01 nikitka5702

@jlambright @nikitka5702 I have bumped up the versions and tested. Could you try again?

RyanDsilva avatar May 22 '23 03:05 RyanDsilva