Fork me on GitHub
#cursive
<
2016-10-04
>
jrheard00:10:10

simple question, something that i don’t think used to happen and is just vaguely irritating - when i hit cmd-shift-R to start a repl, the “run” bar on the bottom of editor pops up every time, and i don’t want it to. this is in addition to the REPL pane, which pops up and is fine. do you folks know what i’m talking about? is there a way to make the run bar not pop up?

gerred00:10:49

i do, I have no idea how to solve it.

jrheard00:10:35

aha - cmd-4

jrheard00:10:39

is what toggles it (on my machine), anyway

jrheard00:10:55

so now i can do that instead of having to click on the little hide icon manually, so at least that’s an improvement

puzzler00:10:10

@jrheard My process to start a REPL is Shift-F10 to run the default configuration which I've set up to be the REPL, then I have to click in the editor pane (because it loses focus), Ctrl-Alt-N to change namespace to the current file, Ctrl-Alt-L to load the file, then click back in the repl pane. [I don't remember which of those keystrokes were ones I bound, and which are by default]. It's a bit tedious. Is there a better way?

jrheard00:10:15

try pressing escape instead of clicking on the editor pane, i think escape focuses the editor (at least on my machine_

jrheard00:10:36

and again, on my machine, cmd-3 focuses the REPL pane, and toggles it if it’s focused

jrheard00:10:49

so hopefully those help for less clicking, although they don’t remove any of steps

jrheard00:10:08

i am not at all an expert though, so hopefully someone else has a better idea

cfleming00:10:23

@spieden It sounds like REPL commands might be what you want: https://cursive-ide.com/userguide/repl.html#repl-commands

cfleming00:10:11

@puzzler Not that I’m aware of, no. However if you have an autocomplete popup up, ESC should not take you back to the editor.

cfleming01:10:34

@jrheard That’s annoying - I don’t see that. I only get the Run toolwindow opened when I debug the REPL, and that’s required since it’s where the debugger UI is.

jrheard01:10:03

hm, i don’t think i’m debugging

jrheard01:10:23

i’m able to mitigate it now that i’ve got a handy keyboard shortcut, so i’m not super upset, but if i can give you more information let me know 🙂

cfleming01:10:53

Could you look in the Run menu and see which command that is bound to? Looking in the default keymaps, Cmd-Shift-R is normally bound to run an Ant task.

cfleming01:10:02

Ok, so that’s bound to run the last config - you’re not debugging, then.

spieden01:10:29

@cfleming: RTFM helped a lot -- thanks. after some experimentation I realise I'd overestimated the amount of reloading and restarting that needed to happen for my changes to appear. Re reading Stuart sierra's post helped a bit on the exceptions to var dynamism. Guess I'll just feel out my scenarios with the "try the small 🔨first then progressively larger ones" approach to resetting

cfleming01:10:26

Ok, cool - let me know if you have more questions - it’s a common workflow, so if there are ways to improve it I’m interested.

spieden01:10:29

Seems like I shouldn't need tools.namespace for anything anyway

spieden01:10:44

Ok will do

joshg04:10:31

@cfleming How does one install 1.4.0-eap3? Cursive not showing up when I “Browse repositories” in 2016.3 EAP.

onetom05:10:45

I've disabled resolution on a macro and I don't know how to enable it again. Before that it was set to resolve as def but it wasn't behaving like that, that's why I wanted to disable 1st and set again to behave like def

puzzler05:10:37

@onetom When you are disabling resolution, you are effectively unchecking a setting in the settings panel. To re-enable, go into settings and search on resolution and find the checkbox and recheck it. Then it will appear again as a pop-up on the symbol and you can set it to behave like def.

puzzler05:10:16

When a thread running in the REPL has an out-of-memory error, it brings all of Cursive to its knees. Is there any way to isolate this better, so that I can still interact with my program, edit things, save and exit safely?

cfleming05:10:05

@puzzler Hmm, Cursive should be isolated from the REPL process, I’m not sure why that would affect it. I’ll provoke an OOM and see if I can reproduce.

onetom06:10:33

@puzzler thanks; found it under Editor / Intentions indeed

jdubie18:10:59

Recently there was a regression with my Cursive Test integration. Test Integration interactive running of clojure.test tests, with failures marked in the editor and visual diffs. I’ve lost failures marked in editor and visual diffs and the green test success flash message that fills my heart with joy. Is this a known regression? Any ideas on how I should debug? Intelij version

IntelliJ IDEA 2016.2.4
Build #IC-162.2032.8, built on September 9, 2016
JRE: 1.8.0_112-release-b343 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Cursive version
Version: 1.4.0-eap2-2016.2

ckarlsen18:10:37

I find typing in the REPL very slow/sluggish compared to editing files. Running latest EAP of cursive and intellij on linux with bundled jdk. Low mem usage in intellij. Have tried to invalidate caches. tips?

shaun-mahood20:10:11

@ckarlsen: Can you type in a scratch file (or real files) and just send things to the REPL? I adopted it as my general workflow a few months ago and it's been pretty nice, and it would at least give you a workaround until someone can help you. No idea about the REPL issues unfortunately.

ckarlsen20:10:06

@shaun-mahood: that's what I do about 70% of the time 😉

shaun-mahood20:10:47

@ckarlsen: Well then I'm no help at all 🙂

ckarlsen20:10:37

running the REPL as a 'normal JVM process' feels super responsive at least

ckarlsen20:10:45

the slowness might be the nature of nrepl?

snoe23:10:54

Is it possible to send nrepl messages through cursive? Such as stuff in https://github.com/clojure-emacs/refactor-nrepl.