This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-04
Channels
- # aleph (3)
- # beginners (37)
- # boot (45)
- # carry (1)
- # cljsrn (15)
- # clojure (78)
- # clojure-austin (2)
- # clojure-brasil (10)
- # clojure-czech (3)
- # clojure-dev (12)
- # clojure-dusseldorf (31)
- # clojure-hamburg (2)
- # clojure-italy (4)
- # clojure-poland (2)
- # clojure-russia (37)
- # clojure-spec (25)
- # clojure-uk (30)
- # clojurescript (160)
- # cursive (40)
- # data-science (1)
- # datomic (31)
- # emacs (7)
- # figwheel (4)
- # hoplon (73)
- # leiningen (1)
- # liberator (5)
- # luminus (7)
- # numerical-computing (1)
- # off-topic (31)
- # om (89)
- # onyx (66)
- # proton (5)
- # protorepl (1)
- # re-frame (18)
- # reagent (2)
- # ring (2)
- # spacemacs (1)
- # untangled (93)
- # vim (19)
- # yada (67)
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?
so now i can do that instead of having to click on the little hide icon manually, so at least that’s an improvement
@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?
try pressing escape instead of clicking on the editor pane, i think escape focuses the editor (at least on my machine_
and again, on my machine, cmd-3 focuses the REPL pane, and toggles it if it’s focused
@spieden It sounds like REPL commands might be what you want: https://cursive-ide.com/userguide/repl.html#repl-commands
@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.
@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.
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 🙂
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.
@cfleming https://www.evernote.com/shard/s11/sh/c4d543d7-ad87-4a4b-b431-dd249f8ed5e7/032a8a152b07895c , which is set up per https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL - will grab a snap of the configuration in case it’s helpful
https://www.evernote.com/shard/s11/sh/99d343cc-a5ad-4043-b6b1-6d571989e0b2/b7981b74ea2e8d87
@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
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.
@cfleming How does one install 1.4.0-eap3? Cursive not showing up when I “Browse repositories” in 2016.3 EAP.
Was able to download it directly from intellij at https://plugins.jetbrains.com/plugin/download?pr=idea&updateId=28984
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
@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.
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?
@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.
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
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?
@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.
@shaun-mahood: that's what I do about 70% of the time 😉
@ckarlsen: Well then I'm no help at all 🙂
Is it possible to send nrepl messages through cursive? Such as stuff in https://github.com/clojure-emacs/refactor-nrepl.