Fork me on GitHub
#cursive
<
2022-05-02
>
imre12:05:31

Anyone had a problem with replace-deps in aliases recently? Cursive doesn't appear to see the ones specified like that for me

imre12:05:23

If I change it to extra-deps and refresh the project, they show up among Dependencies and I can navigate to those namespaces, but not with replace-deps

imre12:05:02

IntelliJ IDEA 2022.1 (Community Edition)
Build #IC-221.5080.210, built on April 12, 2022
Runtime version: 11.0.14.1+1-b2043.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
    scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins:
... com.cursiveclojure.cursive (1.12.3-2022.1)

imre06:05:03

@U0567Q30W does this ring a bell or should I create an issue?

cfleming06:05:01

@U08BJGV6E Could you file an issue please? That doesn’t ring a bell, and I can’t find anything like it.

imre06:05:22

Sure thing will do later

👍 1
Ziad Salah11:03:12

Hello, I came here to report this issue and found this thread. Wondering if there are any updates? I'm also contemplating working around this issue in the short-term by changing aliases that use :replace-deps to instead use an empty :replace-deps with the deps put in :extra-deps, eg. Instead of:

:foo {:replace-deps {my-deps}}
Do this:
:foo {:replace-deps {}
      :extra-deps {my-deps}}
Do you think there are any issues with using that workaround in the mean time?

Ziad Salah12:03:10

FYI I'm on cursive 1.12.4-2022.2

Marko Vukovic14:05:26

Hi everyone, is it possible to eval a from in the repl and then jump to the next form?

imre14:05:35

This should be macroable using intellij macros

👍 2
onetom23:05:49

i'd be interested to see such a macro! i tried to use intellij macros for the 1st time a few weeks ago and they just didn't work as expected, AT ALL. 😞

onetom00:05:50

another useful feature would be to clone the current top-level form, keep the cursor where it was, so we can start modifying the form, without loosing its previous "version". this would result in a REPL workflow, which is more similar to working from a unix shell, which is not too bad, imho... eshell can be configured to work almost this way. looking at my config, probably these lines activate this special behaviour for eshell:

(require 'em-smart)
(add-to-list 'eshell-modules-list 'eshell-smart)

imre11:05:12

to record: 1. place caret at the end of form to eval 2. start recording macro 3. eval sexp before caret 4. paredit-forward 5. stop macro recording to use: 1. caret at end of form to eval 2. execute eval-move macro

👍 1
kenny14:05:44

Has anyone noticed that when using the Cursive clojure.test integration, if you hover a large, failing test, it will completely freeze your UI? It's a really frustrating behavior. I often find myself really trying to avoid putting my mouse on the red squiggly, else I'll lose several seconds to a full ide lockup.

imre14:05:01

it's a known issue, there are several related open issues: https://github.com/cursive-ide/cursive/issues?q=is%3Aissue+is%3Aopen+hover

wilkerlucio23:05:01

yes, I feel you, a thing that helps is using Clear all test markers to avoid the mouse dance around the failures

kenny23:05:52

That unfortunately hides the button to open the diff viewer 😞 got a workaround for that one?

wilkerlucio23:05:54

in this case the mouse dance still required, to get the mouse in the marker without hovering the failure

😞 1
cfleming23:05:15

Sorry, I’m planning to do some work on this soon, I’ll put that in the current EAP series.

👀 1
1
🙏 1
kenny23:05:04

That would be huge! Thank you!!

cfleming23:05:35

It’s not quite clear what the best thing to do is when the output is really big. My plan is to print the current output, then if that’s too big then diff the results and print some kind of diff, and if that’s too big then fall back to “x changes in y top-level keys” or something like that. Does that sound reasonable?

kenny23:05:15

Print where?

cfleming23:05:27

In the tooltip.

wilkerlucio23:05:37

is there a way to know the size quickly? one option is to disable the hover tip with the result

wilkerlucio23:05:31

a simple dummer solution is to have a config option to disable the tooltip result entirely (getting it only by opening the diff)

✔️ 1
cfleming23:05:49

Yes, perhaps the hover tip could just show a summary like “x changes in y keys” or something. I pretty much immediately go for the diff anyway. But it might be helpful to see “x changes under keys :foo, :bar and :baz” or something similar.

kenny00:05:03

fwiw, I never use the hover, so would be totally ok with it gone.

wilkerlucio00:05:23

about the test, in cases where clojure can't determine the actual/expected, currently when clicking for the diff nothing happens, can we instead have a window with the raw result?

1
cfleming00:05:40

I’ll look at that, sure.

cfleming00:05:01

Actually, could you file an issue for that just so I don’t forget?

cfleming00:05:47

Thanks - is that check macro from matcher combinators?

wilkerlucio00:05:13

it uses matcher combinators under the hood, you can get check from: https://gitlab.com/mauricioszabo/check

cfleming00:05:34

Thanks, I’ll add that to the repro case.

kenny00:05:11

The match? macro from the matches combinators lib is the main one where this comes up for me.

cfleming00:05:24

Ok, I’ll check that one too.

👍 1
wilkerlucio00:05:42

I think the way to handle those should be the same down the line, unless you are going to give it some specialised implementation

imre05:05:55

There's alsonthe case when something (like a clojure.test/are or clojure.template/do-template) results in something passing a number of times and failing some times

cfleming05:05:27

Yes, that needs a list popup when clicking on the gutter icon.

cfleming05:05:55

I’m not sure if there’s an issue for that one, but that annoys me regularly so I won’t forget about it 🙂

imre06:05:13

My 2 priorities are keyboard navigability even if I have the gutter hidden and that it doesn't make the ui hang. Wondering if the intention could offer an action to put the fails into a tool window? Might be an overkill though

cfleming06:05:28

Yes, there’s an issue for the keyboard thing but I can’t find it right now.

cfleming06:05:46

Ah, yes, thanks.

Ziad Salah11:03:12

Hello, I came here to report this issue and found this thread. Wondering if there are any updates? I'm also contemplating working around this issue in the short-term by changing aliases that use :replace-deps to instead use an empty :replace-deps with the deps put in :extra-deps, eg. Instead of:

:foo {:replace-deps {my-deps}}
Do this:
:foo {:replace-deps {}
      :extra-deps {my-deps}}
Do you think there are any issues with using that workaround in the mean time?