This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-24
Channels
- # announcements (2)
- # beginners (22)
- # cider (10)
- # clojure (47)
- # clojure-italy (2)
- # clojure-spec (2)
- # clojure-uk (1)
- # clojurebridge (5)
- # clojurescript (19)
- # cursive (1)
- # data-science (7)
- # datomic (2)
- # duct (18)
- # emacs (6)
- # figwheel-main (2)
- # java (2)
- # luminus (1)
- # nrepl (20)
- # off-topic (69)
- # om (3)
- # pathom (45)
- # quil (2)
- # re-frame (16)
- # reagent (1)
- # reitit (6)
- # ring (2)
- # shadow-cljs (33)
- # tools-deps (9)
- # vim (6)
- # yada (1)
before I start digging deeper, anyone here noticed this weird behavior? after jacking-in or connecting to already running nrepl a blank screen shows up (with no usual cider help banner, whatsoever). but seems like it's just incorrectly scrolled, when I press C-l to re-position the buffer everything immediately gets visible - repl prompt, banner, etc.
There were some changes to recentering in the REPL recently – do you have any related config/customisations? Could you share your values for cider-repl-pop-to-buffer-on-connect
and scroll-conservatively
? (and any other config/customisations related to scrolling if possible?)
Possibly this will fix it once merged: https://github.com/clojure-emacs/cider/pull/2599/files
@U052B0PT3 sure, here are the values:
cider-repl-pop-to-buffer-on-connect is a variable defined in ‘cider-repl.el’.
Its value is t
scroll-conservatively is a variable defined in ‘C source code’.
Its value is 1001
I also applied the patch locally but seems like it doesn't help neither for cider-repl-pop-to-buffer-on-connect
t
nor for display-only
values. initial banner is still scrolled up, out of the screen. I will try to dig deeper.
The cause is definitely https://github.com/clojure-emacs/cider/commit/dc80d871eeacdb1c37434c4b17f9af77968d4c22
But I’m wondering what’s causing the scrolling not to happen on your env (you have the same config as me)
This has been reported now as well: https://github.com/clojure-emacs/cider/issues/2600
actually, what works for me is, instead of the patch you pointed to, replace it with what recenter
function does. that solves my problem (with help banner on and off): (recenter (- -1 (max 0 scroll-margin)))
That might be the best solution. I removed all the recentering because it was impacting performance (and was mostly redundant because of scroll-conservatively
), but doing it once at init isn’t a problem at all