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

Cloud SQL viewer doesn't list instances without Cloud SQL Admin API enabled #3154

Closed jonathan064 closed 10 months ago

jonathan064 commented 11 months ago

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

What did you do? Updated intellij IDE to latest version What did you expect to see? Google cloud connections that I was working on previously What did you see instead? Didnt display any connections for the cloud sql database I was using Screenshot (152)

(screenshots are helpful) Feel free to deviate from this template as needed, especially if you are submitting a feature request.

ruomengz commented 11 months ago

Can you please try to sign in again, we changed the auth flow recently. If it does not help, can you please try to attach some idea.log to help us debug?

jonathan064 commented 11 months ago

I tried signing in and it didn't do anything, it was working fine yesterday before around 6:00pm cst though. I think I updated the plugin after that time. I'm not sure where to find idea.log

ruomengz commented 11 months ago

You can find the idea.log by Help > Show log in Explorer. https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files

jonathan064 commented 11 months ago

I downgraded to the previous google cloud version and it works fine now idea.log

ruomengz commented 11 months ago

Thanks for the logs!

It seems like the Cloud SQL Admin API is not enabled in your project. Could you enable the API in Cloud Console and try again?

jonathan064 commented 11 months ago

Oh thank you I enabled it and now its working fine

ivanporty commented 11 months ago

Thanks @jonathan064. We'll add the API enabled check in one of the upcoming releases. In the meanwhile, I updated the title of your issue in order for other users to find it if needed.

ivanporty commented 10 months ago

the latest release will check for the API being enabled and offer to enable it if it's not. Closing.