heavenshell / vim-pydocstring

Generate Python docstring to your Python source code.
BSD 3-Clause "New" or "Revised" License
337 stars 53 forks source link

echoerr '+channel and +job are required for pydocstring.vim' #71

Closed dc-avasilev closed 4 years ago

dc-avasilev commented 4 years ago

ftplugin/python/pydocstring.vim:13 all time see that error when open python file =( nv -v

NVIM v0.5.0-7fef0f8db
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20191128-44866-1ykypi9/build/config -I/tmp/neovim-20191128-44866-1ykypi9/src -I/usr/local/include -I/tmp/neovim-20191128-44866-1ykypi9/deps-build/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/tmp/neovim-20191128-44866-1ykypi9/build/src/nvim/auto -I/tmp/neovim-20191128-44866-1ykypi9/build/include
Compiled by User

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-7fef0f8/share/nvim"

Run :checkhealth for more info
OS: 64bit Mac OS X 10.15.3 19D76
 Kernel: x86_64 Darwin 19.3.0
 Uptime: 1h 50m
 Packages: 544
 Shell: zsh 5.8
 Resolution: 2880x1800 ,1920x1080 ,1920x1080
 DE: Aqua
 WM: Quartz Compositor
 WM Theme: Graphite (Dark)
 Disk: 12G / 500G (27%)
 CPU: Intel Core i7-7820HQ @ 2.90GHz
 GPU: Radeon Pro 560 / Intel HD Graphics 630
 RAM: 7686MiB / 16384MiB
heavenshell commented 4 years ago

Sorry, currently Neovim is not supported.

I'm not Neovim user and I don't have any knowledge and Neovim environment. Feel free to send me PR.

dc-avasilev commented 4 years ago

sad, i can't send you PR i just QA not a programmer i try set "if" for exclude check, but i have error =(

if !has('nvim')
  if !has('channel') || !has('job')
    echoerr '+channel and +job are required for pydocstring.vim'
    finish
  endif
endif
Error detected while processing function pydocstring#insert[31]..<SNR>480_execute:
line   12:
E117: Unknown function: job_start
E15: Invalid expression: job_start(a:cmd, { 'callback': {c, m -> a:cb(c, m, a:indent, a:start_lineno)}, 'exit_cb': {c, m -> a:ex_cb(c, m)}, 'in_mode':
'nl', })

that's all what i can do

https://neovim.io/doc/user/job_control.html