Fork me on GitHub
#conjure
<
2022-11-29
>
Martynas Maciulevičius10:11:28

Is it possible to not show the popup window if the log is open in the current editor tab? Is there a config var for it?

Olical10:11:24

It won't show the HUD if you can see the bottom of the log right now, or at least, that's what should happen. The behaviour you describe doesn't exist yet but could be added as another option.

stopa17:11:11

Hey team, bit of a noob question. For folks who manually start an nrepl server, how do you get conjure to know about it? Do you just write (spit port ".nrepl-port")? Here’s how I do it right now:

(ns instant.nrepl
  (:require [nrepl.server :refer [start-server stop-server]]
            [instant.config :as config]
            [cider.nrepl :refer [cider-nrepl-handler]]
            [clojure.tools.logging :as log]))

(defn start []
  (let [port (config/get-nrepl-port)]
    (log/infof "Starting nrepl on port = %s" port)
    (def server (start-server :port port :handler cider-nrepl-handler))
    (spit ".nrepl-port" port)))

emilaasa17:11:58

Ah sorry I should read the question before answering 🙂

emilaasa17:11:10

Yes I think that’s the way to do it.

❤️ 1
stopa17:11:35

sends high five awesome, thanks!

emilaasa18:11:29

The nicer nrepl implementations clean up after themselves too, you could do that too if you want

emilaasa18:11:51

Like listening to a signal handler and remove the .nrepl-port

❤️ 1
emilaasa18:11:02

That was a neat way to do it, didn’t know about deleteOnExit

❤️ 1
stopa20:11:41

Excited to see the syntax highlighting — thanks @U11EL3P9U! will look more