Error when opening the app
Quick summary
I installed the Studio on my Mac and of course, the app is in my "application" folder already but every time I open the app, I will always prompt this error.
Steps to reproduce
- download Studio
- move the app to "Application" folder
- start the app
What you expected to happen
When you open the app.
What actually happened
Prompt warning
Impact
All
Available workarounds?
No and the app is unusable
Platform
Mac Intel
Logs or notes
No response
@menjilx thanks for your report. Could you please share the full path to Studio? Does it happen when you launch it from the correct directory using CLI?
open /Applications/Studio.app
@menjilx thanks for your report. Could you please share the full path to Studio? Does it happen when you launch it from the correct directory using CLI?
open /Applications/Studio.app
Here's the studio app location.
And yes running the CLI command will trigger that warning prompt as well.
@menjilx, thanks for confirming that. I would like to know if it is an issue with Studio being placed in a read-only directory or another issue related to permissions. Could you check that part?
ls -al /Applications/Studio.app
@menjilx, thanks for confirming that. I would like to know if it is an issue with Studio being placed in a read-only directory or another issue related to permissions. Could you check that part?
ls -al /Applications/Studio.app
Here's what I got @wojtekn
Hi @menjilx, could you try completely removing /Applications/Studio.app and downloading it again from https://developer.wordpress.com/studio ?
On my computer, the group for /Applications/Studio.app is set to staff instead of admin. However, Iβve already confirmed that this is likely not the root cause of the error, as Wojtek also has the group set to admin.
FWIW, Here is the code that attempts to update Studio and displays the error message:
https://github.com/Automattic/studio/blob/587292a9a0e64bbee0b4c223cb228e10a47dab6a/src/updates.ts#L74-L77
I have reviewed this issue today and haven't been able to reproduce it.
Hey, @menjilx ππΌπ I wonder if you would have a chance to try what @sejas suggested above?
Hi @menjilx, could you try completely removing /Applications/Studio.app and downloading it again from https://developer.wordpress.com/studio ?
I decided to dig deeper with this issue, and results of my investigation are in this PR. Please read Proposed changes, I won't duplicate them here, since there is a lot of info. It doesn't fix the issue, since I haven't managed to reproduce it in many different ways, but it's good improvement for error handling and as for me, it's maximum what we can do, taking into account the information what we have from this thread.