This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213753 - Misleading message in automatic JUnit installation
Summary: Misleading message in automatic JUnit installation
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Importer (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 13:45 UTC by Stepan Zebra
Modified: 2012-06-26 13:58 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message screenshot (23.28 KB, image/png)
2012-06-07 13:45 UTC, Stepan Zebra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Zebra 2012-06-07 13:45:02 UTC
Created attachment 120499 [details]
message screenshot

Product Version: NetBeans IDE Dev (Build 201206070001)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

After fresh IDE installation, a notification is shown that JUnit wasn't installed, because the IDE doesn't have permission to write to it's installation directory. Upon clicking Show More link in the notification, a message window is shown (see attachment).

This message seems very confusing to me:

1) I'm not native english speaker, so I might just be wrong on this, but the current text sounds to me that if I want to install JUnit into IDE's installation directory (as recommended), there are two ways to do it:
either a) run IDE with required permissions
or b) install JUnit into userdir
So if I'm reading it right, the second part obviously doesn't make sense.

2) The current message states that if I want to perform the installation, I should run the IDE with required permissions. If I exit the IDE and run it again with those permissions, nothing happens, because the automatic JUnit installation is invoked only on the first startup. If it's not feasible to invoke the automatic installation again after the restart of the IDE, it should be somehow noted in the message that I must also manually invoke the JUnit installation after restart to continue with the process.

3) The button in this dialog has label "Install anyway". Along with the current message, it's not clear whether pushing this button will lead to installation to the userdir or to some action to acquire the write permission to the IDE's installation directory and then installing there.
Comment 1 Libor Fischmeistr 2012-06-11 07:39:21 UTC
Fixed in changeset: core-main/rev/d006bbbd83e1

The message is not shown any more. Now it tries to install JUnit to NB installation folder. In case of failure it silently installs JUnit into userdir.
Comment 2 Stepan Zebra 2012-06-11 09:24:12 UTC
(In reply to comment #1)
> Fixed in changeset: core-main/rev/d006bbbd83e1
> 
> The message is not shown any more. Now it tries to install JUnit to NB
> installation folder. In case of failure it silently installs JUnit into
> userdir.

I'm a little surprised to see this. I thought this behavior was rejected...
Comment 3 Quality Engineering 2012-06-12 13:16:51 UTC
Integrated into 'main-golden', will be available in build *201206120719* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d006bbbd83e1
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #213753: Misleading message in automatic JUnit installation
Comment 4 Stepan Zebra 2012-06-14 09:12:34 UTC
I still see the same message in 201206140001.
Comment 5 Jiri Rechtacek 2012-06-19 07:56:30 UTC
(In reply to comment #1)
> Fixed in changeset: core-main/rev/d006bbbd83e1
> 
> The message is not shown any more. Now it tries to install JUnit to NB
> installation folder. In case of failure it silently installs JUnit into
> userdir.

That's wrong. This changeset will be rollback. If the case JUnit was installed in userdir, it will not work properly in some cases. That's the reason why prevent users to install JUnit into userdir.
Comment 6 Jiri Rechtacek 2012-06-19 08:03:50 UTC
(In reply to comment #0)
> Created attachment 120499 [details]
> message screenshot
> 
> Product Version: NetBeans IDE Dev (Build 201206070001)
> Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
> System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
> 
> After fresh IDE installation, a notification is shown that JUnit wasn't
> installed, because the IDE doesn't have permission to write to it's
> installation directory. Upon clicking Show More link in the notification, a
> message window is shown (see attachment).
> 
> This message seems very confusing to me:
> 
> 1) I'm not native english speaker, so I might just be wrong on this, but the
> current text sounds to me that if I want to install JUnit into IDE's
> installation directory (as recommended), there are two ways to do it:
> either a) run IDE with required permissions
Wording needs another review.

> or b) install JUnit into userdir
> So if I'm reading it right, the second part obviously doesn't make sense.
> 
> 2) The current message states that if I want to perform the installation, I
> should run the IDE with required permissions. If I exit the IDE and run it
> again with those permissions, nothing happens, because the automatic JUnit
It should be fixed.

> installation is invoked only on the first startup. If it's not feasible to
> invoke the automatic installation again after the restart of the IDE, it should
> be somehow noted in the message that I must also manually invoke the JUnit
Or use Broken Library Resolver. I think it's acceptable workaround for IDE users.
> installation after restart to continue with the process.
Comment 7 Jiri Rechtacek 2012-06-20 10:33:10 UTC
http://hg.netbeans.org/core-main/rev/b38ec52cae81
Comment 8 Jiri Rechtacek 2012-06-20 13:27:09 UTC
http://hg.netbeans.org/releases/rev/961bbf4412a1
Comment 9 Quality Engineering 2012-06-21 02:23:36 UTC
Integrated into 'releases', will be available in build *201206202200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/961bbf4412a1
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #213753: remove warning when JUnit was install into userdir
(transplanted from b38ec52cae81c59b9630458a87bc20abacd6f3df)
Comment 10 Quality Engineering 2012-06-22 04:47:58 UTC
Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b38ec52cae81
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #213753: remove warning when JUnit was install into userdir
Comment 11 Stepan Zebra 2012-06-26 08:30:37 UTC
There is no message now and the JUnit plugin is being installed silently into userdir. Is this the desired result?
Comment 12 Jiri Rechtacek 2012-06-26 08:54:12 UTC
(In reply to comment #11)
> There is no message now and the JUnit plugin is being installed silently into
> userdir. Is this the desired result?

Yes
Comment 13 Stepan Zebra 2012-06-26 13:58:43 UTC
verified in 7.2 RC