-
Notifications
You must be signed in to change notification settings - Fork 17
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
OSError: EOF #30
Comments
I also get some similar error.
|
I got an error like this as well.
|
It seems occur neoinclude.vim + deoplete-clang2. |
I get the reason. diff --git a/rplugin/python3/deoplete/sources/deoplete_clang2.py b/rplugin/python3/deoplete/sources/deoplete_clang2.py
index 56d60fc..a1c8c70 100644
--- a/rplugin/python3/deoplete/sources/deoplete_clang2.py
+++ b/rplugin/python3/deoplete/sources/deoplete_clang2.py
@@ -13,6 +13,7 @@ import subprocess
from itertools import chain
from urllib.request import urlopen
+from deoplete.util import getlines
from .base import Base
@@ -154,9 +155,9 @@ class Source(Base):
neomake_flags = set(cmd + flags)
if self.last_neomake_flags ^ neomake_flags:
self.last_neomake_flags = neomake_flags
- self.nvim.async_call(lambda n, m:
- n.eval('clang2#set_neomake_cflags(%r)' % m),
- self.nvim, cmd + flags)
+ # self.nvim.async_call(lambda n, m:
+ # n.eval('clang2#set_neomake_cflags(%r)' % m),
+ # self.nvim, cmd + flags)
def get_complete_position(self, context):
m = re.search(r'^\s*#(?:include|import)\s+["<]', context['input'])
@@ -635,7 +636,7 @@ class Source(Base):
return self.scope_completions
buf = self.nvim.current.buffer
- src = buf[:]
+ src = getlines(self.nvim)
max_lines = context['vars'].get(
'deoplete#sources#clang#preproc_max_lines', 50)
if max_lines: nvim.async_call() + asyncio seems broken. |
This was referenced Apr 14, 2018
jasonwzz
added a commit
to jasonwzz/deoplete-clang2
that referenced
this issue
Jun 22, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: ubuntu 16.04;
using neovim-0.2.3, clang: 5.0;
After typing two chars, the error occurs.
The text was updated successfully, but these errors were encountered: