You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build a command line executable aaa.exe with click
add eval "$(_CCM_COMPLETE=bash_source ccm)" to ~/.bashrc
start a new bash session
see error reported
Error reported:
e/bin/bash: -c: line 0: syntax error near unexpected token `('
/bin/bash: -c: line 0: `echo 5.2.12(1)-release'
Traceback (most recent call last):
File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python38\Scripts\aaa.exe\__main__.py", line 7, in <module>
File "C:\Python38\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\Python38\lib\site-packages\click\core.py", line 1050, in main
self._main_shell_completion(extra, prog_name, complete_var)
File "C:\Python38\lib\site-packages\click\core.py", line 1125, in _main_shell_completion
rv = shell_complete(self, ctx_args, prog_name, complete_var, instruction)
File "C:\Python38\lib\site-packages\click\shell_completion.py", line 45, in shell_complete
echo(comp.source())
File "C:\Python38\lib\site-packages\click\shell_completion.py", line 326, in source
self._check_version()
File "C:\Python38\lib\site-packages\click\shell_completion.py", line 321, in _check_version
raise RuntimeError(
RuntimeError: Couldn't detect Bash version, shell completion is not supported.
The text was updated successfully, but these errors were encountered:
liooil
added a commit
to liooil/click
that referenced
this issue
Mar 3, 2023
Environment:
Step to replicate:
eval "$(_CCM_COMPLETE=bash_source ccm)"
to ~/.bashrcError reported:
The text was updated successfully, but these errors were encountered: