studio icon indicating copy to clipboard operation
studio copied to clipboard

Error when opening the app

Open menjilx opened this issue 1 year ago β€’ 5 comments

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.

image

Steps to reproduce

  1. download Studio
  2. move the app to "Application" folder
  3. 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 avatar Jun 04 '24 06:06 menjilx

@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

wojtekn avatar Jun 04 '24 07:06 wojtekn

@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. image

And yes running the CLI command will trigger that warning prompt as well. image

menjilx avatar Jun 04 '24 07:06 menjilx

@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 

wojtekn avatar Jun 04 '24 09:06 wojtekn

@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 image

menjilx avatar Jun 04 '24 12:06 menjilx

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.

Image

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

sejas avatar Oct 10 '24 10:10 sejas

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 ?

ivan-ottinger avatar Jan 08 '25 11:01 ivan-ottinger

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.

nightnei avatar Feb 12 '25 16:02 nightnei