Fork me on GitHub
#cursive
<
2021-06-03
>
onetom06:06:00

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

ikitommi10:06:15

is there a way to define a new qualified keyword source (e.g. like s/def is?)

馃幆 3
Kari Marttila12:06:24

Is it safe to migrate to the newest IDEA 2021.1.2 (i.e. no issues with Cursive)?

mike_ananev12:06:27

I'm using IDEA 2021.1.2. No errors found, yet.

tamasjung19:06:38

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)

imre19:06:42

Tried just now, it doesn't work.

imre19:06:56

I got a NRE

imre19:06:08

It's been in limbo for quite a while now tbh

馃憤 3
lspector20:06:34

Is there a way to start up a standalone Clojure REPL, without having an open project?

potetm20:06:33

depends on what you want. The clj command does that.

lspector20:06:55

I meant in IntelliJ/Cursive. Is there a way to do that there?

potetm20:06:12

Ah, I didn鈥檛 notice the room I was in. Not that I know of.

lspector20:06:11

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.

lspector20:06:09

So the more complete question is whether we can start a Cursive Clojure REPL in Cursive without a project.

cfleming03:06:20

More generally, there鈥檚 basically no way to do anything in IntelliJ without a project. The only thing you get without a project is the welcome splash screen.

cfleming03:06:52

The only thing that鈥檚 really possible at the moment is the new LightEdit mode (https://blog.jetbrains.com/idea/2020/04/lightedit-mode/), but as far as I know that鈥檚 pretty experimental at this stage.

lspector15:06:20

Thanks @U0567Q30W. 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.

cfleming03:06:39

I鈥檓 actually not sure, I haven鈥檛 tried LightEdit yet, I鈥檓 not sure if Cursive requires anything to support it. Why do you not want a project?

lspector17:06:46

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.

lspector17:06:30

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.