go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Add progress bar to the `sqlcmd create mssql` "downloading" part

Open stuartpa opened this issue 2 years ago • 3 comments

Feedback:

The downloading step was taking forever for me, and without a progress bar I had no idea of how much was still remaining. I restarted the process twice as I thought it was stuck when in reality, it was my connection.

stuartpa avatar Feb 25 '23 20:02 stuartpa

Same challenge here. Waiting over 15 minutes with no indication as to the progress. A status message and/or progress bar would be hugely appreciated from a user experience perspective. image

A bit rusty with the tooling but even struggled a little to see progress in Docker Desktop, Procmon, Procexp, etc. specifically for the sqlcmd.exe process. image

I did get a few file/thread events which seem more related to diagnostic Application Insight Diagnostics.

anthonyfourie avatar Jan 09 '24 02:01 anthonyfourie

Just to follow up on this after trying another round of trying. I noticed that the Docker Engine on my machine was running in "Resource Saver Mode" which I had a visual nudge from in the Docker Desktop Client: image

After bringing the Docker Engine back to a "Running" mode, then trying again it seems everything started up just fine and messages started to print out to the console. image

What I haven't yet figured out is if/why sqlcmd create didn't bring the Docker Engine out of Resource Saver Mode. Would love to know if others had a similar experience to validate the hypothesis.

anthonyfourie avatar Jan 09 '24 03:01 anthonyfourie

  • We will "borrow" the UI progress components from azd that do this very neatly
  • For now if you want to see all the docker API output, you can add --verbosity 4, and you'll see every line (it isn't pretty).
  • I have never come across this issue with Docker "Resource Save Mode". Would like to learn more,

stuartpa avatar Jan 16 '24 16:01 stuartpa