cloe icon indicating copy to clipboard operation
cloe copied to clipboard

cloe-launch: status indication upon first opening of the shell

Open clonker opened this issue 1 year ago • 3 comments

when opening a cloe-launch shell for the very first time, it may take a prolonged period of time before anything happens. i have had several users report back to me that they thought the program hangs although it was just downloading conan dependencies. is there a possibility to add progress output?

clonker avatar Feb 08 '24 07:02 clonker

The shell command was not intended to show any output unless an error occurs. By default, it does not build any packages, however it may download them. Ideally, the user will first use cloe-launch prepare and then follow up with cloe-launch shell. However, how are users to know its unintended usage if we don't mention it anywhere.

For a great UX we need to take expected incorrect usage into account, so I agree that we need to improve this here. Since I don't know what conan is doing, adding a progress bar is difficult.

I'll look into providing transient Conan output via the rich Python library.

cassava avatar Apr 29 '24 07:04 cassava

Worst case it may be enough to just periodically print some message ("hang in there, it may take a few minutes") after the first 10 seconds have passed - that way, there is feedback that the process hasn't stalled out but is indeed doing something in the background. :)

clonker avatar Apr 29 '24 15:04 clonker

Commit had to be reverted because output ordering was not working.

cassava avatar May 06 '24 12:05 cassava