unrepl

discussing specification of an edn-based repl and its implementations.
bozhidar 2018-02-01T06:12:25.000053Z

> though with cider I have to jump through hoops to get code navigation working

bozhidar 2018-02-01T06:13:06.000018Z

Supposedly we fixed this recently. I never develop over remote connections, that’s why I didn’t notice for a while something was broken there.

bozhidar 2018-02-01T06:13:55.000125Z

FYI https://github.com/clojure-emacs/cider/issues/2148

j0ni 2018-02-01T18:21:54.000331Z

It's been a while, it may be fixed. I will try it on a locally running docker-compose setup. The problem always used to be mapping local paths to remote paths, and the nasty solution was to do something like sudo ln -s /path/to/my/local/workspace /app or whatever the remote path is to the code. Not sure how that relates to a running jar with no remote copy of the repo now I think about it...

bozhidar 2018-02-01T06:21:21.000191Z

The problem with having too many features that are hard to test with unit tests is that it’s relatively easy to break something without noticing it.

cgrand 2018-02-01T14:03:06.000477Z

speaking of ssh etc. I never thought about this before but ssh user@server nc localhost 5555 is a possibility

cgrand 2018-02-01T14:03:34.000188Z

no?

j0ni 2018-02-01T18:22:53.000602Z

I'm trying to start a new repl from inside emacs, but spiral-connect-to and spiral-connect seem to be behaving identically

j0ni 2018-02-01T18:23:23.000517Z

they both are prompting me for a host and port

volrath 2018-02-01T18:27:58.000182Z

spiral-connect prompts when it cannot recognize a clojure project for the buffer you're visiting

volrath 2018-02-01T18:28:13.000805Z

maybe you are in a temporal buffer? or outside a clojure project

j0ni 2018-02-01T18:29:36.000297Z

yeah that would be it

j0ni 2018-02-01T18:29:42.000548Z

I'm in a directory with a deps.edn in it

j0ni 2018-02-01T18:30:46.000007Z

getting a ton of these now

error in process filter: parseclj-unparse-clojure: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil
error in process filter: parseclj-unparse-clojure: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil

j0ni 2018-02-01T18:31:09.000632Z

might be due to running with a dev build of emacs

volrath 2018-02-01T18:35:29.000531Z

oh...

volrath 2018-02-01T18:35:36.000441Z

hmm that's new..

volrath 2018-02-01T18:36:13.000362Z

I tried it in emacs 27 a few months ago but I don't know if there might be something new that breaks spiral

volrath 2018-02-01T18:36:20.000920Z

when exactly are you getting those errors?

j0ni 2018-02-01T18:39:30.000074Z

to begin with when I connected to the repl I'd started on the command line using the clj line from spiral's readme (the code file has only a ns declaration, no requires or code yet)

j0ni 2018-02-01T18:39:35.000825Z

then I saw 2 instances

j0ni 2018-02-01T18:39:51.000569Z

as I started typing a (require [... line into the repl, I saw a lot more

j0ni 2018-02-01T18:40:24.000812Z

got as far as (require '[com.]) and saw 12 pairs of those errors

volrath 2018-02-01T18:40:34.000452Z

sounds like it might be related to completion

j0ni 2018-02-01T18:40:41.000069Z

yeah

volrath 2018-02-01T18:40:59.000334Z

are you running emacs master branch?

j0ni 2018-02-01T18:41:02.000555Z

yes

volrath 2018-02-01T18:41:05.000481Z

ok

j0ni 2018-02-01T18:41:06.000261Z

built a couple of days ago

volrath 2018-02-01T18:41:20.000688Z

ok.. it's weird, I'll try it out

j0ni 2018-02-01T18:41:58.000546Z

thanks - don't sweat it if it's a emacs 27 thing (on my account anyway) - I accept the risks of dev builds 🙂

volrath 2018-02-01T18:42:06.000881Z

@j0ni could you open an issue?

j0ni 2018-02-01T18:42:10.000609Z

sure

volrath 2018-02-01T18:42:14.000203Z

thanks!

j0ni 2018-02-01T18:49:33.000277Z

there ya go

volrath 2018-02-01T18:49:40.000475Z

great, thank you!