This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (33)
- # aws (2)
- # babashka (14)
- # beginners (128)
- # calva (34)
- # cestmeetup (3)
- # clj-kondo (12)
- # cljdoc (3)
- # clojure (114)
- # clojure-europe (31)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-uk (6)
- # clojurescript (35)
- # conjure (20)
- # cursive (3)
- # data-science (3)
- # datomic (16)
- # docker (13)
- # events (1)
- # figwheel-main (22)
- # fulcro (109)
- # jobs (1)
- # kaocha (8)
- # keechma (1)
- # lambdaisland (5)
- # malli (1)
- # meander (8)
- # mid-cities-meetup (1)
- # off-topic (6)
- # overtone (7)
- # pathom (6)
- # re-frame (2)
- # reitit (9)
- # ring (1)
- # shadow-cljs (92)
- # specter (1)
- # tools-deps (311)
- # xtdb (76)
Just a note of thanks for your work on Calva, @pez & @brandon.ringe. I've already tried the two editor/IDEs I'm most familiar with (IntelliJ/cursive & emacs/CIDER), aiming to discover what suits me best for clojure/script - I like both for different reasons. I haven't used vs code much in the past, but I'm giving it a try for a while. So far so good - you've done a really nice job with Calva. Whichever editor I land on, I appreciate the ton of work it takes to do this stuff.
Wonderful. Feedback like this is what makes it fun putting in the work! Please consider writing a review on the marketplace.
I had barely noticed the marketplace (not really having been a vscode user to date). But of course those stars I see when browsing extensions in vscode had to come from somewhere ... done.
@pez, thank you for such a detailed response! I've got your point. Will try the workflow you suggested. @brandon.ringe, that sounds like a great idea! I'll be happy if it will be implemented. Congrats on the new release! You guys are awesome.
I'm sorry, Windows-using Calva friends. I forgot to test this new release on Windows. Now it can't connect. I'm looking at it.
New Calva out, v2.0.110, fixing the Windows connection bug. (And the PR template checklist has been updated to remind about that some changes need to be tested on Windows as well.
Often it is a simple smoke test that is needed. But our current CI does not do this connection smoke test at all, and we are not running it on Windows anyway. So both those things should be fixed. If someone is good with CI testing and Windows such, please feel invited to file PRs about it!
But there is still conection problem with Linux. Calva version 2.0.110 Ctrl-Alt-C Alt-C / Clojure CLI says Hooking up nREPL sessions... Connected session: clj Failed connecting. nREPL Connection was closed The same time console is running nREPL server started on port 33915 on host 127.0.0.1 - <nrepl://127.0.0.1:33915> But it works last week.
Oh, wow, @cb.lists! I just read your review on Calva. It is wonderful. Really good that you point out what you like about it and what it has going for it. ❤️
the new update chefs kiss so is there any reason to use the repl? is the idea that will get phased out in favor of the output repl file?
We hope to be able to remove the old REPL window pretty soon. But first we are curious about what people think about your question there: is there any reason to use the [old] repl [window]?
Command history might be one. It's not something I use much, but if you were doing repetitive exploratory stuff in the REPL window, command history would be handy (I think I'm right in thinking this doesn't exist in the new output window?).
I think not, but I think we can implement fairly easily. I've found myself actually using alt+upArrow trying to re-insert a previous evaluation
and realizing/remembering the new output window doesn't do that (yet). I'm not sure of @pez’s thoughts on it, but probably fairly easy to do
Minor issue, but I'd be weary of treading on standard editor keyboard shortcuts. A distinctive aspect of the new window is that it's a regular editor - you might want to hold on to that editor-identity as much as possible, given users familiarity with it.
Probably could come up with something that makes sense though, or even some kind of peek window of history you can easily pull up/browse.
Also, just as I mentioned saving the position/range of results in the output file for peeking from the editor, maybe we can save the positions of forms evaluated in the output file, so the history command just traverses the positions and pulls the text from there.
That peek window could be a nice feature. How much it's worth your time might depend on how much people use the REPL window directly. I get the impression most folk do much more inline evaluation in source files (certainly the case for me).
+1 on missing the alt+upArrow +1 on holding on to editor-identity as much as possible
my cheat that's been working for me today is using "go back/forward" shortcut (ctrl+-/ctrl+shft+-); found myself mostly reaching for alt+up to replay/modify the last statement it works mostly ok but a bit fudgey since vscode doesn't always register a new historical point on alt+enter eval but possibly could be injected through the extension? caveat: breaks down for larger jumps or after ctrl+tabbing back but I use the acejump extension to jump around (another benefit of outputwindow == editor)
I also have pressed alt+up a few times in this window. That prompt seems to bring expectations. I think it's ok to use that shortcut of we limit it to when the cursor is at the empty line, last in the file, or something like that.
I have tried to figure out clever ways to implement the history, but it all quickly get rather complicated. We can always do it the same way as we do in the old REPL window, of course.
Actually we've already have some differences with a regular file. And I've found some bugs around them:
- Form evaluation with
alt+enter. It seems that it now works in the regular project files too, which was kind of unexpected for me.
- Disabled backspace on an empty prompt. It does not work properly if I try to delete an expression in brackets.
As @pez wrote in his post on ClojureVerse, the main challenge with the previous REPL window was to make it feel like a regular editor. It seems that a new challenge is to make it feel like a REPL. In that case I think it's ok to treat a prompt in a slightly special way (with
alt+up, backspace disabled and so on).
Another possible solution is to remove all the differences completely (e.g. use regular
ctrl+alt+c space to evaluate forms and find another way to manage command history) and only append to the repl file. But maybe repl experience will suffer a bit.
I've added alt+enter and ctrl+enter to the editors on purpose. Kept the old shortcuts for now, but changed the docs to promote the new ones.
Ahh, got it. Sorry for the false alarm :) Here it is. Was surprised that it actually worked on the first expression, but after trying to remove an empty brackets it started to fail every time.