Ticket #1226 (closed defect: wontfix)

Opened 15 months ago

Last modified 15 months ago

cave resolve: ugly line breaks while resolving

Reported by: fkater Owned by:
Priority: Sometime Milestone:
Component: clients/cave Version: 0.72.0
Keywords: Cc:
Blocked By: Blocking:
Distribution: N/A

Description

(1) I use gentoo and start 'cave resolve -c world' in xterm and app-misc/screen, with a lot more than 80 characters per line. I get the usual "Resolving: ..." message.

(2) This message seems to be kind of interupted by other messages each time: "... In ebuild pipe command handler:" "... global scope cut" [no new line here then?]

(3) Interruption is not a problem, however, the following message which is "Resolving ..." again, never starts on a new line. Instead after som 40, 50 spaces *on the same* line.

(4) Since I get several cases like (2) in a single run of 'cave resolve' this leaves quite an optical desaster on the console.

All this is a minor issue but exists since many versions of paludis/cave.

(5) Here a full example of the output I have: Resolving: 23 steps, 20 metadata (20 cross-i686-pc-mingw32) cave@1330500698: [QA e.child.message] In thread ID '4123':

... In ebuild pipe command handler: ... global scope cut Resolving: 26 steps, 66 metadata (46 cross-i686-pc-mingw32, 20 cross-x86_64-w64-mingw32) cave@1330500716: [QA e.child.message] In thread ID '9080': ... In ebuild pipe command handler: ... global scope cut Done: 2865 steps, 92 metadata (46 cross-x86_64-w64-mingw32, 46 cross-i686-pc-mingw32)

Change History

comment:1 Changed 15 months ago by ciaranm

  • Status changed from new to closed
  • Resolution set to wontfix

That's not really possible to fix whilst working with a terminal. It would require some horrible coupling between the UI code and the logger, which is a bad idea.

Also, you shouldn't generally be seeing many of those log messages. If they show up a lot or regularly, it tells you you should be fixing something.

comment:2 Changed 15 months ago by fkater

Is it really so hard?

Although not applicable for other reasons, piping to 'less' is just enough to keep the line breaks nice.

cave resolve -c world | less

comment:3 Changed 15 months ago by ciaranm

It would involve making the client aware that log messages are being shown and giving it code to handle that. Not worth it.

Note: See TracTickets for help on using tickets.