ayaup

942 经验值

我coding上测试不行,去码云测试也是如此。网站直接访问 webhook的地址,直接报错error request,token自己随便设置及后台生成的私人令牌 都报错。求解。

自己电脑push pull都可以,服务器上www用户git pull 也是可以,唯独hook/index.php 方式无法运行。

@JellyBool, 按照视频配置好了,webhook,测试也正常,有200状态码,客户端git push 到coding上,服务器无法自动git push ,在服务器上 手动git pull,是ok的。 赶紧hook下的index.php有问题,请大神指点,index按照博客上的文件写的。无法出发git pull。。

程序里面_zsh_autosuggest_bind_widget() {

typeset -gA _ZSH_AUTOSUGGEST_BIND_COUNTS

local widget=$1
local autosuggest_action=$2
local prefix=$ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX

local -i bind_count

# Save a reference to the original widget
case $widgets[$widget] in
    # Already bound
    user:_zsh_autosuggest_(bound|orig)_*);;

    # User-defined widget
    user:*)
        _zsh_autosuggest_incr_bind_count $widget
        zle -N $prefix${bind_count}-$widget ${widgets[$widget]#*:}
        ;;

    # Built-in widget
    builtin)
        _zsh_autosuggest_incr_bind_count $widget
        eval "_zsh_autosuggest_orig_${(q)widget}() { zle .${(q)widget} }"
        zle -N $prefix${bind_count}-$widget _zsh_autosuggest_orig_$widget
        ;;

    # Completion widget
    completion:*)
        _zsh_autosuggest_incr_bind_count $widget
        eval "zle -C $prefix${bind_count}-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}"
        ;;
esac

_zsh_autosuggest_get_bind_count $widget

# Pass the original widget's name explicitly into the autosuggest
# function. Use this passed in widget name to call the original
# widget instead of relying on the $WIDGET variable being set
# correctly. $WIDGET cannot be trusted because other plugins call
# zle without the `-w` flag (e.g. `zle self-insert` instead of
# `zle self-insert -w`).
eval "_zsh_autosuggest_bound_${bind_count}_${(q)widget}() {
    _zsh_autosuggest_widget_$autosuggest_action $prefix$bind_count-${(q)widget} \$@
}"

# Create the bound widget
zle -N $widget _zsh_autosuggest_bound_${bind_count}_$widget

}
不知道哪里的问题,

source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
-bash: autoload: command not found
-bash: zmodload: command not found
-bash: /Users/kaodao/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh: line 169: syntax error near unexpected token `('
-bash: /Users/kaodao/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh: line 169: ` user:_zsh_autosuggest_(bound|orig)_*);;'

source 的时候,报错~