GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
413 stars 111 forks source link

ECONNREFUSED blocking alert #665

Open gianfrancodemarco opened 1 year ago

gianfrancodemarco commented 1 year ago

Environment: (Hint: "Report Extension Issue on Github" command will fill these out for you.)

Version information

Cloud Code Extension version:

VSCode version: 1.72.2

OS: Ubuntu 20.04.4 LTS

Cloud SDK: /

Skaffold: 1.39.1

Kubectl: 1.24.2

Description: Sometimes, after attaching the debugger on the services in the cluster, when a change is made the services are redeployed and this blocking message appears:

image

In general it is annoying, but since a prompt per service appears, if you have lots of services the IDE becomes unusable until you have discharged all of them. They also appear multiple times for the same services.

Moreover, after all of the services are up again, another list of messages appear:

image

It is possible to make this messages not blocking?

Repro step:

ChaseMor commented 1 year ago

It's not exactly that the message is blocking but rather the message is surfacing an error that the extension ran into. Could you please provide repro steps and more specific cases as well as the expected behavior so we could perhaps handle these errors in a more robust way?

gianfrancodemarco commented 1 year ago

These behaviours happen when hot-reloading is enabled, a file changes and the services are re-built and re-deployed into the cluster. It seems that the error is raised because the debuggers on the containers are not reachable, but this is normal since the the containers have been restarted, so the expected behaviour is that these messages are ignored by:

Instead, at the moment, these prompts block the user from using the IDE at all (they can be closed, but they are a lot and are showed again after a few seconds, until the pods are ready again).

I tried to better describe the issue; i didn't add a lot of details because it isn't a consistent behaviour (even if it happens fairly often in my case). I'll add any insight when I have them. Thank you

kschaab commented 1 year ago

@gianfrancodemarco which debugger is this? This is surfaced via the debugger in whatever language extensions is being used to debug. We can open a bug but would need to know which debugger.

gianfrancodemarco commented 1 year ago

@kschaab I'm using the Python debugger from the official extension