You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic status indicator for parallel install #975
While the output of cabal install in the parallel case was improved recently, it can still be made better. As described in #440, we want to implement a dynamically-updated status indicator (similar to Gentoo's emerge UI) that would show the number of packages that are being processed, that are already installed and that have failed; possibly also their names.
If we opt to also use the dynamic status indicator for sequential install, we'll have to get rid of or modify the internal setup method since it doesn't support build logging.
One related issue that @dcouttsmentions here is that printing of the last 10 lines of the build log for each failed package should be done during the post-install step (currently it's done in executeInstallPlan).
Just in case not everyone was aware; the simplest way to do this is by printing carriage returns. On terminals this moves the cursor to the beginning of the line without starting a new line, and you can then write over the previous content. It's also best to pad it with spaces to the length of the previous content.
Activity
23Skidoo commentedon Oct 18, 2012
Related: #1062
dag commentedon Dec 4, 2013
Just in case not everyone was aware; the simplest way to do this is by printing carriage returns. On terminals this moves the cursor to the beginning of the line without starting a new line, and you can then write over the previous content. It's also best to pad it with spaces to the length of the previous content.
I have no idea if this works in
cmd.exethough.put executeInstallPlan into newly created Shell monad (haskell#975)
put executeInstallPlan into newly created Shell monad (haskell#975)
add info/notice/warn/debug/die logging to Shell (haskell#975)
Shell tracks package-level progress in parallel builds (haskell#975)
add module-level progress to Shell (haskell#975)