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 224767 - Block comments at the beginning of the document fold together with block comments above the first function
Summary: Block comments at the beginning of the document fold together with block comm...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-11 18:14 UTC by JTBlum
Modified: 2013-05-30 01:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (19.00 KB, image/png)
2013-01-14 07:31 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JTBlum 2013-01-11 18:14:35 UTC
This happens even if one is a doc comment and the other isn't.

Product Version = NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Operating System = Linux version 3.2.0-35-generic running on amd64
Java; VM; Vendor = 1.7.0_06
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.2-b09
Comment 1 Martin Fousek 2013-01-14 06:24:07 UTC
Please could you provide sample code where it happens to you? I'm not able to reproduce using common two comments on the beginning of the file like:
/**
 * My comment of the file.
 */

/**
 * comment to the function
 */
function myFunction() {

}
Comment 2 Vladimir Riha 2013-01-14 07:31:10 UTC
Created attachment 130164 [details]
screenshot

The snippet shows the problem in RC1. Once there is some code between the 2 doc blocks, it is OK


Product Version: NetBeans IDE 7.3 RC1 (Build 201301112100)
Java: 1.7.0_10; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Martin Fousek 2013-01-14 07:48:18 UTC
(In reply to comment #2)
> Created attachment 130164 [details]
> screenshot
> 
> The snippet shows the problem in RC1. Once there is some code between the 2 doc
> blocks, it is OK

Thanks Lado for the screenshot. Actually I tried that once more and now I was able to reproduce the issue as well. Targeted to the next milestone, thanks for reporting.
Comment 4 Martin Fousek 2013-05-29 11:28:58 UTC
Thanks for reporting the issue. It looks that the folds were processed since second token which was wrong. Should be fixed soon in development builds.

Fixed in web-main #edb4d0d100d2.
Comment 5 Quality Engineering 2013-05-30 01:37:33 UTC
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/edb4d0d100d2
User: Martin Fousek <marfous@netbeans.org>
Log: #224767 - Block comments at the beginning of the document fold together with block comments above the first function