You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Matthias Bläsing (JIRA)" <ji...@apache.org> on 2018/07/27 22:34:00 UTC

[jira] [Commented] (NETBEANS-1083) Discovered maven version is added to existing version in pom.xml

    [ https://issues.apache.org/jira/browse/NETBEANS-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560423#comment-16560423 ] 

Matthias Bläsing commented on NETBEANS-1083:
--------------------------------------------

A preliminary analysis:

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:
{code:java}
org.netbeans.modules.maven.grammar.spi.AbstractSchemaBasedGrammar.MyTextElement{code}
does not override
{code:java}
org.netbeans.modules.xml.spi.dom.AbstractNode.getLength(){code}
and this results in missing/wrong delete information.

> Discovered maven version is added to existing version in pom.xml
> ----------------------------------------------------------------
>
>                 Key: NETBEANS-1083
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1083
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 9.0
>         Environment: Windows 10
> Java 8u172
>            Reporter: Kenneth Fogel
>            Priority: Major
>             Fix For: 9.0
>
>
> <version>1.5</version>
> Now I position the cursor before the period and type a period. As always I get a list of all versions. If I select one then the new version value after the period is inserted between the exiting values. It should be deleting the existing value and replacing it with the new one..
> <version>1.7.25.5</version>
> when it should be
> <version>1.7.25</version>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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