GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
318 stars 59 forks source link

Allow the plugin to manage and install the Cloud SDK fails #3135

Closed rohanmoore closed 1 year ago

rohanmoore commented 1 year ago

(Please ensure you are running the latest version of Cloud Cloud IntelliJ with Help > Check for Updates.)

(screenshots are often helpful)

Expected Behavior

Following plugin installation, for the Google Cloud SDK to be downloaded and installed.

Actual Behavior

Installation and update fail, with error notification: Managed Google Cloud SDK update failed: com.google.cloud. tools.managedcloudsdk.command.Command ExitException: Process failed with exit code: 127

Additional Information

etanshaul commented 1 year ago

hi @rohanmoore I see you are using the latest release that was put out this week. Is this new behavior for you? We'll see if there is a regression somewhere.

ivanporty commented 1 year ago

Cloud SDK requires python usually preinstalled with Mac, but with the newest Mac OS it might not be there. Can you please try installing command line tools for Mac, restart an IDE and see if it helps?

ivanporty commented 1 year ago

Also, could you please get us your IDE log file (Help -> Show Log in Finder -> idea.log)? Thanks!

rohanmoore commented 1 year ago

Hi Etan, thanks for your note. I’m new IntelliJ and to Google Cloud, so unfortunately I’ve no prior experience to benchmark against.

On 21 Apr 2023, at 17:42, Etan Shaul @.***> wrote:

hi @rohanmoorehttps://github.com/rohanmoore I see you are using the latest release that was put out this week. Is this new behavior for you? We'll see if there is a regression somewhere.

— Reply to this email directly, view it on GitHubhttps://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/3135#issuecomment-1518085033, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2OW7SDIQFGYN654JGN5OTXCK2H3ANCNFSM6AAAAAAXHCOBCI. You are receiving this because you were mentioned.Message ID: @.***>

rohanmoore commented 1 year ago

Hi Ivan, thanks for your note. Python3 is verified installed (version 3.10.10).

On 21 Apr 2023, at 17:45, Ivan Porty @.***> wrote:

Cloud SDK requires python usually preinstalled with Mac, but with the newest Mac OS it might not be there. Can you please try installing command line tools for Mac, restart an IDE and see if it helps?

— Reply to this email directly, view it on GitHubhttps://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/3135#issuecomment-1518088446, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2OW7QVMOHRRUCDSUVXFETXCK2R5ANCNFSM6AAAAAAXHCOBCI. You are receiving this because you were mentioned.Message ID: @.***>

rohanmoore commented 1 year ago

Log attached.

On 21 Apr 2023, at 18:06, Ivan Porty @.***> wrote:

Also, could you please get us your IDE log file (Help -> Show Log in Finder -> idea.log)? Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/3135#issuecomment-1518110118, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2OW7X73QXH5K5LITXVQWTXCK47TANCNFSM6AAAAAAXHCOBCI. You are receiving this because you were mentioned.Message ID: @.***>

rohanmoore commented 1 year ago

idea.log

ivanporty commented 1 year ago

This is what happens in the log Downloading https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz to /Users/rohanmoore/Library/Application Support/google-cloud-tools-java/managed-cloud-sdk/downloads/google-cloud-sdk.tar.gz. After this we extract the archive and try to install it, but it seems like it fails with a quick Python/some other system error.

Could you please try doing this yourself to diagnose more? Download https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz, unpack it and run install.sh and please let us know if it fails and error messages if it does. Thank you!

ivanporty commented 1 year ago

@rohanmoore I am going to close this issue as our metrics indicate majority of Mac based gcloud installations succeed. If you can give us more details from the last comment, that'd be very helpful. Thank you!