Am Freitag, den 27.07.2018, 23:41 +0200 schrieb Geertjan Wielenga:
> Or maybe, thanks to the changes in that PR, the current issue
> reported by

Please don't jump to conclusions. The issues are not identical and the
changeset is not the cause of the new bug.

Before the referenced changeset an invalid XML structure was created
when code completion was invoked inside the version tag. That was fixed
by the changeset.

Whether or not the whole version is replaced is a different matter.

The logic in the XML completion provider needs to be checked, as the
behavior is also present in the groupId completion.

It is this:

- if the selected value matches the current content, it replaces the
current text
- if the selected value is different, the suffix of the selected value
is inserted at the cursor position

I think the problem is in:

org.netbeans.modules.maven.grammar.spi.AbstractSchemaBasedGrammar.MyTextElement

does not override 

org.netbeans.modules.xml.spi.dom.AbstractNode.getLength()

and this results in missing/wrong delete information.

This is a very quick analysis without going to deep.

Maybe this already helps with fixing.

Greetings

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to