Floobits / floobits-neovim

Floobits plugin for NeoVim
Apache License 2.0
167 stars 7 forks source link

Error on :UpdateRemotePlugins if ~/.floorc.json isn't present #12

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, first of all thank you for this plugin, the integration is really nice.

I'm not sure if this is a bug in Neovim or this plugin, but I suppose that will be found out soon. Here's how to reproduce it:

You need an account to use Floobits! Do you want to:
[S]ign in to Floobits, (C)reate a Floobits account, (C)ancel (see https://floobits.com/help/floorc):

I noticed that C is stated to be the shortcut for two items, but that's probably not relevant to this issue. Anyways, If any key is pressed (I tried Ctrl-c as well) the following error should appear:

Error detected while processing function <SNR>14_UpdateRemotePlugins..<SNR>14_RegistrationCommands:
line   17:
KeyError('/home/michael/.nvim/plugged/floobits-neovim/rplugin/python/floobits.py',)
line   20:
E714: List required

Additionally everything worked fine when I had a valid ~/.floorc.json present`.

This is with Python 2.7.8, neovim-python 0.0.25, and the latest version of this plugin and Neovim as of the time of writing. If it makes a difference I'm on Arch Linux x86_64.

btipling commented 9 years ago

Hi @Pyrohh thanks for letting us know about these issues. I pushed a fix on Friday for these problems. Please update your plugin and it should work for you now. Thank you for helping us make Floobits better!

btipling commented 9 years ago

I should also note that the "You need an account..." prompt will now only appear if you do not have a .floorc.json and you attempt to connect to a workspace.

ghost commented 9 years ago

Everything is working fine now, thanks!