cursive

Issues at: https://git.io/cursive-issues
nonrecursive 2021-03-22T15:31:31.050Z

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

nonrecursive 2021-03-22T15:34:18.050400Z

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

imre 2021-03-22T15:42:54.050600Z

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

đź‘Ť 1
imre 2021-03-22T15:43:08.050800Z

global one also works

nonrecursive 2021-03-22T16:10:32.051Z

thanks 🙂

onetom 2021-03-22T16:45:38.053900Z

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?

hlship 2021-03-22T20:25:29.059500Z

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.

âž• 1
cfleming 2021-03-22T20:25:36.059600Z

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

2021-03-22T20:59:57.065700Z

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?

2021-03-23T07:01:21.069700Z

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.

borkdude 2021-03-23T13:07:44.070100Z

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

cfleming 2021-03-23T23:54:39.079500Z

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.

cfleming 2021-03-22T21:18:17.065900Z

Are you specifying the alias when running the REPL?

2021-03-22T21:37:14.066100Z

I’ve specified dev,server here

2021-03-22T21:39:58.066500Z

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

cfleming 2021-03-22T22:07:47.066700Z

Ok, I’ll take a look at that.

2021-03-22T22:25:06.067100Z

Thanks :thumbsup: