Bug 226911 - Improve line endings in "NetBeans IDE - Warning" window and allow copy whole text by right-click of mouse
Improve line endings in "NetBeans IDE - Warning" window and allow copy whole ...
Status: REOPENED
Product: platform
Classification: Unclassified
Component: Module System
7.3
PC Windows 7
: P3 (vote)
: TBD
Assigned To: Jaroslav Tulach
issues@platform
: UI
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-01 18:00 UTC by az.pengwang
Modified: 2013-11-21 15:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Screen Capture of the Warning Window (112.39 KB, image/png)
2013-03-01 18:00 UTC, az.pengwang
Details
Request log file (9.56 KB, text/plain)
2013-08-23 19:43 UTC, az.pengwang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description az.pengwang 2013-03-01 18:00:51 UTC
Created attachment 132081 [details]
Screen Capture of the Warning Window

There are two issues:
1. Right click of the select message has no pop-up menu (to allow copy). I have to use keyboard and do Ctrl-A to select all, and Ctrl-C to copy the message out.

2. The message copied out seems all in one line. The warning window displays the warning/error messages in multiple lines (as attached). However, when I copy the message out, there seems only a Space (0x20) between each line instead of any kind of EOL.

Another suggestion is, if there is a button to save the messages to a file, it would be better.
Comment 1 Marian Mirilovic 2013-03-04 09:37:41 UTC
Reporter,
the whole message is also stored into log file http://wiki.netbeans.org/FaqLogMessagesFile ... we can't do anything without this log IMHO (so please attach it here and reopen).

Please use main menu (Help | Report Issue ...) in the future and the requested log file will be attached to the issue automatically. Thanks in advance.
Comment 2 az.pengwang 2013-08-23 19:43:03 UTC
Created attachment 139154 [details]
Request log file

I don't understand how this log file would be helpful. I am not sure if this reported issue is understood correctly. This issue is not about the failure that NetBeans cannot start. This issue is about the error/warning message window itself. 1. Mouse right-click is not supported in this message window to select and copy out the messages, and I have to use keyboard Ctrl-A and Ctrl-C to copy out the messages. 2. The message copied out are in one string line, although it's displayed as multi lines in the message window. What I found out is, the copied out string uses 0x20 where it should be an EOL.

Yes, now i know the same messages can be found in this messages.log file. However, copy out the messages from the pop-up windows is more easier and convenience.

Anyway, it's only a minor issue.
Comment 3 Jaroslav Tulach 2013-11-18 14:05:52 UTC
Looks like some OSGi bundles are missing. This has previously happened due to aggressive uninstall attempts by autoupdate. However without more info it is hard to tell what is wrong. 

There should be updater.log file in your $userdir/var/log/ directory, can you please attach it as well?
Comment 4 az.pengwang 2013-11-18 17:07:25 UTC
I am sorry that I don't have the updater.log file at the specified location.

The problem was found when I tried to install a new C/C++ version NetBeans, which has a bug reported as https://netbeans.org/bugzilla/show_bug.cgi?id=226910.

It seems not autoupdate related to me. However, you mentioned "aggressive uninstall", which may be right because I uses the same existing $netbeans_default_userdir for the new installation.
Comment 5 Jiri Rechtacek 2013-11-20 16:36:44 UTC
(In reply to az.pengwang from comment #4)
> I am sorry that I don't have the updater.log file at the specified location.
> 
> The problem was found when I tried to install a new C/C++ version NetBeans,
> which has a bug reported as
> https://netbeans.org/bugzilla/show_bug.cgi?id=226910.
> 
> It seems not autoupdate related to me. However, you mentioned "aggressive
> uninstall", which may be right because I uses the same existing
> $netbeans_default_userdir for the new installation.

Reassigning back to module system.
Comment 6 Jiri Rechtacek 2013-11-20 16:38:56 UTC
(In reply to az.pengwang from comment #4)
> I uses the same existing $netbeans_default_userdir for the new installation.

Using the same userdir for different installation might cause problems like this. That's the reason for following the install instruction for NetBeans IDE.
Comment 7 az.pengwang 2013-11-21 15:30:27 UTC
(In reply to Jiri Rechtacek from comment #6)
> (In reply to az.pengwang from comment #4)
> > I uses the same existing $netbeans_default_userdir for the new installation.
> 
> Using the same userdir for different installation might cause problems like
> this. That's the reason for following the install instruction for NetBeans
> IDE.

Just to make sure it's not confused. Do you mean, use the same userdir will cause the error as we saw, or it will cause the error message popup window not selectable by right-click of mouse?

This issue is not about the error message itself. This issue is about the text in the pop-up window are not selectable by the right-click of mouse; and there is no EOL between each line.

On the other hand, it isn't common that same userdir is used when the new version of Netbeans gets installed? (Just to clarify, userdir is different from the cachedir; and I did uninstall before install the new copy). The reason I highlighted the userdir is, I am using a non-default userdir directory.
Comment 8 Jiri Rechtacek 2013-11-21 15:55:16 UTC
(In reply to az.pengwang from comment #7)
> (In reply to Jiri Rechtacek from comment #6)
> > (In reply to az.pengwang from comment #4)
> > > I uses the same existing $netbeans_default_userdir for the new installation.
> > 
> > Using the same userdir for different installation might cause problems like
> > this. That's the reason for following the install instruction for NetBeans
> > IDE.
> 
> Just to make sure it's not confused. Do you mean, use the same userdir will
> cause the error as we saw, or it will cause the error message popup window
> not selectable by right-click of mouse?

Oh, really we got into a small confusion, I can see two problems which were mixed together:
@Message window: I'm going modify the summary of this issue to just UI problem of attached dialog.
@sharing userdir: It's highly recommended to use new userdir for each new release (ie. NB7.3 uses ...\Netbeans\7.3, NB7.4 uses ...\NetBeans\7.4 and so on) and then use the Import Settings feature for re-using the same settings between different versions. To re-use the same userdir for different installation might work and it's on your risk.

I hope it's a little bit clearer now.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo