Fork me on GitHub
#calva
<
2020-09-25
>
stefan.toubia00:09:49

I was curious, is it possible to lock your scroll position in the repl window? Currently new output will always force you to the bottom, which isn’t so great when you’re trying to read something

stefan.toubia00:09:49

I was curious, is it possible to lock your scroll position in the repl window? Currently new output will always force you to the bottom, which isn’t so great when you’re trying to read something

brandon.ringe01:09:30

I haven't come across this yet but I see what you mean. If you have continuous output and you want to scroll up and read something while output is being written, it will keep scrolling back down, right?

brandon.ringe01:09:34

This probably needs to be handled... I think an issue would be good. I'm not sure the options we have, like if we can know when the user scrolls up... Or maybe if there's any scrolling up, or if the last part of the doc is not visible before writing output, then don't auto scroll after writing..

stefan.toubia01:09:19

Yeah, it’s something I’ve been running into with test runner output and async output

brandon.ringe01:09:49

I'm almost amazed it hasn't been brought up yet lol

stefan.toubia01:09:55

I’m not sure what degree of control you have over this, hopefully there is a solution

stefan.toubia01:09:36

hah yeah for me it’s been kinda a ‘oh this repl is nice, but damn gotta wait for output, note to self’

brandon.ringe01:09:53

Please create an issue and we'll see about it when there's time. There are other priorities too currently, so if you want to take a stab and have time, that would be nice too.

sogaiu01:09:55

i don't suppose having a split view where one tracks changes and the other stays fixed is any use here...(iiuc vscode already has split views of some sort)

stefan.toubia01:09:55

in other words, I’ve just been enjoying the positives

stefan.toubia01:09:55

I’d like to get back in there and tackle some of those dusty items, like monorepo support. Pretty hammered with a work project at the moment but hopefully that will let up and give me some free time soon

brandon.ringe01:09:31

@ Interesting.. I think this might overcomplicate things though and crowd the limited screen space with something that's essentially duplicated. Unless you mean a native vs code feature..

brandon.ringe01:09:33

I'm not familiar

brandon.ringe01:09:02

If you mean like open two versions of the output window, I think the current functionality might scroll both anyway, but not sure

stefan.toubia01:09:43

is the new repl window all /results-output?

sogaiu01:09:49

@ i was thinking of this feature in vscode: https://stackoverflow.com/a/40709472 ah, but that doesn't seem to quite do what i had in mind. as you say it seems crowded.

brandon.ringe01:09:43

Oops, misunderstood and deleted my messages lol

brandon.ringe01:09:11

Yes most of the code is there for the repl/output window

brandon.ringe01:09:41

And then things reference this code where needed, but it's mostly encapsulated there

pez05:09:46

I left this feature out intentionally because I deemed it too hard to be implemented in a nice enough manner. But I could live with a toggle that the user is in full control of. No automatic figuring out whether it should scroll or not.

charliebriggs11:09:52

We’re having issues when using clojure.tools.namespace.repl and calva, might be our misunderstanding of things when we reload a namespace with clojure.tools.namespace.repl (using a file watcher in this case), the calva REPL with that namespace doesn’t seem to get refreshed to that reloaded namespace. Is there a way of doing that programatically?

charliebriggs11:09:52

We’re having issues when using clojure.tools.namespace.repl and calva, might be our misunderstanding of things when we reload a namespace with clojure.tools.namespace.repl (using a file watcher in this case), the calva REPL with that namespace doesn’t seem to get refreshed to that reloaded namespace. Is there a way of doing that programatically?

charliebriggs11:09:22

also is this still true about separate repl sessions? https://github.com/BetterThanTomorrow/calva/issues/232#issuecomment-504152491 as we may also be running into this!

charliebriggs12:09:40

For reference the file watcher is roughly this: https://github.com/duct-framework/core/blob/master/src/duct/core/repl.clj#L23-L37 could the fact that that’s calling reload in a separate thread be anything to do with the weirdness?

brandon.ringe16:09:18

The session is the same now, it's the same session used among both file and repl/output window. I've never used clojure.tools.namespace.repl with Calva, so I can't provide much info. Maybe @ has some idea.

pez19:09:46

Can you provide a reproduction, @? What you expect should happen and what happens.