Comments (6)
from async-clj-omni.
New version of fireplace is async, and it's use of sleep means that deoplete errors. I'm not sure how to fix.
from async-clj-omni.
Having the exactly same problems, does anyone got this working?
from async-clj-omni.
Please try the ncm2, coc.nvim or asyncomplete adapters for now.
I think that to fix this, we will need to find out why Deoplete's timer is throwing an exception.
from async-clj-omni.
I ran into this same issue an it seems that somewhere along the line, the host
and port
keys for the fireplace client transport dictionary was replaced with a url
.
The following change got me though the error above:
diff --git a/pythonx/async_clj_omni/fireplace.py b/pythonx/async_clj_omni/fireplace.py
index e2f823b..e91a160 100644
--- a/pythonx/async_clj_omni/fireplace.py
+++ b/pythonx/async_clj_omni/fireplace.py
@@ -80,10 +80,12 @@ class CiderCompletionManager:
self.__logger.debug("Unable to get connection info")
return []
- host = transport.get("host")
- port = transport.get("port")
-
- conn_string = "nrepl://{}:{}".format(host, port)
+ if "url" in transport:
+ conn_string = transport["url"]
+ else:
+ host = transport.get("host")
+ port = transport.get("port")
+ conn_string = "nrepl://{}:{}".format(host, port)
wc = self.__connmanager.get_conn(conn_string)
Only to run into another error that I haven't figured out yet:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/__init__.py", line 63, in run
for incoming in self._IO:
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/bencode.py", line 170, in __next__
v = self.read()
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/bencode.py", line 157, in read
return _read_datum(self._file)
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/bencode.py", line 100, in _read_datum
delim = _read_delimiter(s)
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/bencode.py", line 70, in _read_delimiter
d = _read_byte(s)
File "/Users/ryancampbell/.local/share/nvim/plugged/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/bencode.py", line 37, in _read_byte
return s.read(1)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer
[deoplete] Traceback (most recent call last):
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 319, in _process_filter
filtered = f.filter(context)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/filter/converter_remove_overlap.py", line 28, in filter
if self.vim.call('searchpair', '(', '', ')', 'bnw'):
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 299, in call
return self.request('nvim_call_function', name, args, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 95, in request
v = self._blocking_request(method, args)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 175, in _blocking_request
self._enqueue_notification)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/async_session.py", line 66, in run
self._msgpack_stream.run(self._on_message)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/msgpack_stream.py", line 43, in run
self.loop.run(self._on_data)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/base.py", line 144, in run
self._run()
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/asyncio.py", line 136, in _run
self._loop.run_forever()
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 525, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
Errors from: <deoplete.filter.converter_remove_overlap.Filter object at 0x10676c710>. Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 319, in _process_filter
filtered = f.filter(context)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/filter/converter_remove_overlap.py", line 28, in filter
if self.vim.call('searchpair', '(', '', ')', 'bnw'):
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 299, in call
return self.request('nvim_call_function', name, args, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 95, in request
v = self._blocking_request(method, args)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 175, in _blocking_request
self._enqueue_notification)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/async_session.py", line 66, in run
self._msgpack_stream.run(self._on_message)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/msgpack_stream.py", line 43, in run
self.loop.run(self._on_data)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/base.py", line 144, in run
self._run()
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/asyncio.py", line 136, in _run
self._loop.run_forever()
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 525, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/autoload/deoplete/_main.py", line 56, in main
child.main_loop(stdout)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 67, in main_loop
ret = self.main(name, args, queue_id)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 86, in main
results = self._merge_results(args[0], queue_id)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 162, in _merge_results
result, context['input'], context['next_input'])
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 384, in _get_candidates
self._process_filter(f, ctx, source.max_candidates)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 325, in _process_filter
error_tb(self._vim, 'Errors from: %s' % f)
File "/Users/ryancampbell/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/util.py", line 101, in error_tb
vim.err_write('[deoplete] %s\n' % '\n'.join(lines))
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 409, in err_write
return self.request('nvim_err_write', msg, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 95, in request
v = self._blocking_request(method, args)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/session.py", line 175, in _blocking_request
self._enqueue_notification)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/async_session.py", line 66, in run
self._msgpack_stream.run(self._on_message)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/msgpack_stream.py", line 43, in run
self.loop.run(self._on_data)
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/base.py", line 144, in run
self._run()
File "/Users/ryancampbell/Library/Python/3.7/lib/python/site-packages/pynvim/msgpack_rpc/event_loop/asyncio.py", line 136, in _run
self._loop.run_forever()
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 525, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
Error in child: RuntimeError('This event loop is already running'). Use :messages / see above for error details.
from async-clj-omni.
The issue is a timer in deoplete which triggers when fireplace does it's async. That timer blows up. I decided it was too much to debug for me.
from async-clj-omni.
Related Issues (14)
- Update README to mention NCM
- Uncaught BrokenPipeError makes Neovim+deoplete unusable while error message is printing HOT 11
- Check BrokenPipeError for Acid
- how to set up completor_clojure_omni_trigger for completor.vim? HOT 1
- How big a deal would it be to make this work with Slimv? HOT 6
- Context aware completion
- Cant get it working HOT 6
- Can it support ncm2 ? HOT 2
- use allowlist for asyncomplete
- Unit tests
- Use watchable connection
- Bencode error HOT 1
- cider-less completion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-clj-omni.