Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expansion does not work for keywords when another tree is referenced in the .cli file #73

Closed
DeekshaBhandary opened this issue Feb 8, 2022 · 2 comments

Comments

@DeekshaBhandary
Copy link

Issue is seen when redundant keywords are present in the referenced tree at the same hierarchy

consider tree syntax :
file:op.cli
treename= "op";
show {
word1;
word2;
}

file : test.cli
show {
word3;
word4;
}
@op;

cli: op> show <PRESS ?>
word1
word2
cli :op>
cli: cfg><PRESS ?>
show
show                    <------------------ duplicate keywords
cli: cfg> show <PRESS ?>     <-------------------no suggestion are seen

Expected behaviour :

cli: cfg> show <PRESS ?>
word1
word2
word3
word4
cli: cfg>

@olofhagsand
Copy link
Member

Related to clicon/clixon#301 but somewhat larger in that not only duplicate keywords but also no expanded suggestions are seen.
As with #301 it worked in 5.3 but is broken in 5.4 and 5.5

olofhagsand added a commit that referenced this issue Feb 10, 2022
@DeekshaBhandary
Copy link
Author

Issue is solved. Thank You

olofhagsand added a commit that referenced this issue Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants