Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297749 - dev-util/netbeans unconditionally removes all zipped files from docs folder causing ocassional crashes
Summary: dev-util/netbeans unconditionally removes all zipped files from docs folder c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL: https://netbeans.org/bugzilla/show_bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 09:20 UTC by Hubert Kowalski
Modified: 2009-12-22 17:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to introduce conditional removal (nb-6.8.patch,683 bytes, patch)
2009-12-22 13:04 UTC, Hubert Kowalski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Kowalski 2009-12-21 09:20:34 UTC
Because current ebuild for netbeans unconditionally removes all documentation zips from docs folder, when netbeans wants to show some description it is sure to be existent - crash occurs with NullPointerException, as described in netbeans bugzilla, bug 178724.

Because of this unconditional removal, I simply cannot see hints regarding code I currently write (which would be very helpful).

Reproducible: Always

Steps to Reproduce:
1.Write some code, for example some CSS
2.Wait for auto-hint

Actual Results:  
Information about exception "NullPointerException at org.netbeans.modules.css.editor.CssHelpResolver.getHelpZIPURLasString"

Expected Results:  
Hint regarding auto-hint code

The removal of files is absolutely unconditional in ebuild. It should however be conditional - if I want to enable documentation, I usually want it, so I propose to introduce either another use-flag or based on doc use-flag do not remove the zips.

However exposed bug is now fixed, as seen in reference link
Comment 1 Hubert Kowalski 2009-12-22 13:04:05 UTC
Created attachment 213750 [details, diff]
patch to introduce conditional removal

I've created a small patch that removes documentation zips only if doc use flag is not set. Netbeans installed with this patch is working fawlesly when helping with code.
Comment 2 Miroslav Šulc gentoo-dev 2009-12-22 17:17:38 UTC
fixed in netbeans-6.8-r1. you do not have to specify "doc" use flag to have the bug fixed, ebuild now does not remove the docs at all. "doc" use flag is used in netbeans to generate netbeans apidocs.

thx for reporting the bug.