@rob370 i did setup reveal in a project which im using from cursive, but hasn't actually utilized the reveal window a lot, because the extra mental overhead of switching to the reveal window, instead of just looking at the built-in cursive window, somehow is too much.
otherwise, reveal seems to work just fine...
don't forget to create a .nrepl.edn
next to your deps.edn
, containing something like {:middleware [vlaaad.reveal.nrepl/middleware]}
.
then if you are annoyed by the opening reveal window, u can just turn it off by #_
commenting the vlaaad
part.
is there a way to define a new qualified keyword source (e.g. like s/def
is?)
Is it safe to migrate to the newest IDEA 2021.1.2 (i.e. no issues with Cursive)?
I'm using IDEA 2021.1.2. No errors found, yet.
Ok. Thanks!
Could anybody confirm if macro expansion is working/broken with recent versions? (tried several combinations, currently Cursive: 1.10.3-eap1-4-g139ba476, IJ 2021.1.2, Big Sur, for me the macro expansion window opens but throws a StrackoverflowError and none of the components, like toolbar buttons respond to mouse click)
Tried just now, it doesn't work.
I got a NRE
It's been in limbo for quite a while now tbh
Is there a way to start up a standalone Clojure REPL, without having an open project?
Thanks @cfleming. Should it be possible for me to get LightEdit mode working with a .clj
file now? I tried dragging a projectless .clj
file to IntelliJ in my MacOS dock, and it opened but I wasn't able to evaluate anything.
I’m actually not sure, I haven’t tried LightEdit yet, I’m not sure if Cursive requires anything to support it. Why do you not want a project?
I am trying to provide the simplest, most friction-free way for newcomers (often undergrad CS majors who have never seen Clojure before) to get from zero to a working REPL, so they can start to learn Clojure and gradually come to understand enough to take advantage of more of Cursive's features. I know it may be hard to grok for most people here, but the process of creating a project and starting a REPL can be pretty confusing to the newcomers, and while the docs are excellent in some respects they make lots of assumptions about background knowledge and present more information than is helpful to these new users, e.g. about different kinds of REPLs, Run Configurations, build tools, etc. The closer it can get to "install IDEA and then Cursive, and then select X to start a REPL" the better it will be. Separately, I often want a REPL for myself to do a quick calculation or play with an idea, and creating/opening dummy projects for this sort of thing is a bit of a drag. But the real thing I'm after here is onboarding new users.
Of course there are other ways to get a quick REPL, but they mostly have annoying weaknesses (e.g. for multiline input), or they're not trivial to start up, and in any event they're not on the path that I want my students to be on, which is the path to using Cursive.
depends on what you want. The clj
command does that.
I meant in IntelliJ/Cursive. Is there a way to do that there?
Ah, I didn’t notice the room I was in. Not that I know of.
Huh -- yes, I see I can do it in Cursive's Terminal pane (click on the terminal tab and then type clj
). But I assume this is just an OS terminal so clj
would have to be installed, and we'd have none of the benefits of being in Cursive.
So the more complete question is whether we can start a Cursive Clojure REPL in Cursive without a project.