-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Bug]: cmake autocompletion prints '_split_longopt: command not found' #19352
Comments
I can not reproduce the issue in my setup. cmake, then tab does not show any error. Please make sure all the packages are updated with |
I found that CMake requires the '_split_longopt' function which was provided by bash-completion package before 2.12. In the latest release this function has name '_comp__split_longopt' I think the autocompletion has been broken after bash-completion upgrade from 2.11 to 2.12 , according to the diff between 2.12 and 2.11: I fixed this bug via replacing old name in I may send a PR with patch, if don't mind. I also planning to fix it properly in upstream CMake |
(Since I'm set as the maintainer for the What confuses me is that the behavior doesn't appear to be replicable though. |
Oh, my bad. I assumed that bash-completion is installed already. I can reproduce the issue after installing bash-completion package manually. 🙇 |
Yep, I can also reproduce this and have already identified the issue. |
The upstream will seems to fix it a proper way here: |
This should be fixed in cmake version 3.30.0 and above. |
Problem description
After some recent updates cmake autocompletion in Bash became to print the '_split_longopt: command not found'.
After some searching I found some issues in CMake and another autocompletion issue in "bat" repo:
The latter suggests possible cause for their similar issue.
What steps will reproduce the bug?
cmake
in bash terminalWhat is the expected behavior?
It works without error.
System information
termux-info:
The text was updated successfully, but these errors were encountered: