This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-03
Channels
- # adventofcode (198)
- # aleph (10)
- # announcements (7)
- # aws (17)
- # beginners (353)
- # boot (1)
- # calva (13)
- # cider (18)
- # cljdoc (2)
- # cljs-dev (11)
- # cljsrn (1)
- # clojure (87)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-greece (13)
- # clojure-italy (18)
- # clojure-kc (2)
- # clojure-nl (9)
- # clojure-quebec (1)
- # clojure-russia (1)
- # clojure-spec (55)
- # clojure-uk (114)
- # clojurescript (18)
- # clojurex (14)
- # code-reviews (5)
- # core-async (17)
- # cursive (23)
- # data-science (1)
- # datomic (82)
- # docker (8)
- # duct (10)
- # emacs (8)
- # figwheel (3)
- # figwheel-main (5)
- # fulcro (13)
- # hyperfiddle (8)
- # jobs (1)
- # midje (1)
- # mount (1)
- # nrepl (2)
- # off-topic (72)
- # om (2)
- # pathom (10)
- # portkey (2)
- # re-frame (9)
- # reagent (3)
- # reitit (9)
- # ring-swagger (14)
- # schema (1)
- # shadow-cljs (91)
- # spacemacs (21)
- # sql (6)
- # tools-deps (19)
- # unrepl (9)
- # vim (41)
Has anyone tried replant.vim using the latest Neovim (e.g., NVIM v0.3.2-941-gb0ebf61d3) and pynvim (0.3.1)? I don't get anything back using ReplantListResources and the namespace refresh blows up with an error.
@tylerw sorry to hear that. I'm using these without issue, can you tell me: - cider version - java version - clojure version
deps.edn:
{:aliases {:repl {:main-opts ["-m" "repl"]
:extra-paths ["dev"]
:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.4"}
nrepl/nrepl {:mvn/version "0.5.0"}
cider/cider-nrepl {:mvn/version "0.18.0"}
refactor-nrepl {:mvn/version "2.4.0"}}}}
:deps {org.clojure/clojure {:mvn/version "RELEASE"}}
:paths ["src" "resources"]}
Java:
java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
I'm a bit out of practice, and I'm doing Advent of Code to get back into Clojure, so I fully expect I've configured something wrong. But I did try to start from a blank slate
The error I get when I attempt to refresh is:
Error detected while processing function replant#ui#refresh[1]..replant#send#message_callback:
line 2:
E117: Unknown function: G_replant_send_message_callback
E15: Invalid expression: G_replant_send_message_callback(l:port, a:msg, a:callback)
could've sworn I'd done that, but I evidently I hadn't. Anyway, I am getting a new error now:
Error detected while processing function replant#ui#refresh[1]..replant#send#message_callback[2]..G_replant_send_message_callback[1]..remote#define#request:
line 2:
error caught in request handler '/Users/tyler/.config/nvim/plugged/vim-replant/rplugin/python3/replant:function:G_replant_send_message_callback [['59048', {'op': 'refresh', 'id': 'replant--f135fe2a-2b1c-4
bf1-b825-e00b44f0af8d'}, 'replant#handle_refresh_msg']]':
Traceback (most recent call last):
File "/Users/tyler/.config/nvim/plugged/vim-replant/rplugin/python3/replant/__init__.py", line 46, in send_message_callback
self.nvim.call(callback, m)
File "/usr/local/lib/python3.7/site-packages/pynvim/api/nvim.py", line 299, in call
return self.request('nvim_call_function', name, args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Vim(call):E716: Key not present in Dictionary: error'
I get the same thing for all 4 combos Clojure {1.9,RELEASE} and cider {18,19-SNAPSHOT}
if has_key(a:msg, 'status') && s:contains(a:msg['status'], 'error') call replant#handle_plain_stack(a:msg['error']) endif This is the code that's broken
I wonder how I can find out what's erroring out if a:msg does not contain an error
key
This is what it prints, not particularly helpful
{'id': 'replant--14bf0567-1613-4152-95c2-2b011212def4', 'op': 'refresh-all', 'session': '48e1bec3-2f25-43c4-ae83-67792a743928', 'status': ['done', 'unknown-op', 'error']}
@tylerw I'm really curious to know what the error message ends up looking like. If you only have time to add the echom, paste the message here and I should be able to fix it 12h from now.
ugh, really? The nREPL docs suggest .nrepl.edn now, I tried that:
❯ cat .nrepl.edn
{
:bind "localhost"
:handler "cider.nrepl/cider-nrepl-handler"
:middleware ["refactor-nrepl.middleware/wrap-refactor" "cider.nrepl/cider-middleware"]
}
ok, I'll try vim-jack-in or something else. at least I know what the issue (probably) is now