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.
Continuous development build #050110 of NetBeans 4.1 Windows XP, JDK 1.5 build #64 Description: ============ User has to type all end tags manually since code completion fails to work completely in this situation. This is serious regression against NetBeans 4.0. Steps to reproduce: =================== 1. Create new project and new HTML file from template inside. 2. Type "</" at line 8 and press CTRL+Space. 3. Simply put nothing happens.
I notice this as well. When I had page with code: <f:view> <h1>This is my first JSF application from scratch.</| </f:view> adn ivoke the CC on the position which is represented with the char '|' the cc entered f:view> as closing tag, not h1>
the problem arises from HTML syntax changes. Will be fixed in 4.1.
*** Issue 54247 has been marked as a duplicate of this issue. ***
I'd like a test be written to prevent such basic regressions from happening in future.
The HTMLSyntaxSupport has to be rewrited. The getElementChaing and getNextElement don't know anything about the new tokens, which were introduce by Marek, and don't work properly.
Tests need to be written to make sure commits like this will not happen in future.
fixed in trunk. Checking in HTMLCompletionQuery.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v <-- HTMLCompletionQuery.java new revision: 1.5; previous revision: 1.4 done Checking in HTMLSyntaxSupport.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLSyntaxSupport.java,v <-- HTMLSyntaxSupport.java new revision: 1.4; previous revision: 1.3 done
I am sorry but I have to reopen this issue. Now there is always NPE thrown everytime one types </ and waits for code completion. Steps to reproduce: =================== 1. Create new sample web application project. 2. Type </ at line 21 of index.jsp and wait for code completion. 3. NPE will be thrown.
Created attachment 20177 [details] NPE in RequestProcessor when end tags should be offered.
The issue you described is caused by another problem - see Issue #54404. Petr Pisl has already fixed it in trunk and he will integrate it is qbuild branch as well.
Okay, I am sorry then. Verified in continuous development build #20050203-1408 of NetBeans 4.1. Please integrate the fix into QBE200502012121 branch.
fixed in QBE200502012121 as well. Checking in HTMLCompletionQuery.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v <-- HTMLCompletionQuery.java new revision: 1.4.4.1; previous revision: 1.4 done Checking in HTMLSyntaxSupport.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLSyntaxSupport.java,v <-- HTMLSyntaxSupport.java new revision: 1.3.4.1; previous revision: 1.3 done