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.
Summary: | Highlights sequence for SyntaxHighlighting layer reports invalid offsets | ||
---|---|---|---|
Product: | editor | Reporter: | Miloslav Metelka <mmetelka> |
Component: | Painting & Printing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | MackSix, mmirilovic, vriha |
Priority: | P2 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Sample jsp where the problem occurs |
After offline discussion with Mila, let's make it 73patch2 candidate since it happens randomly (+to recover one has to simply reopen file), it seems to affect only coloring and there is now other feedback from users *** Bug 228739 has been marked as a duplicate of this bug. *** Another use case from issue 228739: "adding the elements from the palatte, the color highlighting is broken and most everything turn black in the are to the end of the file." Milo, do you think it can be fixed for 7.3.1? I'd vote for it since it really doesn't look good Finally I was able to reproduce on the following JSP: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <body> <jsp:useBean </body> </html> When placing cursor here <jsp:useBean | and typing 'i' followed by Ctrl+SPACE which fills in 'id="|"' and typing 'ab' followed by Enter and pressing Ctrl+Z leads to an inconsistent token hierarchy. One of embedded token lists of the TH has doubled contained tokens. It affects syntax highlighting as well since the highlighting layer reports offset boundaries of the same token(s) twice so the layer becomes disabled for the particular coloring. http://hg.netbeans.org/jet-main/rev/79e1dfc5eef4 Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/79e1dfc5eef4 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #227419 - Highlights sequence for SyntaxHighlighting layer reports invalid offsets. Thanks a lot. It seems to fix the issue (at least I can't reproduce it anymore). I found issue 230077 but I think it is not related (moreover, I reproduced it on dev build 201305192300, so before this fix). Verified in trunk Product Version: NetBeans IDE Dev (Build 201305212300) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb) In release73: 79e1dfc5eef4 transplanted as e7e1dc289d75 Integrated into 'releases', will be available in build *201305232200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/e7e1dc289d75 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #227419 - Highlights sequence for SyntaxHighlighting layer reports invalid offsets. (transplanted from 79e1dfc5eef4613777afe645f51f96fd757c91fe) v. Product Version: NetBeans IDE 7.3.1 (Build 201305272201) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb) |
Created attachment 132564 [details] Sample jsp where the problem occurs Transferred from issue 225341: The CSS issue is fixed, thanks. But JSP issue is still valid, the issue is with SyntaxHighlighting (unlike CSS and Semantic) - please check attached IDE log To reproduce: - paste text of attached JSP file to JSP file in IDE couple of times Product Version: NetBeans IDE Dev (Build jet-main-7697-on-20130313) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)