guyzmo / vim-etherpad

Plugin to enable collaborative edition on etherpad with the best editor
100 stars 4 forks source link

Fails to connect etherpad #1

Open atondwal opened 10 years ago

atondwal commented 10 years ago

After I source plugin/vim-etherpad.vim, and run :Etherpad I get this:

Exception AttributeError: "'SocketIO' object has no attribute '_socketIO'" in <bound method SocketIO.__del__ of <s
ocketIO_client.SocketIO object at 0x7f35ea6442d0>> ignored
ERROR:vim_etherpad:__init__() got an unexpected keyword argument 'disc_cb'
Traceback (most recent call last):
  File "<string>", line 242, in _launch_epad
  File "build/bdist.linux-x86_64/egg/py_etherpad/SocketIOClient.py", line 41, in __init__
    self.__init()
  File "build/bdist.linux-x86_64/egg/py_etherpad/SocketIOClient.py", line 50, in __init
    cb=self.cb, **self.kwarg)
TypeError: __init__() got an unexpected keyword argument 'disc_cb'
Couldn't connect to Etherpad: http://localhost:9001/p/test

The tests for py_etherpad seem to work though, so that's probably not the problem: 2013-07-17-232444_1920x1080_scrot

guyzmo commented 10 years ago

do you use my fork of socketio_client or do you use the official one? The unexpected keyword disc_cb makes me think you're using the orginal one. My fork is at guyzmo/socketIO-client on github. I sent them a PR but they're not integrating it. I may just rename the fork as a full project soon...

guyzmo commented 10 years ago

ok, after talking on the PR, it will be merged soon :-)

and btw, the tests I wrote are only for the OT library I wrote so it matches how EPL works. It does not tests the communication stuff, and I don't plan to write those tests until I get the library to send updates.

BTW, if you're interested in helping in the dev of the plugin and lib, we can create a channel on freenode about it! I just created the #vim-etherpad channel, so I can help you set it up.

atondwal commented 10 years ago

Thanks, I didn't quite get that I had to install your fork of socketIO-client from the README. Installed it now and that error's gone away. Now initially syncing to the pad works! However, when I make any changes in vim they disappear as soon as I enter normal mode. Then, when I type in the etherpad, I get this: http://pastebin.com/raw.php?i=5BzXzCpr

I'm atondwal on freenode. See you in #vim-etherpad!

pickfire commented 9 years ago

It didn't works for me either. When I run vim, this errors show up. And when I run :Etherpad https://pad.riseup.net/p/test, some errors shows up and I can't use it.

pickfire commented 9 years ago

It works now after I install the PyEtherpadLite, but now there is another error.