redhat-developer / vscode-openshift-tools

OpenShift extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-openshift-connector
MIT License
91 stars 54 forks source link

Start dev shows "dev running" state while it is still starting #2616

Open lgrossma opened 1 year ago

lgrossma commented 1 year ago

On MacOS after https://github.com/redhat-developer/vscode-openshift-tools/issues/2607 was closed when trying to "Start dev" the state is immediately "dev running" even though the console output in terminal is not finished.

dgolovin commented 1 year ago

This works 'as expected'. odo dev has no mechanism to notify client what is going on. As soon as 'odo dev' child process started it is considered as 'running'. We can do stdout parsing and try to detect when component is ready, but that is not going to be reliable based on our experience of running odo dev in different usecases.

lgrossma commented 1 year ago

I see.. I reported this because yesterday and last testing I was able to see "dev starting" state before "dev running" showed up

datho7561 commented 8 months ago

I think this should be fixed in https://github.com/redhat-developer/vscode-openshift-tools/pull/3065. I added code to read the output of odo, and only update the component to "running" in the sidebar when the prompt about using Ctrl+C stop the application appears.