calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
Stefan T 2020-09-25T00:16:49.016600Z

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

bringe 2020-09-25T01:23:30.016800Z

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?

bringe 2020-09-25T01:26:34.017Z

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 T 2020-09-25T01:27:19.017200Z

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

bringe 2020-09-25T01:27:49.017400Z

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

Stefan T 2020-09-25T01:27:55.017600Z

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

Stefan T 2020-09-25T01:28:36.017800Z

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

bringe 2020-09-25T01:28:53.018Z

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.

👍 1
2020-09-25T01:28:55.018200Z

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 T 2020-09-25T01:28:55.018400Z

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

Stefan T 2020-09-25T01:29:55.018800Z

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

bringe 2020-09-25T01:30:31.019Z

@sogaiu 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..

bringe 2020-09-25T01:30:33.019200Z

I'm not familiar

bringe 2020-09-25T01:32:02.019400Z

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

Stefan T 2020-09-25T01:38:43.019600Z

is the new repl window all /results-output?

2020-09-25T01:38:49.019800Z

@brandon.ringe 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.

bringe 2020-09-25T01:46:14.020200Z

Oh I see

bringe 2020-09-25T01:49:43.021600Z

Oops, misunderstood and deleted my messages lol

bringe 2020-09-25T01:50:11.021800Z

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

bringe 2020-09-25T01:50:41.022Z

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

pez 2020-09-25T05:56:46.025500Z

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.

👍 2
Charlie Briggs 2020-09-25T11:46:52.027100Z

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?

Charlie Briggs 2020-09-25T11:48:22.027200Z

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!

Charlie Briggs 2020-09-25T12:08:40.028Z

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?

bringe 2020-09-25T16:42:18.028500Z

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 @pez has some idea.

pez 2020-09-25T19:47:46.029300Z

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