-
Notifications
You must be signed in to change notification settings - Fork 425
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
4.3.2->4.6.1 regression, incorrect autocompletion is generated for subcommand aliases, because of which autocomplete does not work for subcommand specified by alias. #1388
Comments
Thank you for raising this! That does look like a bug. Are you interested in providing a pull request for this? |
Yes, I'd like to provide it, but it seems that I don't understand the project sufficiently not to create more issues, and I cannot even build master using maven, no idea why... I'd have to invest more time than I have available(hypocrite, I know). The generating is in |
The project can be built with gradle: gradle clean build |
Sorry, I tried, but I give up. I'm apparently missing some information in several areas including even git (right after clone I have modified files from somewhere and I cannot get rid of them in any way /resetting/checkouting/staging/nothing Is it CRLF line ending normalization issue? Something else?). I don't have sufficient knowledge of gradle/your project to fix this issue; no idea how could I debug building of my project to debug autocomplete generation. I cannot do it in: clone—build—easily debug—fix way, and I cannot afford more. I'd like to help, but I spend like 90m and I'm still stuck just in preparation phase. I don't have more. Sorry. |
No worries. I’ll take a look when I have some time to spend on picocli again. |
TLDR autocompletion does not work for aliases.
Command defined as:
will generate autocompletion:
_complete_campTools() is top level function. My interpretation is, that cmds4 and cmds5 are generated duplicated. Both subcomand autocomplete functions are equal, but we test presence of wrong word in COMP_WORDS array, meaning that we cannot ever call rafk alias related function. Fixing it to
local cmds5=(rafk)
fixes the issue and autocomplete works again.Not sure if that's enough to find the issue, or whether some sub-standard coding on my part causes that. If you need smth more, I can help / share project.
The text was updated successfully, but these errors were encountered: