Fork me on GitHub
#cider
<
2016-02-25
>
bozhidar08:02:08

ah, I didn't think about this at all

bozhidar08:02:21

likely we just forgot about the stderr

bozhidar08:02:53

although in this code example it seems to me that the stderr shouldn't be attached to the server process

bozhidar08:02:23

@jan.zy: please, file this as an issue and we'll investigate it further

jan.zy08:02:40

in cider-nrepl?

malabarba14:02:41

@samedhi: Did you file that issue after all? I can't seem to find it now

malabarba14:02:33

@samedhi: Never mind, I'm just being stupid. πŸ˜›

sander16:02:53

In 0.10.2, I'm often getting Wrong number of arguments: (0 . 0), 1 errors when trying cider commands. I don't get them when calling (load "dash") right before calling the cider command, but am not sure whether it is directly related (got that from https://github.com/clojure-emacs/cider/issues/1343). is there anything I can do to fix it?

bozhidar17:02:18

stop using clj-refactor.el simple_smile

bozhidar17:02:47

cider doesn’t use dash.el anymore, so if you run into a problem like this - it’s definitely outside cider

sander17:02:42

thanks! i'm not using clj-refactor.el directly but will try to find out what includes dash.el then

sander17:02:59

ok apparently dash was just installed (maybe as a dependency of some old package), removed it simple_smile

sander17:02:38

reinstalled with only the packages i really need, things work now!

benedek18:02:36

well, start using clj-refactor.el @sander πŸ˜‰ and 😜 for @bozhidar

benedek18:02:58

it is a nice package apart from the small beauty spot that it uses dash 😜

benedek18:02:20

actually, just watch a 5mins episode of http://parens-of-the-dead.com simple_smile

benedek18:02:16

haha checked your gist, it seems clj-refactor is in a good company with magit πŸ˜‰ β€” pun aside I understand the reasoning behind as few deps as possible @bozhidar πŸ˜‰

bozhidar18:02:08

sure, I was just joking myself

bozhidar18:02:21

as usually the dash.el issues are coming from clj-refactor

bozhidar18:02:34

and before this they were coming from cider itself simple_smile

benedek18:02:56

yup i know you were joking, no worries

benedek18:02:46

tbh the main value dash still has that it brings elisp dev much closer to clojure coding

fenton20:02:26

@bozhidar: Hi Bozhidar, you can persist the command history to a file?

arrdem20:02:06

@fenton: which history? the repl history?

arrdem20:02:54

@fenton: in the repl buffer just C-x C-s and it'll prompt for a location to save the repl history to.

arrdem20:02:41

there's also options documented in the CIDER README for saving history on every REPL command as well as for what file to save it too.

fenton20:02:32

@arrdem okay...sorry i missed that...that is exactly what I'd be looking for!

arrdem20:02:42

@fenton: quite alright happy hacking!

fenton20:02:07

@arrdem: thank you guys for suck an awesome product!!!

arrdem20:02:21

I can take no credit for cider πŸ˜› I'm just a user.

fenton20:02:48

@arrdem: well thanks for helping me anyway! simple_smile

arrdem20:02:21

I do have a series of fine libraries and http://conj.io which may be useful to you

fenton20:02:43

ah this file only gets written on a clean exit...what wondering about continuous writing to it for recovery from a laptop crash

arrdem21:02:07

I have a snippet for that...

fenton21:02:03

pray tell ! simple_smile

arrdem21:02:19

(require 'advice)
(advice-add 'cider-repl--add-to-input-history
            :after #'(lambda (x)
                       (cider-repl-history-just-save)))

arrdem21:02:36

also

(define-key cider-repl-mode-map (kbd "C-x C-s")
  'cider-repl-history-save)

fenton21:02:40

@arrdem: hmmm...doesn't allow me to enter things in my repl anymore... Is this intended to persist after each command in the REPL? Or requiring an explicit save of it?

arrdem21:02:18

@fenton: advice is a way to chain functions together... that first snippet should just cause history to be saved after every sent command.

arrdem21:02:30

if the history file is set.

fenton21:02:30

@arrdem: ok got it, hist file has to be explicitly set.