Open romixch opened 2 years ago
I have the same issue. I think it is what PR #473 refers to.
Pretty sure this is a duplicate of the PR #473.
I reopen this bug because I can only find a pull request but no bug to it. Unfortunately there is nothing going on here since the release of version 2.1.0. The last commit was on may 16. Does anybody know why? If there was at least an easy workaround to install the old version 2.0.1.
Switching to 2.0.1 via
pip3 install --upgrade git+https://github.com/TailorDev/Watson.git@2.0.1
does not help, but at least it shows an error when you try to autocomplete via zsh
❯ watson
Traceback (most recent call last):
File "/usr/local/bin/watson", line 5, in <module>
from watson.__main__ import cli
File "/usr/local/lib/python3.10/site-packages/watson/__main__.py", line 1, in <module>
from watson import cli
File "/usr/local/lib/python3.10/site-packages/watson/cli.py", line 215, in <module>
def start(ctx, watson, confirm_new_project, confirm_new_tag, args, at_,
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 287, in decorator
_param_memo(f, ArgumentClass(param_decls, **attrs))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2950, in __init__
super().__init__(param_decls, required=required, **attrs)
TypeError: Parameter.__init__() got an unexpected keyword argument 'autocompletion'
Traceback (most recent call last):
File "/usr/local/bin/watson", line 5, in <module>
from watson.__main__ import cli
File "/usr/local/lib/python3.10/site-packages/watson/__main__.py", line 1, in <module>
from watson import cli
File "/usr/local/lib/python3.10/site-packages/watson/cli.py", line 215, in <module>
def start(ctx, watson, confirm_new_project, confirm_new_tag, args, at_,
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 287, in decorator
_param_memo(f, ArgumentClass(param_decls, **attrs))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2950, in __init__
super().__init__(param_decls, required=required, **attrs)
TypeError: Parameter.__init__() got an unexpected keyword argument 'autocompletion'
Traceback (most recent call last):
File "/usr/local/bin/watson", line 5, in <module>
from watson.__main__ import cli
File "/usr/local/lib/python3.10/site-packages/watson/__main__.py", line 1, in <module>
from watson import cli
File "/usr/local/lib/python3.10/site-packages/watson/cli.py", line 215, in <module>
def start(ctx, watson, confirm_new_project, confirm_new_tag, args, at_,
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 287, in decorator
_param_memo(f, ArgumentClass(param_decls, **attrs))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2950, in __init__
super().__init__(param_decls, required=required, **attrs)
TypeError: Parameter.__init__() got an unexpected keyword argument 'autocompletion'
Traceback (most recent call last):
File "/usr/local/bin/watson", line 5, in <module>
from watson.__main__ import cli
File "/usr/local/lib/python3.10/site-packages/watson/__main__.py", line 1, in <module>
from watson import cli
File "/usr/local/lib/python3.10/site-packages/watson/cli.py", line 215, in <module>
def start(ctx, watson, confirm_new_project, confirm_new_tag, args, at_,
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 287, in decorator
_param_memo(f, ArgumentClass(param_decls, **attrs))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2950, in __init__
super().__init__(param_decls, required=required, **attrs)
TypeError: Parameter.__init__() got an unexpected keyword argument 'autocompletion'
Traceback (most recent call last):
File "/usr/local/bin/watson", line 5, in <module>
from watson.__main__ import cli
File "/usr/local/lib/python3.10/site-packages/watson/__main__.py", line 1, in <module>
from watson import cli
File "/usr/local/lib/python3.10/site-packages/watson/cli.py", line 215, in <module>
def start(ctx, watson, confirm_new_project, confirm_new_tag, args, at_,
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 287, in decorator
_param_memo(f, ArgumentClass(param_decls, **attrs))
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 2950, in __init__
super().__init__(param_decls, required=required, **attrs)
TypeError: Parameter.__init__() got an unexpected keyword argument 'autocompletion'
Also switching to the PR branch via
pip3 install --upgrade git+https://github.com/voidus/Watson.git@fix-completions
did not fix this issue for me as well ;/
I had the same issue the other day (macOS / brew install watson)
I patched /usr/local/Cellar/watson/2.1.0/libexec/lib/python3.10/site-packages/watson/autocompletion.py
$ cd /usr/local/Cellar/watson/2.1.0/libexec/lib/python3.10/site-packages
$ patch watson/autocompletion.py ~/Downloads/quickfix_autocomplete_on_macOS.patch.txt
Then I replaced /usr/local/Cellar/watson/2.1.0/share/zsh/site-functions/_watson calling
$ _WATSON_COMPLETE=zsh_source watson > /usr/local/Cellar/watson/2.1.0/share/zsh/site-functions/_watson
(it's zsh_source
, not source_zsh)
Check using echo $fpath
that /usr/local/share/zsh/site-functions
is in the search path for function definitions.
Seems to work for me, now.
I love Watson! But since I upgraded to version 2.1 my command line completion does not work.
I installed it with
brew install watson
Uninstall and reinstall did not help. I extended my .zshrc withautoload -Uz compinit && compinit
rm "$ZSH_COMPDUMP"
did not help. Code completion for other command line tools do work.Further information:
I am stuck right now. I can't find any error message. I just got the system bell. Command line completion is pretty essential to me.