Fork me on GitHub
#inf-clojure
<
2022-05-12
>
Jason01:05:10

What do you guys think would be a good approach for resolving the prompt duplication and occasional request printing for things like completions and argslists while there's a process already running?

Jason01:05:46

I'm somewhat ok with disabling eldoc but I definitely want completions

Jason01:05:23

I'm exploring the idea of using separate front and back end repls but I don't know if it's realistic

dpsutton02:05:59

I've used lsp for completions and the issue is solved complete

Jason03:05:36

I wish I could use lsp but my company has a huge monorepo and performance isn't good enough

dpsutton03:05:03

oh bummer. are you using a socket repl? I think that leads to far fewer phantom prompts

Jason04:05:07

We use nrepl so I was trying to set up an nrepl with tty transport but the https://github.com/nrepl/nrepl/issues/182 was killing that approach. I tried a few nights to fix it but I'm new to reader details and haven't figured out a solution. I also tried to use repl-y and nrepl.cmdline via clojure cli to connect to our standard nrepl but was having classpath issues when in our project's directory. When outside of the project I could connect to a project nrepl so I tried making inf-clojure change directory before invoking clojure but it was exiting immediately. Then I resorted to just running a https://clojuredocs.org/clojure.main/repl which has so far been great aside from phantom prompts. I'll give another shot to lsp mode and see what I can turn off and how that might help.

dpsutton04:05:33

they use nrepl but you can just start up a socket repl right? if you can hit nrepl you can hit a socket repl.

dpsutton04:05:00

i’m not following “when outside of the project i could connect to a project nrepl so i tried making inf-clojure change directory before invoking clojure”. inf-clojure doesn’t have to run anything. just start a socket repl and connect to it with inf-clojure-connect. i don’t understand why you would need to change directories at all. just start the process from the correct directory in the first place in the terminal

Jason04:05:59

Oh, yeah I can try a non nrepl socket repl

Jason21:05:15

Socket repl didn't really help but I was able to significantly improve it with changes to output filtering. I'll put up a PR in the next few days

dpsutton22:05:40

nice. would love to see it

dpsutton22:05:50

and i’m glad its working out for you