Fork me on GitHub
#cursive
<
2022-04-28
>
salam04:04:32

Colin, the keyboard shortcut for the REPL window (E) in the Switcher (Control-Tab) seems to be case-sensitive. in other words, when Caps Locks is off, Shift-E works but E doesn't.

cfleming05:04:40

That’s very odd.

cfleming06:04:48

I’ll take a look at this tomorrow, but I don’t think there’s much that I can do about this on the Cursive side, since that’s all IntelliJ.

onetom10:04:22

neither e or E switches anywhere for me under IntelliJ 2022.1, JBR 17.0.2+8-315.1-nomod & Cursive 1.12.3-2022.1 under macOS. i've activated the Switcher via the Cmd-Shift-A action menu and I indeed saw, there is a capital E, next to the REPL entry. btw, in Cmd-E (Recent Files action), when I selected the REPL item, also nothing happened; I've stayed in the current editor tab. after some clicking around, suddenly both approaches started to work and focus the REPL tool window from the Switcher (activated via the action menu), when I pressed the lower-case e. though they focus the output pane, not the input pane, or the one which was focused the last time. not sure if that's the intended behaviour.

imre07:04:22

Thank you, Colin! Does this version have any differences from 1.12.3-eap2 ?

cfleming08:04:44

No, it’s just released in the main stable channel, so that everyone not signed up for EAPs will get it too.

cfleming08:04:05

For those on the EAP channel there’s no change.

imre08:04:17

Thanks for the info!

akiel11:04:06

Thanks for the new release! I have now a problem running a REPL from by deps test alias that includes a

:main-opts ["-m" "kaocha.runner"]
It seems to have something to do with https://github.com/cursive-ide/cursive/issues/2322 Kaocha is complaining Unknown option: "-i". > Cursive now adds them prior to the -i option, If I remove the Kaocha main-opts, it works. Should I have a separate test-repl alias?

imre11:04:53

@U07MC8H4Z I experienced this with -eap2 a day or two back. For me it only affects repl configs that are set to run with deps so I worked around it by selecting run with intellij project classpath and selecting the aliases I need in the deps tool window

akiel11:04:57

@U1ZD6QX4G Thanks. I don't know if using the intellij project classpath is the best solution. I just separated my test und kaocha dependencies and use only the test alias for the REPL and test+kaocha for the CI. Seem more clear to me to use two separate aliases. What do you think?

imre11:04:43

Whatever works for you 🙂 my case was a little different, I wanted to stay with a single alias

imre06:05:03

Added a comment on https://github.com/cursive-ide/cursive/issues/2322#issuecomment-1115769457 - I think main-opts could use a bit more thinking. Afaik :main-opts is a clojure.main thing, not an nrepl one anyway?

cfleming06:05:18

Yes, it does need more thought. I have to say I find the deps aliases super confusing, I haven’t managed to make a coherent mental model of them at all.

cfleming06:05:14

They started out quite simple, but now are not, and that’s going to make the UI for running things via deps tricky - I was thinking about it the other day.

imre07:05:06

Without knowing how difficult this part is in Cursive, I'd try and lean on tools.deps as much as possible so stuff works preferably the same way outside of Cursive as inside of it

cfleming08:05:25

Yeah, that’s my plan.

imre08:05:09

deps is confusing sometimes. I find it useful to create minimal projects to try some aspects of it out like https://github.com/imrekoszo/try-deps-tool-replace

akiel08:05:15

Aren't aliases just named parts of config that are merged together depending on what aliases one selects?

cfleming08:05:07

Not any more. Depending on the flag you use, the config is merged in different ways. For example, using -T deps will use a completely different classpath.

imre08:05:50

I don't think it's that serious - -T just implies an extra 'alias' containing :replace-deps {} :replace-paths ["."]

imre08:05:01

The repo I linked shows these