Fork me on GitHub
#cider
<
2018-03-13
>
bozhidar06:03:02

@dottedmag The problem is that clj-refactor doesn’t support injecting deps for deps.edn projects. For the time being you should add those manually to your project.

bozhidar06:03:14

> It’s weird that it brings in Orchard

bozhidar06:03:38

It to work around some dependency resolution bug, that we couldn’t track down. It will be removed eventually.

bozhidar06:03:54

Yeah, fixing this would help as you’d be able to inject refactor-nrepl via the cider config. Fixing it is super simple, unfortunately I have 0 time to oss until the end of the month (and likely much of next month).

bozhidar06:03:17

> is this like a maintainence or consolidation plan? Just seeing bits and pieces (orchard)

bozhidar06:03:02

Some consolidation would be a nice outcome, but that’s going to take some time. I’d love to polish a bit nREPL and piggieback for some short-term gains, and afterwards focus on ways to support alternative REPLs. I still believe that nREPL is fundamentally very sound in its design and relatively easy to use, it’s the just that it hasn’t evolved much in recent years. Theoretically if we (the CIDER/clojure-emacs team) have access to both projects we can even merge the cljs support in nREPL itself.

manuel08:03:12

@bozhidar for issue #2226, would it be enough to set cider-clojure-parameters to something like (format "[%s]" (mapconcat 'identity cider-jack-in-nrepl-middlewares " "))? (my elisp-fu is not that great, probably there's a better solution...)

bozhidar08:03:32

Yeah, basically you need to interpolate the user-supplied middleware where you’re forming the execution string.

dominicm08:03:12

Also for the dependencies :)

manuel08:03:36

ok, I can open a PR with that code if you want. But again, if there is a better way to "list-of-strings->vector-of-strings" in elisp, I'm all ears. 🙂

dominicm08:03:04

@manuel might be worth reading what lein and boot do.

dominicm08:03:28

@bozhidar I don't have to add an explicit orchard dependency fwiw, I think that's fixed.

bozhidar08:03:44

OK, guess we should remove it then.

bozhidar08:03:22

@manuel there’s also string-join in Emacs.

manuel08:03:47

@bozhidar interesting, so it could be something like: (format "[%s]" (string-join cider-jack-in-nrepl-middlewares " "))

bozhidar08:03:38

(string-join '("one" "two") ",") => "one,two"

manuel08:03:15

cool. Now I'll check what lein/boot do as @dominicm suggested, because I have to understand what needs to be done beside setting cider-clojure-parameters with the values from cider-jack-in-nrepl-middlewares

Karol Wójcik15:03:07

I experienced strange behaviour with cider repl. Everytime I switch from one window to another the text in cider-buffer is doubled. For instance I am in 'some-namespace in cider and i call (print "hello"), then i switch to another window, then i switch back to cider and the (print "hello") is twice. I'm using spacemacs. Maybe that is the problem?

bozhidar15:03:58

I’ve never had this problem. Which CIDER version are you using?

Karol Wójcik16:03:10

Ok it seems that it's the problem not connected with cider

richiardiandrea16:03:18

Looks like the problem I had in inf-clojure

Karol Wójcik16:03:40

I got that problem even in normal ansi-term

richiardiandrea16:03:02

Yep comint is the culprit

richiardiandrea16:03:35

Might be worth trying

bozhidar16:03:24

But CIDER doesn’t use comint, so I don’t understand how this can be related.

richiardiandrea16:03:13

No @bozhidar I think he said that it is not related

Karol Wójcik16:03:58

Yes I thought that is related but it's not

richiardiandrea16:03:28

Might be something different from comint as well, I don't know what ansi-term is using actually

Karol Wójcik16:03:25

The same is both for the term, cider and all repls. I don;t know what's causing it. I will ask spacemacs community. Thanks for help.

Karol Wójcik16:03:50

The problem was with the zsh

Karol Wójcik16:03:14

After switching to bash in emacs everything runs smooth and very nice. The problem is gone.

hkjels19:03:59

so, I’ve got that same issue nowadays, but I’m using bash

bhauman19:03:06

@bozhidar can you put me on the piggieback team?