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: | Code Completion replaces opening tag | ||
---|---|---|---|
Product: | xml | Reporter: | tonybeckham <tonybeckham> |
Component: | Schema Tools | Assignee: | Samaresh Panda <samaresh> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 138486 | ||
Attachments: |
before code completion
after code completion suggestion is chosen pre completion state post completion state |
Description
tonybeckham
2008-01-25 06:16:46 UTC
Created attachment 55547 [details]
before code completion
Created attachment 55548 [details]
after code completion suggestion is chosen
*** Issue 129646 has been marked as a duplicate of this issue. *** Fix Verified: Product Version: NetBeans IDE Dev (Build 200805280004) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb) I can still reproduce the issue consistently (yesterday's nightly build). Type the following in a new Spring XML Configuration file and place the cursor at location denoted by |: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <bean name="main" class="javaapplication18.Main" init-method="" p:me-ref="sam" p:me=""> <property name="me.me.me"/> </bean> | <import resource="sample/sam.xml"></import> <bean id="sam" abstract="true" autowire-candidate=""></bean> </beans> Insert an <import> tag and take the cursor over the tag as : <imp|ort Press CTRL+SPACE, the import tag is shown as a completion item. Please refer attachments to see pre and post completion editor state. I observe that this does not happen if the file has been saved after adding the <import> tag. Product Version = NetBeans IDE Dev (Build 080618) Operating System = Linux version 2.6.24-18-generic running on i386 Java; VM; Vendor = 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04; Sun Microsystems Inc. Runtime = Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_15-b04 Java Home = /home/rohanranade/jdk1.5.0_15/jre Created attachment 63083 [details]
pre completion state
Created attachment 63085 [details]
post completion state
I see same behavior, thank you for reopening. This was working but now it is not again. Fixed: http://hg.netbeans.org/main?cmd=changeset;node=7aa3515ca5ae. Do note that completion gets inserted at the offset and all other texts will move to the right after completion. Integrated into 'main-golden', will be available in build *200809100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/7aa3515ca5ae User: samaresh@netbeans.org Log: #125975 Code Completion replaces opening tag Still has same behavior as desc7. Product Version: NetBeans IDE Dev (Build 200810080201) Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57 System: Mac OS X version 10.5.5 running on x86_64; MacRoman; en_US (nb) Tony, what is broken here? In my fix I said that the remainder text will move to the right. Please explain what is broken? Also why do you think this is a P2 now? The steps from rohanranade in desc7 remain an issue. In my opinion this should be fixed. I agree that XML structure is not broken so this issue can be closed. However, I will create a new issue with regard to desc 7 and make it P3 for now but I think it should be a p2 for Netbeans.next. Original issue fixed CC does not replace opening tag Product Version: NetBeans IDE Dev (Build 200810080201) Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57 System: Mac OS X version 10.5.5 running on x86_64; MacRoman; en_US (nb) |