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.
Build: NetBeans IDE 7.4 (Build 201310111528) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Linux User Comments: GUEST: Add a html comment to the start of a php file. Went Bang on the ! key. GUEST: when i tried to write <!D , the program, not allow me write it. GUEST: Accidentally hit the \ key followed by the enter key instead of just enter after the closing brace of a constructor definition ckoebke: Open a <g:if> tag with a condition and try to close it inside a file, that does not contain the normal HTML structure. <g:if test="${!key}"> <g:set var="key" value="pageIndex" /> </g:if> <g:if test="${pageIndex}"> <div class="text-center"> <ul class="pagination pagination-sm"> <g:if test="${pageIndex > 0}"> <li> <a href="${createLink(action: actionName, params: params + [(key): pageIndex - 1])}">Previous</a> </li> </g:if> <g:each in="${(pageIndex-5)..(pageIndex+5)}"> <g:if test="${it >= 0 && it < pageCount}"> <li ${it == pageIndex ? 'class="active"' : ""}> <a href="${createLink(action: actionName, params: params + [(key): it])}">${it + 1}</a> </li> </g:if> </g:each> <g:if test="${pageIndex + 1 < pageCount}"> <li> <a href="${crea GUEST: adding a line of code to a file that had previosly been moved from parent folder to sub folder. GUEST: I typed <!DOCTYPE html{SPACEBAR} in a html document! P.S.: {SPACEBAR} is the key on my keyboard ;) GUEST: In HTML-Editor trying to type "<!--" before "TODO" but this Error comes immediately after "<" Stacktrace: java.lang.IllegalStateException: Lexer org.netbeans.modules.groovy.gsp.lexer.GspLexer@2a9ee93 returned null token but lexerInput.readLength()=2 lexer-state: GEND_TAG tokenStartOffset=945, readOffset=947, lookaheadOffset=948 Chars: "\n\n" - these characters need to be tokenized. Fix the lexer to not return null token in this state. at org.netbeans.lib.lexer.LexerInputOperation.checkLexerInputFinished(LexerInputOperation.java:452) at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:212) at org.netbeans.lib.lexer.inc.TokenListUpdater.relex(TokenListUpdater.java:627) at org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:280) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:351) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:226)
Created attachment 144253 [details] stacktrace
Created attachment 149037 [details] stacktrace I edited html code, there was a problem with space between attributes, something like rendered="#{aaa==true}"value="#{bbb}"
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=85298
Groovy lexer should be fixed to tokenize remaining chars of the input.
Created attachment 149056 [details] stacktrace Edit JSF xhtml file. Cursoe inside empty JSF expression #{} Press \
Bug verification procedure: 1. Create new grails project; 2. Open "Views and layouts"->error.gsp 3. In the end of the file, after "</html>", attempt to write anything. Raises the exception reported: "java.lang.IllegalStateException: Lexer org.netbeans.modules.groovy.gsp.lexer.GspLexer@52f828d2 returned null token but lexerInput.readLength()=2"
Created attachment 152629 [details] Proposed patch: keep tokenizing the input. As with the JSP lexer, this patch defines an ERROR token and returns it when the output can't be further tokenized.
Created attachment 154527 [details] stacktrace Editing a JFS XHTML file. <p><h:outputText value="#{moreSports. }" and cursor was to the right of moreSports. with code complete window up. I hit backspace and this exception was thrown. It's possible I het the | key instead of backspace. Will try to reproduce.
(In reply to MackSix from comment #8) > Created attachment 154527 [details] > stacktrace > > Editing a JFS XHTML file. > > <p><h:outputText value="#{moreSports. }" and cursor was to the right of > moreSports. with code complete window up. I hit backspace and this exception > was thrown. > > It's possible I het the | key instead of backspace. Will try to reproduce. Reproducible as per Comment 5. This is a JSF XHTML file and I am not using Groovy. Product Version: NetBeans IDE Dev (Build 201507040001) Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Patch seems to be OK. Thanks Bruno!
http://hg.netbeans.org/core-main/rev/872bee5fb2c3 Integrated Bruno's patch. Thanks a lot for your patch contribution Bruno!
Integrated into 'main-silver', will be available in build *201508210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/872bee5fb2c3 User: Jiri Kovalsky <jkovalsky@netbeans.org> Log: #240826: Preventing java.lang.IllegalStateException thrown from Groovy when editing HTML files.
Both the code snippet provided in the bug report and the bug verification procedure on comment 6 are now working. Tested with build 201508230002.
*** Bug 244664 has been marked as a duplicate of this bug. ***
*** Bug 246348 has been marked as a duplicate of this bug. ***