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 113175 - Error on deleting folded Javadoc
Summary: Error on deleting folded Javadoc
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-20 09:04 UTC by ulfzibis
Modified: 2007-11-26 13:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Deleted Javadoc as code fold (15.70 KB, image/jpeg)
2007-08-20 23:04 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2007-08-20 09:04:27 UTC
Concerning NB IDE 6.0 M10

Steps:
- New --> Java Class
- Collapse all Javadoc
- Mark first line (the folded code) in the source code
- Hit "Del"-key
Error:
- The pattern for the Javadoc doesn't disappear.
- Code Fold processing doesn't work any more.
Comment 1 Max Sauer 2007-08-20 14:05:10 UTC
I'm not able to reproduce your issue. Could you please try a newer build, clean userdir and attach you messages.log file?
Thanks.
Comment 2 ulfzibis 2007-08-20 16:07:30 UTC
What part of userdir should be deleted? I don't want to delete all my settings.

Sorry, no time and disk-space for installing any dev-build, I'll wait for the alpha, or beta release.

Correction:
- The pattern for the Javadoc code fold doesn't disappear.
Comment 3 Vitezslav Stejskal 2007-08-20 19:54:58 UTC
Just use another empty userdir by passing --userdir /tmp/whatever from command line. I also can't reproduce this in a
dev build. The folded text is deleted just fine. Maybe something that has already been fixed since M10.
Comment 4 ulfzibis 2007-08-20 23:04:06 UTC
Created attachment 46921 [details]
Deleted Javadoc as code fold
Comment 5 ulfzibis 2007-08-20 23:11:46 UTC
I have deleted --userdir\.netbeans\6.0m10\var\cache\index\0.3 and tried it once more.
Result see attachment.

Product Version: NetBeans IDE 6.0 M10 (build 200706281431)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Userdir: C:\Dokumente und Einstellungen\ich\.netbeans\6.0m10
Comment 6 Vitezslav Stejskal 2007-08-21 12:38:23 UTC
Well, I'm not sure what effect deleting .netbeans\6.0m10\var\cache\index\0.3 had, but probably not much on the editor
settings that reside under .netbeans\6.0m10\config\Editors. As I suggested, try passing from the command line --userdir
c:\temp\whatever or some other empty or non-existent folder. The IDE will create and initialize a new userdir.

Anyway, I just tried with M10 and it seems to be working fine, so I'm not sure what is wrong. Could you please try to
analyze it a bit further? Or perhaps zip-up your userdir and attach it here or send it to my nb.org email. Thanks.
Comment 7 ulfzibis 2007-11-23 15:42:24 UTC
In M10 I observed an additional curios behaviour:
- The first line should be marked by mouse, not by arrow keys to reproduce the error.
- If I hit the "Del"-key twice, the Javadoc pattern disappeared correctly, but also the following line, and after this
the code folds work normal.

In Beta 2 the error seems to be resolved.

Comment 8 Jiri Prox 2007-11-26 09:54:34 UTC
I cannot reproduce it in current dev build as well. Closing as WFM. Feel free to reopen when it occur again. 
Comment 9 ulfzibis 2007-11-26 13:15:11 UTC
BTW, the user dir has around 80 MByte. That's the reason, I didn't send it.

It seems to work in RC2 even after using a copy of M10's user dir.