pharo-project / pharo-launcher

Lets you manage your pharo images and download new ones
https://pharo-project.github.io/pharo-launcher/
MIT License
108 stars 46 forks source link

PrimitiveFailed: primitive #rename:ifAbsent:to:ifPresent:fileSystem: in MacStore failed #591

Closed olekscode closed 1 year ago

olekscode commented 1 year ago

Describe the bug

After installing Pharo Launcher for Mac arm64, I open it and get the following error:

PrimitiveFailed: primitive #rename:ifAbsent:to:ifPresent:fileSystem: in MacStore failed

When I click on New button to create an image, I get the same error. Which means that I can not create images

Screenshots

Screenshot 2023-02-10 at 11 10 50

Version information:

demarey commented 1 year ago

Thank you for the report. Did you check that the app has enough permissions to run correctly (see https://support.apple.com/en-gb/guide/mac-help/mchl211c911f/13.0/mac/13.0)?

Apple Support
Change Privacy & Security settings on Mac
On your Mac, choose what your computer makes available to others across the internet or a network, and protect your information by encrypting it.
olekscode commented 1 year ago

Hi @demarey Do you know what are the permissions that Pharo Launcher needs?

demarey commented 1 year ago

I only have Mac Os 10.14 so I cannot tell you. Regarding the error, you should check that the app has permission to write files on disk, especially in the Documents folder.

olekscode commented 1 year ago

I checked and yes, Pharo Launcher has access to Documents folder:

Screenshot 2023-02-10 at 16 38 59

demarey commented 1 year ago

I will try to find someone with a Mac OS Ventura 13.1 (Apple M1) to see if I can reproduce.

olekscode commented 1 year ago

Thank you Christophe! Let me know if you find something I really miss Pharo Launcher 🥲

olekscode commented 1 year ago

This happens when PharoLauncher generates a file sources.list.dl.3d3a1e90-0ab1-0d00-9684-a3580e9b7beb and then tries to rename it to sources.list.dl

demarey commented 1 year ago

Looks to be fixed in latest version