Fork me on GitHub
#cider
<
2016-05-10
>
malabarba00:05:57

@jcsims: ok. I'll try to investigate that later too.

malabarba00:05:52

@brian_mingus if it requires extra software then it's not worth adding directly to cider. However, if someone manages to get it working, and puts together some instructions, we could link to it on the readme.

malabarba00:05:13

@bvulpes: thanks :-)

brian_mingus00:05:24

@malabarba: i managed to snapshot and restore a lein repl. each operation was fast, restore was instant. criu also supports updating your snapshot as you go

brian_mingus00:05:32

i suppose i could always fork cider. if i get this functionally wrapped up nicely i think pretty much everyone on linux will want it

malabarba01:05:14

Sounds nice. 😄

malabarba01:05:54

I could see us integrating that with Jack-in (and adding some commands like cider-suspend). It would have to be off by default (at least at first).

malabarba02:05:03

In fact, I have some ideas of how it might integrate nicely with Jack-in without adding much complexity.

malabarba02:05:43

I could write that part, in fact.

malabarba02:05:57

Probably the best way to start is to write a separate package with commands for dumping snapshots and restarting snapshots.

malabarba02:05:02

This part of the functionality would be mostly independent from cider anyway.

malabarba02:05:26

Would you like to try that? @brian_mingus

brian_mingus02:05:15

@malabarba that was basically my plan as well - i would write a clojure wrapper for criu, and then either pass it off or go on the deep dive of figuring out how to get the full integration working. i also considered an elisp implementation but since i don't know elisp very well, clojure is more appealing, and seems to be better for cider.

brian_mingus02:05:59

@malabarba, did you write aggressive-indent-mode? i have a file that it chokes on simple_smile

brian_mingus02:05:21

@malabarba: i'll get back to you tomorrow after i speak with my coworkers

bozhidar06:05:23

@bvulpes: Happy to hear this! simple_smile

slipset07:05:32

@bozhidar: I really love the cider-auto-test-mode

slipset07:05:57

it makes writing tests worth while simple_smile

slipset07:05:36

Curious though, I see from the code that it’s run from cider-file-loaded-hook

slipset07:05:07

is there a cider-file-saved-hook so I could run the tests when the file is saved?

slipset07:05:37

Also, I understand that the suggestion I’m about to make would wreak-havoc, but normally, when I run C-cl in foo.clj it’s foo.clj I want to reload, but today I’m being prompted. Could I suggest that C-cl loads current file if it’s a clojure file, and maybe add a prefix, C-u C-cl to load some other file?

dpsutton12:05:35

i'm looking to add the variable information to the popup windows according to issue 1737. I'm running the debugger looking at the messages popping up and I was hoping they would leave some information in Messages about where I might start investigating the call stack, but i'm not really seeing it

dpsutton12:05:59

Where's the best place to grab a handle on some part of the call stack and investigate the best place to add in the locals information

malabarba15:05:19

@dpsutton I think there's already an open PR for that though. simple_smile

dpsutton15:05:27

ah. haha ok

dpsutton15:05:35

need to make sure to check both from now on:)

malabarba15:05:23

Cider's been pretty active lately 😄

malabarba15:05:02

@slipset: i think you're looking for C-c C-k. That should load the buffer without prompting.

slipset16:05:53

@malabarba: thanks!

pri20:05:44

Has anyone been able to get fipp pretty-print working on lein repl and cider-nrepl consistently on cider 0.12.0?

pri20:05:35

my workflow: I start a lein profile with repl headless and connect to it from cider. I don’t jack-in because I need to switch profiles and I have no idea who to jack-in with them. I added mvxcvi/whidbey “1.3.0” in global lein profiles, and set this in emacs (setq cider-pprint-fn "puget.printer/pprint”). Still, I don’t see pprint on console or cider repl inline.

pri20:05:57

I tried with plain puget as well, no results

pri20:05:08

I had this working in cider 0.10.0

bozhidar21:05:24

you can submit an issue

bozhidar21:05:31

maybe there was some regression

bozhidar21:05:50

I rarely use pretty-printing, so not noticing this is possible

malabarba22:05:28

@brian_mingus yes, I did write aggressive-indent-mode. What's the file that's giving you trouble?

brian_mingus22:05:05

it's not public, but it's deeply nested and so i know to disable the mode when i open it

brian_mingus22:05:37

it's a monster compojure data structure

malabarba22:05:50

Aggressive-indent-mode can be slow on files with huge top-level sexps.

malabarba22:05:06

Sadly there's not much to do about it other than disable it.