tweekmonster / deoplete-clang2

MIT License
90 stars 17 forks source link

Throws errors when trying to type the name of an `#include`d header #7

Closed HiPhish closed 7 years ago

HiPhish commented 7 years ago

Here are the steps:

[deoplete] Traceback (most recent call last):
[deoplete]   File "/Users/hiphish/.local/share/nvim/site-packages/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 116, in gather_results
[deoplete]     ctx['candidates'] = convert2candidates(ctx['candidates'])
[deoplete]   File "/Users/hiphish/.local/share/nvim/site-packages/deoplete.nvim/rplugin/python3/deoplete/util.py", line 51, in convert2candidates
[deoplete]     return [{'word': x} for x in l] if l and isinstance(l[0], str) else l
[deoplete] TypeError: 'generator' object is not subscriptable
[deoplete] Could not get completions from: clang2.  Use :messages for error details.

This happens every time. Any idea?

tweekmonster commented 7 years ago

Any idea?

Yup. Apparently deoplete doesn't like generators now.