joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
gleisonsilva 2019-11-13T00:03:44.069900Z

Hello guys! Has anyone some tips for using Joker with Repl in vim/neovim?

gleisonsilva 2019-11-13T00:04:25.070800Z

I've tried joker --repl localhost:3333 but when I do :connect 3333 in Neovim (vimr) it freezes up the editor and exit the repl

jcburley 2019-11-13T00:05:50.072100Z

I don't know anything about Neovim/vimr, but I do know (since I implemented) that Joker is opening up a socket REPL (sREPL) there, not a network REPL (nREPL), which Joker doesn't (yet) support. Is it possible Neovim/vimr is expecting an nREPL?

gleisonsilva 2019-11-13T00:07:55.073100Z

maybe. i'll dig into that

gleisonsilva 2019-11-13T00:09:21.073400Z

is prepl supported?

jcburley 2019-11-13T00:09:57.073600Z

No.

jcburley 2019-11-13T00:11:15.074200Z

I'll try to research it later; my first discovery (having never heard of a pREPL before) is this: https://www.reddit.com/r/Clojure/comments/b4b4xn/clojure_socket_prepl_cookbook/

2019-11-13T00:34:39.075200Z

fwiw, this is the lastest by the same: https://oli.me.uk/clojure-prepl-for-tool-authors/

gleisonsilva 2019-11-13T00:49:11.075800Z

now i'm trying this other plugin for neovim -> conjure https://github.com/Olical/conjure

gleisonsilva 2019-11-13T00:49:30.076400Z

but i couldn't figure out how to make it work with Joker

gleisonsilva 2019-11-13T00:49:55.076900Z

anyone using vim/neovim + joker here?

2019-11-13T01:43:35.077800Z

@gleisonsilva there is a bit about joker and conjure in: https://oli.me.uk/getting-started-with-clojure-neovim-and-conjure-in-minutes/

pyrmont 2019-11-13T01:46:37.080600Z

@sogaiu: That's about a workflow that involves using Joker as a linter. I think @gleisonsilva wants to be able to use Joker as his REPL. I don't think it'll work unless Joker adds pREPL support (@gleisonsilva has filed an issue asking for Conjure to support socket REPLs but I think that would introduce substantial complexity and expect it will be rejected). I think the short answer is that there's no way to do it.

2019-11-13T01:54:14.081800Z

ah, i see. that makes sense. thanks.

2019-11-13T01:59:19.083500Z

i found this: https://github.com/jebberjeb/clojure-socketrepl.nvim - but perhaps #vim might be a good place to inquire

gleisonsilva 2019-11-13T11:41:42.085400Z

hey guys! tks for the replies. as a workaround, I'm using a :terminal running Joker Repl inside Neovim and a plugin to send the selected line/form to it... it works well for now.

4👍
mauricio.szabo 2019-11-13T22:40:55.087100Z

@gleisonsilva Conjure needs a prepl. Chlorine (for Atom) supports socket REPLS (and even have explicit support for Joker), so if you want to test it, I'll be glad to help 🙂

gleisonsilva 2019-11-14T19:03:58.087800Z

Hi, @mauricio.szabo! How r u? I really need gives Atom+Chlorine a try... my love for Vim keeps holding me, yet 😉

mauricio.szabo 2019-11-14T19:05:17.088Z

Help me develop https://github.com/mauricioszabo/clematis, it uses the same machinery as Chlorine then 😉

gleisonsilva 2019-11-14T19:08:52.088300Z

oh man.. i really wish i could... maybe when i manage do get some vacation 😞

2019-11-15T15:47:24.093100Z

Don't you rely on unrepl a lot? Does that work with joker?

mauricio.szabo 2019-11-16T16:30:13.094Z

@didibus I do on Clojure, but there's a fallback for repls that don't support it. So far, Joker does not