-
Notifications
You must be signed in to change notification settings - Fork 7
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
Deoplete not working #22
Comments
New version of fireplace is async, and it's use of sleep means that deoplete errors. I'm not sure how to fix. |
Having the exactly same problems, does anyone got this working? |
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. |
I moved to https://github.com/Olical/conjure
…--
The Continium
On 14 August 2019 at 07:46:16, Dominic Monroe ([email protected]<mailto:[email protected]>) wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#22?email_source=notifications&email_token=AMMBOTYQUI5FWAY32WTSSY3QEOS3RA5CNFSM4IAPYXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4H3KEY#issuecomment-521123091>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMMBOTZ6FISRP7CIGUUUGC3QEOS3RANCNFSM4IAPYXHQ>.
|
I ran into this same issue an it seems that somewhere along the line, the 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:
|
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. |
Hi
With everything setup correctly as in issue 20 I am getting deoplete crashing in the async_clj source with a socket error.
I have tried with cider version 0.17.0 and the latest beta resulting in the same problem.
I can send more details if you need.
Can you help please.
cheers
This is the stack trace
[deoplete] Traceback (most recent call last): File "/Users/user1/.cache/vim/dein/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/child.py", line 182, in _gather_results result = self._get_result(context, source) File "/Users/user1/.cache/vim/dein/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/child.py", line 241, in _get_result ctx['candidates'] = source.gather_candidates(ctx) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/async_clj.py", line 24, in gather_candidates return self.__cider_completion_manager.gather_candidates(context["complete_str"]) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/../../../../pythonx/async_clj_omni/fireplace.py", line 88, in gather_candidates wc = self.__connmanager.get_conn(conn_string) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/../../../../pythonx/async_clj_omni/fireplace.py", line 36, in get_conn conn = nrepl.connect(conn_string) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/__init__.py", line 129, in connect return f(uri) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/__init__.py", line 31, in _bencode_connect s = socket.create_connection(uri.netloc.split(":")) File "/Users/user1/.cache/pyenv/versions/3.7.2/lib/python3.7/socket.py", line 707, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/Users/user1/.cache/pyenv/versions/3.7.2/lib/python3.7/socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] nodename nor servname provided, or not known Error from async_clj: [Errno 8] nodename nor servname provided, or not known. Use :messages / see above for error details. [deoplete] Traceback (most recent call last): File "/Users/user1/.cache/vim/dein/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/child.py", line 182, in _gather_results result = self._get_result(context, source) File "/Users/user1/.cache/vim/dein/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deoplete/child.py", line 241, in _get_result ctx['candidates'] = source.gather_candidates(ctx) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/async_clj.py", line 24, in gather_candidates return self.__cider_completion_manager.gather_candidates(context["complete_str"]) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/../../../../pythonx/async_clj_omni/fireplace.py", line 88, in gather_candidates wc = self.__connmanager.get_conn(conn_string) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/../../../../pythonx/async_clj_omni/fireplace.py", line 36, in get_conn conn = nrepl.connect(conn_string) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/__init__.py", line 129, in connect return f(uri) File "/Users/user1/.cache/vim/dein/repos/github.com/clojure-vim/async-clj-omni/rplugin/python3/deoplete/sources/vim_nrepl_python_client/nrepl/__init__.py", line 31, in _bencode_connect s = socket.create_connection(uri.netloc.split(":")) File "/Users/user1/.cache/pyenv/versions/3.7.2/lib/python3.7/socket.py", line 707, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/Users/user1/.cache/pyenv/versions/3.7.2/lib/python3.7/socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] nodename nor servname provided, or not known Error from async_clj: [Errno 8] nodename nor servname provided, or not known. Use :messages / see above for error details. [deoplete] Too many errors from "async_clj". This source is disabled until Neovim is restarted.
The text was updated successfully, but these errors were encountered: