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`.
Nathan K 2020-08-02T09:35:50.038500Z

Hi πŸ‘‹ I'm fairly new to clojure. I couldn't find a way to stop a run-away loop before in the calva REPL in vscode. It just kept writing to the output file. Is there a trick to stopping this sort of thing?

pez 2020-08-02T09:45:59.039800Z

Hi @nathan.l.kramer, welcome! You can try the command Calva: Interrupt Running Evaluations. But it depends a bit on how asynch or not the loop runs.

πŸ‘€ 1
Nathan K 2020-08-02T10:03:38.040200Z

Thanks @pez πŸ˜„

pez 2020-08-02T11:03:22.043Z

An update to Calva just released. It adds a peek definition pointer to the evaluated forms, so that even if you are not displaying the output window on the screen while you evaluate code, you can quickly peek into it using VS Code's Peek Definition command. See the docs for a demo: https://calva.io/output/#peek-at-results

πŸŽ‰ 3
pez 2020-08-03T07:07:31.056100Z

Might be possible. Please add an issue about it.

alidlorenzo 2020-08-03T14:34:35.062200Z

I think rather than automatically showing peek (since a popover an be intrusive), automatically folding the repl window output would be nice

pez 2020-08-03T15:21:45.067600Z

I don't think that's possible. There's only a way to fold the current editor. As far as I have understood things.

alidlorenzo 2020-08-03T15:39:41.069700Z

yeah I’ve never worked on a vscode extension, just thought maybe it’d be possible to fold the repl output programmatically, but if that requires focusing in and out of editor windows may be quite tricky to do

pez 2020-08-03T16:17:54.071900Z

The editor object does not expose an API for it. So we would need to execute the fold command, which operates on the active editor.

ikrimael 2020-08-02T17:55:22.046900Z

@pez related: what are your thoughts on this type of workflow: https://youtu.be/rh5J4vacG98?t=1085 e.g. not interesting enough/great but not easily supported/etc

alidlorenzo 2020-08-02T18:57:07.047200Z

previously with only the output window, anytime the evaluated output was an error, I was running the fold command to make the output more legible. which worked, but was a bit tedious but the peek definition opens at the top of evaluated output (in most cases at least)*, and in general makes it much more navigable, really great, thanks for all your work!

❀️ 2
pez 2020-08-02T20:01:44.047700Z

It feels a bit bad abusing the peek-definition like this, but, hey, it works! πŸ˜ƒ

pez 2020-08-02T22:32:22.051Z

That looks super awesome. We can't really create inline result widgets like that yet in vscode, but it would be possible to create something like it using tree views (in the Explorer area).

πŸ‘Œ 1