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

Compute Engine 'All VM Instances' Won't Load #3119

Closed jbeatty88 closed 9 months ago

jbeatty88 commented 1 year ago

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

What did you do? 'All VM Instances' for Compute Engine stops loading and the only way to get it to work again, though briefly, is to completely close the IDE and re-open it. It happens more frequently when multiple file project windows are merged but I've also observed it when the project windows are separate as well. It has happened when switching between cloud projects as well.

'Favorite VM Instances' usually seems to be solid though.

What did you expect to see? The full list of VM instances for the selected project

What did you see instead? A frozen spinner next to the 'All VM Instances' that never loads.

image

ivanporty commented 1 year ago

Thank you for the report @jbeatty88! Do you see any exceptions in the IDE log file (Help -> Show Logs.. -> idea.log)?

A bit more clarity for this could also help:

It happens more frequently when multiple file project windows are merged

Could you please give us detailed steps on how you merge your project windows so we could try to reproduce more easily?

jbeatty88 commented 1 year ago

Thanks for the reply!

I don't see any exceptions coming from the Cloud Code plugin in the logs however, I do have a more clear path to consistently reproduce the issue:

  1. Open multiple project windows (in my case, I had 2 GoLand windows open)
  2. In one of the windows, open the Cloud Code Compute Engine tab and select a project
  3. Right click a VM and 'Open SSH connection'
  4. Wait for the terminal to pop up with a connection to the VM
  5. Now select a different Google Cloud project
  6. All VM Instances stuck loading image

As for the merging of the project windows, this currently does not exist for the new UI but here is how I used to do it:

ivanporty commented 1 year ago

Thank you for reproducing this! We are looking into this and once prioritized, we'll let you know. For now, we are not able to reproduce the issue using your steps - if we select a different GCP project while SSH session is open, it still lists all VMs.

In the meanwhile, if you don't mind, what is the specific use case for you to change GCP projects while keeping the SSH open - do you need multiple SSH sessions between various GCP projects?

jbeatty88 commented 1 year ago

No problem! Dang, bummed my repro steps didn't work for you. I am able to switch projects in a single GoLand window and have the 'All VM Instances' load unless I have another GoLand window open for a separate project that has connected to a GCP Compute Engine instance.

While in the same project, I typically don't have a need to change GCP projects; usually its after opening a new GoLand instance for a project that uses resources in a different GCP project and then when I try to change to the GCP project in the new window, I can't get the full list of VMs. I do occasionally need multiple sessions between various GCP projects but not regularly.

ivanporty commented 9 months ago

This should be fixed in the new releases (23.8.x+) - we migrated to use client libraries.