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

IOError: [Errno 32] Broken pipe #1

Open
carlbordum opened this issue Mar 11, 2018 · 6 comments
Open

IOError: [Errno 32] Broken pipe #1

carlbordum opened this issue Mar 11, 2018 · 6 comments

Comments

@carlbordum
Copy link

When I do :Tandem there are no new :messages. :TandemSession prints Session ID: None and editing the buffer will crash with the following error:

error caught in async handler '/home/zaab/.config/nvim/bundle/nvim/rplugin/python/tandem_neovim.py:autocmd:TextChangedI:* ()'
Traceback (most recent call last):                                                                                           
  File "/home/zaab/.config/nvim/bundle/nvim/rplugin/python/tandem_neovim.py", line 62, in on_text_changed_i
    self._tandem.check_buffer()                                                                            
  File "/home/zaab/.config/nvim/bundle/nvim/rplugin/python/tandem_lib/tandem_plugin.py", line 115, in check_buffer
    self._send_patches(target_buffer_contents)                                                                    
  File "/home/zaab/.config/nvim/bundle/nvim/rplugin/python/tandem_lib/tandem_plugin.py", line 218, in _send_patches
    error()                                                                                                        
  File "/home/zaab/.config/nvim/bundle/nvim/rplugin/python/tandem_lib/tandem_plugin.py", line 213, in _send_patches
    self._agent.stdin.write(m.serialize(message))                                                                  
IOError: [Errno 32] Broken pipe   

:CheckHealth is perfect and I have python2, python3, nodejs and their neovim packages.

Let me know if you need more information :)

@geoffxy
Copy link
Member

geoffxy commented Mar 11, 2018

Thanks for trying Tandem @Zaab1t!

Are there any log files in your /tmp directory of the form tandem-*.log? If so, could you paste them here so we could take a look?

@carlbordum
Copy link
Author

There are none. I tried "hosting" and connecting to another user, but it didn't spawn any log files.

@geoffxy
Copy link
Member

geoffxy commented Mar 11, 2018

Hmm, alright. What does your shell return when you run which python3? Also what version of Python 3 do you have?

@carlbordum
Copy link
Author

/usr/bin/python3

Python 3.5.2

Also tried setting let g:python3_host_prog = $HOME . '/usr/bin/python3' before anything in my config, but that didn't help.

@wchargin
Copy link

I have the same issue. I added

diff --git a/rplugin/python/tandem_neovim.py b/rplugin/python/tandem_neovim.py
index ff557a7..58f1ffa 100644
--- a/rplugin/python/tandem_neovim.py
+++ b/rplugin/python/tandem_neovim.py
@@ -27,6 +27,7 @@ class TandemNeovimPlugin(object):
         session_id = args[0] if len(args) >= 1 else None
         self._tandem.start(session_id)
         self._session_id = session_id
+        self._vim.command('echom "%s"' % session_id)
 
     @neovim.command("TandemStop", nargs="*", sync=True)
     def stop(self, args):

and it prints None in vim. I have python3==3.5.2, and neovim==0.2.4 and python3-neovim==0.2.4. The paths and versions reported by nvim +CheckHealth are correct. The only health warning is a missing Ruby provider (irrelevant). I have no log files in /tmp or elsewhere that I could find. I am running on Mint/Ubuntu 16.04 (and xmonad, if relevant, but I doubt it).

Would love to try this software! Let me know if there is anything that I can do to help debug this.

@carlbordum
Copy link
Author

That is odd. I have the same health warning, os (Ubuntu, not mint) and I also run xmonad.

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

No branches or pull requests

3 participants