[overlord-issues] [JBoss JIRA] (SRAMP-534) Content assist in S-RAMP shell not working well for maven command

Brett Meyer (JIRA) issues at jboss.org
Thu Jul 31 15:52:29 EDT 2014


    [ https://issues.jboss.org/browse/SRAMP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989674#comment-12989674 ] 

Brett Meyer commented on SRAMP-534:
-----------------------------------

Hey [~stalep], it appears that if command namespace results in a CompleteOperation with > 1 completionCandidates, tab completion works great.  If there's only 1 command in the namespace, it's getting chopped off.  Examples:

audit:[TAB] -> audit:ditTrail (should be audit:showAuditTrail)
jvm:[TAB] -> jvm:us (should be jvm:status)
maven:[TAB] -> maven: (should be maven:deploy)

It looks like it's chopping off namespaces.length()+1 (includes the colon).  Are we expected to manually call CompleteOperation#setOffset?  When Console#completeOperation hands us the CompleteOperation, #cursor == 4 and #offset == 0 (using jvm: as an example).  If I include the following, it works as expected:
{code}
                if (completeOperation.getCompletionCandidates().size() == 1) {
                    completeOperation.setOffset(completeOperation.getCursor());
                }
{code}

> Content assist in S-RAMP shell not working well for maven command
> -----------------------------------------------------------------
>
>                 Key: SRAMP-534
>                 URL: https://issues.jboss.org/browse/SRAMP-534
>             Project: S-RAMP
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Shell
>    Affects Versions: 0.5.0.Beta3
>            Reporter: Stefan Bunciak
>            Assignee: Brett Meyer
>
> Content assist/command completion in S-RAMP shell did not provide me with possible commands for 'maven' namespace. 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the overlord-issues mailing list