Fork me on GitHub
#cursive
<
2021-03-22
>
nonrecursive15:03:31

hey y'all, is it possible to specify which nrepl version cursive will use?

nonrecursive15:03:18

the larger question is, how can you specify nrepl middleware when using cursive + deps.edn?

imre15:03:54

.nrepl.edn in the project root is what I use

👍 3
imre15:03:08

global one also works

cfleming20:03:36

Yep, that’s the preferred way, Cursive will obey that.

onetom16:03:38

The default Cmd-' (single quote) shortcut for the raise action is not doing anything for me sometimes. I'm not sure what breaks it and what makes it work again. If I run raise from the action menu, it works. Had anyone else experienced such an issue?

hlship20:03:29

Would it be possible for Cursive to devote part of the REPL window to a progress bar when running tests in a namespace? Currently, we get an ephemeral popup only after tests complete.

3
Ronny Løvtangen20:03:57

If I use an alias for :extra-paths in a deps project, the CLJ REPL in Cursive can’t find the sources.

:clj-paths ["src/clj"]
:server {:extra-paths [:clj-paths]}
If I don’t use an alias, it works as expected.
:server {:extra-paths ["src/clj"]}
It works fine from the command line, and the project window in IntelliJ marks the folder correctly as source folder. Only experiencing an issue in the REPL. Maybe no support for using alias in :extra-path yet?

cfleming21:03:17

Are you specifying the alias when running the REPL?

Ronny Løvtangen21:03:14

I’ve specified dev,server here

Ronny Løvtangen21:03:58

If I replace

:server {:extra-paths [:clj-paths]}
with
:server {:extra-paths ["src/clj"]}
it works fine, so I guess I have specified the alias ok. The difference seems to be specifying extra-paths with a keyword rather than a string

cfleming22:03:47

Ok, I’ll take a look at that.

Ronny Løvtangen22:03:06

Thanks :thumbsup:

onetom00:03:20

doesn't :extra-paths [:clj-paths] mean :extra-paths [["src/clj"]]?

Ronny Løvtangen07:03:21

If it is replaced as-is, yes, but the tool probably treats it differently. According to https://clojure.org/reference/deps_and_cli, that’s the syntax for using alias names in paths. It works fine from CLI.

borkdude13:03:44

Just curious, is cursive running with a modified version of tools-deps internally?

cfleming23:03:39

No, Cursive has two options - use the CLI tools (which really just runs -Sdescribe to get the version and install location, then grabs the uberjar and uses that) or use tools.deps directly, in which case it downloads it from Maven.