Skip to content
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

python error #31

Open
minusf opened this issue Apr 10, 2020 · 7 comments
Open

python error #31

minusf opened this issue Apr 10, 2020 · 7 comments
Assignees
Labels
confirmed macOS neovim neovim related issues

Comments

@minusf
Copy link

minusf commented Apr 10, 2020

after installing the plugin with vim-plug i see the following error in .local/share/nvim/log

ERROR 2020-04-11T01:40:16.060 31408 call_set_error:623: RPC: ch 3 returned a response with an unknown request id. Ensure the client is properly synchronized

and inside nvim:

Error detected while processing function AutoTag[4]..provider#python3#Call:
line   18:
Error invoking 'python_execute' on channel 3:
Invalid channel: 3

this is on macos, latest nvim, latest pynvim.

:call AutoTagDebug()

also results in an empty window. checkhealth shows a working python3 (and other plugins use it successfully too).

after set verbose=20 and doing :w on a python source file (of which i want to generate tags):

Executing BufWritePost Autocommands for "*"
autocommand call AutoTag ()
line 0: call AutoTag ()
calling function AutoTag()
line 1:       if exists("b:netrw_method")
line 2:          return
line 3:       endif
line 4:       python3 autotag()
calling function AutoTag[4]..provider#python3#Call('execute', ['autotag()', 4, 4])
line 1:   if s:err != ''
line 2:     return
line 3:   endif
line 4:   if !exists('s:host')
line 5:     let s:rpcrequest = function('rpcrequest')
line 6:
line 7:     " Ensure that we can load the Python3 host before bootstrapping
line 8:     try
line 9:       let s:host = remote#host#Require('legacy-python3-provider')
line 10:     catch
line 11:       let s:err = v:exception
line 12:       echohl WarningMsg
line 13:       echomsg v:exception
line 14:       echohl None
line 15:       return
line 16:     endtry
line 17:   endif
line 18:   return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host))
Error detected while processing function AutoTag[4]..provider#python3#Call:
line   18:
Error invoking 'python_execute' on channel 3:
Invalid channel: 3
function AutoTag[4]..provider#python3#Call returning #-1
continuing in function AutoTag
line 5:       if exists(":TlistUpdate")
@minusf
Copy link
Author

minusf commented Apr 10, 2020

found this error message in a couple of places and it might be related to multiprocessing?

@craigemery
Copy link
Owner

multiprocessing is the heart of this code now. I've got a Mac on Mojave and MacVim & Python3 work fine for me. I'll try & install neovim & see what happens.

@craigemery
Copy link
Owner

It's not happening during a :wqa is it?

@minusf
Copy link
Author

minusf commented Apr 12, 2020

i see the error on every attempt to :w a buffer.

@craigemery
Copy link
Owner

Have you tried MacVim. As a test is all

@craigemery
Copy link
Owner

OK. macOS 10.14.6, neovim 0.4.3, Python 3.7.7, my ~/.config/nvim/init.vim simply has source ~/.vimrc and I see the error.
I've been using macvim without issue. This is the first time I've installed neovim. So I'll see what I can do.

@craigemery craigemery self-assigned this Apr 15, 2020
@craigemery craigemery added neovim neovim related issues confirmed labels Apr 15, 2020
@craigemery
Copy link
Owner

Can you try changing the start method to fork as referenced in #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed macOS neovim neovim related issues
Projects
None yet
Development

No branches or pull requests

2 participants