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.
This is a follow up to bug http://netbeans.org/bugzilla/show_bug.cgi?id=186007 NetBeans correctly puts the cursor on the right line, however it is not between the elements. Compare with html completion. To reproduce, create any xml element in an xml document, for example <foo>. If I create the <foo> element and then press ctrl-space I expect it to look like this: <foo>|</foo> where "|" is the location of the cursor. When completing in an html document, and when completing in 6.8 it works as expected. When completing in 6.9-rc1 the cursor is positioned like this (after the closing element): <foo></foo>| I have seen this on both windows and linux.
Fixed in trunk: http://hg.netbeans.org/main/rev/8308d6473440
Integrated into 'main-golden', will be available in build *201005300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8308d6473440 User: Alex Petrov <alexpetrov@netbeans.org> Log: Fix for issue [#186916]. XML Code Completion: Cursor not placed properly (continued).
I tried that build and it worked just as I expected it to. Thanks. The fix didn't make it into RC2, but I assume that is because of the fix being at almost the same time as the RC release. Is that true? Should we expect it in the the next RC (if there is one) or the full release?
The fix will be available in the next NB release: NB 6.9.1.
Please verify bugfix for this bug, so it can be included in release691 repository. Thanks, -R
Verified on (2010-06-16) http://nephrite.russia.sun.com:8080/hudson/job/main/lastSuccessfulBuild/artifact/cache/latest/main_244_20100616_1740.zip Product Version: NetBeans IDE 6.9 RC2 (Build 201005312001) Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16 System: Linux version 2.6.18-8.el5 running on i386
Transplanted to release691 as d48b350726ad
*** Bug 187807 has been marked as a duplicate of this bug. ***
cannot reproduce in NetBeans IDE 6.9.1 Dev (Build 201007072301) --> verified in 6.9.1
Verified as well. Product Version: NetBeans IDE 6.9.1 Dev (Build 201007072301) Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)