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

Missing :endif on fresh install #71

Open
agriffis opened this issue Apr 26, 2019 · 2 comments
Open

Missing :endif on fresh install #71

agriffis opened this issue Apr 26, 2019 · 2 comments

Comments

@agriffis
Copy link

I just installed fresh 65ab020 on neovim nightly and I'm getting this error:

Error detected while processing function minimap#ToggleMinimap[2]..provider#python#Call:
line   18:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/aron/.vim/plugged/vim-minimap/autoload/minimap.py", line 67, in toggleminimap
    showminimap()
  File "/home/aron/.vim/plugged/vim-minimap/autoload/minimap.py", line 96, in showminimap
    vim.command(":call minimap#UpdateMinimap()")
  File "/usr/lib/python2.7/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
  File "/usr/lib/python2.7/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
NvimError: Vim(return):Traceback (most recent call last):
Error detected while processing function minimap#ToggleMinimap:
line    2:
E171: Missing :endif
@agriffis
Copy link
Author

Clearly the endif is there in the code, so this seems to be something else going wrong

@perryao
Copy link

perryao commented Jun 1, 2019

I'm running into the same issue. I'm not very fluent in vimscript or vim plugin development, but I tried commenting out a few lines of code in minimap.py to see if I could narrow down where the issue is coming from.

If I comment out just line 59, I no longer see an error and the minimap pane opens, just without any content.

On that same line, if I just remove * MinimapUpdate so the full line is

vim.command(':autocmd CursorMoved,CursorMovedI,TextChanged,TextChangedI,BufWinEnter')

vim prints out all the autocommands but still shows the empty minimap pane without error.

I'm not really sure if this is helpful or not, but wanted to share in case it helps someone else debug.

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

2 participants