Fork me on GitHub
#cider
<
2024-04-15
>
Felipe21:04:42

https://docs.cider.mx/cider/usage/managing_connections.html#friendly-sessions > You can disable friendly session inference by customizing sesman-use-friendly-sessions. can you really? I set this to nil after realizing that projects I didn't jack-into were picking up a REPL. then I noticed cider-current-repl calls cider-repls, and then sesman-current-session singular, which is

(defun sesman-current-session (system &optional cxt-types)
  ,,,
  (or (car (sesman--linked-sessions system 'sort cxt-types))
      (car (sesman--friendly-sessions system 'sort))))
sesman-current-sessions plural seems to respect use-friendly-sessions:
(defun sesman-current-sessions (system &optional cxt-types)
 ,,,
  (if sesman-use-friendly-sessions
      (delete-dups
       (append (sesman--linked-sessions system 'sort cxt-types)
               (sesman--friendly-sessions system 'sort)))
    (sesman--linked-sessions system 'sort cxt-types)))
am I missing something?

vemv21:04:59

Because all things Sesman are quite complicated and because I'm not in the capability of attending such questions in real-time over Slack I'd suggest that you create a GH issue. The writeup as-is seems fine but also, importantly, indicate your package versions, and what were you trying to solve in the first place

Felipe21:04:07

will do! thanks!

🙌 1