Author Topic: save/copy messages in message window?  (Read 27391 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
save/copy messages in message window?
« on: April 05, 2006, 12:16:05 pm »
How is it possible to copy/save messages from the message window (build messages).

I can not save build-errors to clipboard and post them anywhere. Understand?

I am using
Code::Blocks 1.0 revision 2062 Build: Feb 23 2006, 03:02:53 - wx2.6.2 (Windows, ANSI)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #1 on: April 05, 2006, 12:23:08 pm »
Hello,

Did you try in the Build log tab to click the right mouse button, chose e.g., Select All and then Copy?

Best wishes,
Michael

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: save/copy messages in message window?
« Reply #2 on: April 05, 2006, 12:55:29 pm »
The context menu on the build-tab shows
- tabs at top
- tabs at bottom
- show/hide >

context menu in the message window (where the messages are) is not possible.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #3 on: April 05, 2006, 01:13:36 pm »
The context menu on the build-tab shows

Not on the tab, but inside the window :).

Best wishes,
Michael

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: save/copy messages in message window?
« Reply #4 on: April 05, 2006, 01:29:14 pm »
Not on the tab, but inside the window :).

inside the window I can get no contextmenu. There is nothing!

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #5 on: April 05, 2006, 01:31:30 pm »
it does not work on the moon, only on earth ...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #6 on: April 05, 2006, 01:41:27 pm »
Not on the tab, but inside the window :).

inside the window I can get no contextmenu. There is nothing!

Inside the Build log window and not in the Build messages windows. Here it works fine.

Best wishes,
Michael

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: save/copy messages in message window?
« Reply #7 on: April 05, 2006, 01:58:49 pm »
Inside the Build log window and not in the Build messages windows. Here it works fine.

The build log window works fine. That is not the problem. But it does not help me.

I need the clean extracted messages from the build messages window.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #8 on: April 05, 2006, 02:02:29 pm »
Inside the Build log window and not in the Build messages windows. Here it works fine.
I need the clean extracted messages from the build messages window.

Ah, ok. Then AFAIK it is not possible.

Best wishes,
Michael

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: save/copy messages in message window?
« Reply #9 on: April 05, 2006, 02:13:02 pm »
Quote
Ah, ok. Then AFAIK it is not possible.
Luckily, it is not :)
Would be quite bad if that was possible.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #10 on: April 05, 2006, 02:23:45 pm »
Well, it is possible since revision 2312.
Be patient!
This bug will be fixed soon...

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: save/copy messages in message window?
« Reply #11 on: April 05, 2006, 02:31:16 pm »
What a great idea...
When we tell someone having the typical "XXX does not compile" problem to post the build log, we will now get those absolutely useless build messages 50% of the time... brilliant.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #12 on: April 05, 2006, 02:33:20 pm »
What a great idea...
When we tell someone having the typical "XXX does not compile" problem to post the build log, we will now get those absolutely useless build messages 50% of the time... brilliant.

"useless" ?!?
You know, they 're the very same messages that appear in the build log.
And, yes, I know they don't contain the actual command-lines. You have to tell people to enable full command-line logging anyway, so you might as well clarify that you 're interested in the build log and not the build messages...
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #13 on: April 05, 2006, 02:41:51 pm »
... You have to tell people to enable full command-line logging anyway ...

i would propose to set "full comandline logging" as default setting anyways

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: save/copy messages in message window?
« Reply #14 on: April 05, 2006, 02:50:24 pm »
Quote
You have to tell people to enable full command-line logging anyway
That's why I suggested making the full commandline the default a few months ago. It is bad enough that people have to enable "normal" output explicitely.

I mean, OK... if someone absolutely does not want to see the compiler messages, I can even understand why someone would want beautified messages (although you don't need to read them if you don't want...), and they're handy for jumping to an error line, too.

But if you give them the ability to copy the beautified messages, then people will really do so.
As people post "Compiling foo.cpp" now when asking for help building something, they will now post beautified error messages. I don't think that is any good.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: save/copy messages in message window?
« Reply #15 on: April 05, 2006, 03:05:57 pm »
Everything is right as is now.

What could be improved is put a checkbox or an item in the contextual menu for changing enable full command-line logging.
I tend to change it from time to time (I try to have always disabled, but for some testings, ie. testing if the compiler is setup ok, or if backticks are expanding correctly, I enable it), so a setting for doing this more accesible would be great.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #16 on: April 05, 2006, 03:07:34 pm »
But if you give them the ability to copy the beautified messages, then people will really do so.
As people post "Compiling foo.cpp" now when asking for help building something, they will now post beautified error messages. I don't think that is any good.

OK, I see the fault in your thinking: you only think about us and the support we offer in these boards.
But, please, stop for a while and think of a feature as exactly that: a feature, something that boosts productivity (at least for those who need it). When we add a feature, we don't add it for us but for the users.
If we were to think only about ourselves, most of current C::B features would not have been implemented unless we really needed them. Does this sound nice to you?

Regarding the specific feature discussed here:
When you tell a user to post his "build log", you expect he does that. If he posts the "build messages" then you have every right not to help him any further, if you don't feel the need to clarify. He doesn't deserve our help if he fails to do what he was asked to do. It's as simple as that.
Hence, I see no reason for this debate to continue...
Be patient!
This bug will be fixed soon...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #17 on: April 05, 2006, 03:16:55 pm »
i would propose to set "full comandline logging" as default setting anyways

There's a reason for the default setting being "simple logging": It helps new users (mostly newbies) and makes C::B look a little more user-friendly. Believe it or not, long command-lines can intimidate new users (if they 're coming from the windows land). We don't want that.
And most importantly: it's a setting you can easily change once and never have to worry about it anymore.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #18 on: April 05, 2006, 03:32:48 pm »
i would propose to set "full comandline logging" as default setting anyways

There's a reason for the default setting being "simple logging": It helps new users (mostly newbies) and makes C::B look a little more user-friendly. Believe it or not, long command-lines can intimidate new users (if they 're coming from the windows land). We don't want that.
And most importantly: it's a setting you can easily change once and never have to worry about it anymore.

ok i understand your preference,

now to something completely different ...  :D
would you accept a third logging option,
which sends short build messages to the build-log by default,
and only if an error has occured the complete compiler or linker commandline ?

if you'd accept such an option, i would implement it.

takeshimiya

  • Guest
Re: save/copy messages in message window?
« Reply #19 on: April 05, 2006, 03:59:34 pm »
OK, I see the fault in your thinking: you only think about us and the support we offer in these boards.
But, please, stop for a while and think of a feature as exactly that: a feature, something that boosts productivity (at least for those who need it). When we add a feature, we don't add it for us but for the users.
If we were to think only about ourselves, most of current C::B features would not have been implemented unless we really needed them. Does this sound nice to you?
Little off-topic, but that's a perfect description of thomas attitude. It's like more inclined of a customer-client thinking instead of a community thinking.

I've noted this to you before, thomas, on a personal message which you never replied. I really don't like when you say everytime to the people here "no this, no that".

Instead you could said 'I' will not do that, or something less dissapointing than a simple 'no', like "you 'll have to wait until we close most bugs and after other imporant things". That keeps people with hopes and a smile, at least.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #20 on: April 05, 2006, 04:05:05 pm »
Well, it is possible since revision 2312.

Sorry, but how?

I have built C::B rev2312 both in Windows and in Linux (Ubuntu 5.10), but I do not have a context menu in the "Build messages" tab. Should I do something special to activate this menu?

Thank you.

Best wishes,
Michael

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #21 on: April 05, 2006, 04:11:26 pm »
Well, it is possible since revision 2312.

Sorry, but how?

I have built C::B rev2312 both in Windows and in Linux (Ubuntu 5.10), but I do not have a context menu in the "Build messages" tab. Should I do something special to activate this menu?

Thank you.

Best wishes,
Michael


Not "on" the tab, but "in" the messages list :)
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #22 on: April 05, 2006, 04:17:05 pm »
Well, it is possible since revision 2312.

Sorry, but how?

I have built C::B rev2312 both in Windows and in Linux (Ubuntu 5.10), but I do not have a context menu in the "Build messages" tab. Should I do something special to activate this menu?

Thank you.

Best wishes,
Michael


Not "on" the tab, but "in" the messages list :)

it doesn't work for me too ( be sure i tried also ""in" the messages list" )  8)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #23 on: April 05, 2006, 04:19:29 pm »
Not "on" the tab, but "in" the messages list :)

Yes, I have tried both on the tab and on the messages list, but without result.

Best wishes,
Michael

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: save/copy messages in message window?
« Reply #24 on: April 05, 2006, 06:29:49 pm »
Little off-topic, but that's a perfect description of thomas attitude.
Actually it is a misunderstanding of my intent, but never mind that.

Quote
I've noted this to you before, thomas, on a personal message which you never replied. I really don't like when you say everytime to the people here "no this, no that".
In fact, you are the only person who regularly gets to hear "No" without further comment from me. And it will stay like that.
I could explain why that is so, but honestly, I am not willing to spend the time for that, for it is in vain. Actually I did not intend to answer to this post either, but was convinced to do so anyway.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: save/copy messages in message window?
« Reply #25 on: April 05, 2006, 07:45:46 pm »
Quote
Quote
I've noted this to you before, thomas, on a personal message which you never replied. I really don't like when you say everytime to the people here "no this, no that".
In fact, you are the only person who regularly gets to hear "No" without further comment from me. And it will stay like that.
I could explain why that is so, but honestly, I am not willing to spend the time for that, for it is in vain.
Actually I did not intend to answer to this post either, but was convinced to do so anyway.
I don't have any problems with that personally, note that I was talking about other persons, not me.
Agree to disagree?
« Last Edit: April 05, 2006, 07:47:55 pm by Takeshi Miya »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #26 on: April 05, 2006, 09:40:21 pm »
Not "on" the tab, but "in" the messages list :)

Yes, I have tried both on the tab and on the messages list, but without result.

Best wishes,
Michael


Hmm, seems I forgot to commit? :lol:
Be patient!
This bug will be fixed soon...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #27 on: April 05, 2006, 09:50:35 pm »
Not "on" the tab, but "in" the messages list :)

Yes, I have tried both on the tab and on the messages list, but without result.

Best wishes,
Michael


Hmm, seems I forgot to commit? :lol:

Ah, ok :lol:.

Best wishes,
Michael

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #28 on: April 06, 2006, 01:36:02 am »
Not "on" the tab, but "in" the messages list :)

Yes, I have tried both on the tab and on the messages list, but without result.

Best wishes,
Michael


Hmm, seems I forgot to commit? :lol:

no you didn't forget  :)

the problem is, that there is some interaction with the DragScroll V0.19 plugin,
when i deactivate the DragScroll plugin i get the Message-log's Popupmenu too.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2777
Re: save/copy messages in message window?
« Reply #29 on: April 06, 2006, 02:01:03 am »
the problem is, that there is some interaction with the DragScroll V0.19 plugin,
when i deactivate the DragScroll plugin i get the Message-log's Popupmenu too.

Wups! I'll have a look at this and fix it.
Are we talking about Windows or Linux?

thanks
pecan

« Last Edit: April 06, 2006, 02:03:21 am by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2777
Re: save/copy messages in message window?
« Reply #30 on: April 06, 2006, 05:26:31 am »
Re: DragScroll vs. Build Messages Context menu confict.

Fixed in SVN 2315. Had to remove drag scrolling ListCtrl windows.

Hate to do this since drag scrolling the Find Results window is
very convenient.

Will try to figure out a better solution.

thanks
pecan


Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: save/copy messages in message window?
« Reply #31 on: April 06, 2006, 08:38:32 am »
Not "on" the tab, but "in" the messages list :)

Yes, I have tried both on the tab and on the messages list, but without result.

Best wishes,
Michael


Hmm, seems I forgot to commit? :lol:

no you didn't forget  :)

the problem is, that there is some interaction with the DragScroll V0.19 plugin,
when i deactivate the DragScroll plugin i get the Message-log's Popupmenu too.

Ah, thanks :)
That was strange because since I referred to a specific revision, I must had committed...
Be patient!
This bug will be fixed soon...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: save/copy messages in message window?
« Reply #32 on: April 06, 2006, 12:04:07 pm »
Hello,

I have just tried it in Ubuntu 5.10 and it works fine :D. I just wonder why you cannot simply click anywhere in the window list, but on a message to get the context menu.

Best wishes,
Michael

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #33 on: April 06, 2006, 01:11:33 pm »
Re: DragScroll vs. Build Messages Context menu confict.

Fixed in SVN 2315. Had to remove drag scrolling ListCtrl windows.

Hate to do this since drag scrolling the Find Results window is
very convenient.

Will try to figure out a better solution.

Wouldn't it be possible to skip the event for further processing after drag-scrolling ?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2777
Re: save/copy messages in message window?
« Reply #34 on: April 06, 2006, 02:09:10 pm »

Wouldn't it be possible to skip the event for further processing after drag-scrolling ?

Have found the problem. Wouldn't you guess....A missing event.Skip().
Man, it's just too easy to forget 'em. We need an auto_event.Skip() like
an auto_ptr.

Will commit after testing on linux. Then we'll have listctrl scrolling back.

thanks
pecan


Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: save/copy messages in message window?
« Reply #35 on: April 06, 2006, 02:14:43 pm »
Have found the problem. Wouldn't you guess....A missing event.Skip().
found it too and patched it locally, works fine again  :)

btw. many thanks for this great plugin !