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 205840

Summary: Text display when mouse over code-fold not correct
Product: editor Reporter: err <err>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: REOPENED ---    
Severity: normal CC: athompson, berniev, jiriprox, markiewb, maxceem, Olamagato-wtf, sdedic, Selpi
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 216404    
Attachments: visual example of problem
visual example of problem as png
whole workspace png
config from userdir

Description err 2011-12-02 12:08:25 UTC
Created attachment 113753 [details]
visual example of problem

The .png is for a manual fold; a java method fold shows the same problem.

Product Version: NetBeans IDE 7.1 RC1 (Build 201111242103)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 err 2011-12-02 12:11:33 UTC
Created attachment 113754 [details]
visual example of problem as png

Sigh, re-attach as .png content type.
Comment 2 Svata Dedic 2011-12-02 12:44:55 UTC
Cannot reproduce on some random picked files (tested on 7.1RC1). 

Please provide a screenshot of the entire workspace - possibly some custom layout of TopComponents may affect the wrapping.
It would be best if you could provide the file itself + ZIP your userdir (the config/ part) so I can check whether some specific user formatting or wrap settings cause this defect.
Comment 3 err 2011-12-02 13:02:21 UTC
Will attach png of whole workspace. Will attach config zip. I can go to any file in project, collapse anything, see the problem (so not including source file).
Comment 4 err 2011-12-02 13:03:34 UTC
Created attachment 113756 [details]
whole workspace png
Comment 5 err 2011-12-02 13:09:39 UTC
Created attachment 113758 [details]
config from userdir

line wrap words
Comment 6 err 2011-12-02 13:12:47 UTC
BTW, the expanded comment is:
     * ViManager is partially initialized; this event is fired from
     * {@link #setViFactory(com.raelity.jvi.ViFactory)} after the
     * {@link ViInitialization} methods are invoked. old/new are null */
Comment 7 Svata Dedic 2011-12-05 08:40:32 UTC
reproduced when using entire user dir; trying to narrow to the root cause
Comment 8 Svata Dedic 2011-12-06 08:47:12 UTC
The defect actually happens when Java is allowed to word wrap after words, other user settings do not seem to have effect.

After discussion with Mila, reassigning to print&paint (wordwrap implementation).
Comment 9 Svata Dedic 2011-12-09 05:40:04 UTC
*** Bug 206090 has been marked as a duplicate of this bug. ***
Comment 10 err 2011-12-09 06:05:09 UTC
Added patch-candidate to whiteboard, since the dup'd bug 206090 was set that way by jiriprox. (corrected spelling of candidate)
Comment 11 err 2011-12-14 15:26:19 UTC

The same type of problem appears with
    Language: Java
in the "Preview:"
Comment 12 Miloslav Metelka 2012-06-06 13:00:38 UTC
Appears to work fine in current builds.
Comment 13 Jiri Prox 2012-08-13 07:43:22 UTC
*** Bug 216768 has been marked as a duplicate of this bug. ***
Comment 14 Svata Dedic 2012-09-07 11:16:20 UTC
Still exists in NB-7.2 release. See report #216404, the attachment from 'berniev' contains wrapping 'anywhere' and I can produce a wrong sizing of the tooltip editor component in PHP. berniev's config does not wrap for java files (all files) and the error is not visible for java content. Switch on 'wrap anywhere' for all files to produce the defect in Java editors too.

Also seen in NB-7.3 dev, custom build 20120906-e98c6fcd1598
Comment 15 Svata Dedic 2012-09-07 11:38:29 UTC
*** Bug 216404 has been marked as a duplicate of this bug. ***
Comment 16 Svata Dedic 2012-10-04 13:21:54 UTC
*** Bug 219523 has been marked as a duplicate of this bug. ***
Comment 17 Svata Dedic 2012-11-21 07:50:23 UTC
*** Bug 222112 has been marked as a duplicate of this bug. ***
Comment 18 Milutin Kristofic 2013-01-08 14:59:34 UTC
*** Bug 215906 has been marked as a duplicate of this bug. ***
Comment 19 chiliNUT 2015-10-22 20:26:37 UTC
This bug is still present in 8.0.2 and is annoying!