Fork me on GitHub
#cider
<
2021-02-01
>
bozhidar09:02:14

@dpsutton Feel free to add such tips for shadow-cljs to the docs.

bozhidar09:02:25

I lot a lot of people would appreciate them.

3
tvaughan13:02:54

With the recent changes to cider-clojure-cli-parameters and cider-clojure-cli-global-options, how can I pass options like --bind and --port to the clojure cli jack-in command?

bozhidar17:02:32

@tvaughan Good question. 😄 I guess cider-clojure-cli-parameters was the natural place for those.

dpsutton17:02:25

i doubt there's space for that. those need to be at the end as additional params to the main and i don't think they will work at the moment

tvaughan17:02:39

I am/was doing (cider-clojure-cli-parameters . "-A:toolbox:koacha:kibit:user -M -m nrepl.cmdline --bind 0.0.0.0 --port 5309 --middleware '%s'") in .dir-locals.el

bozhidar17:02:40

I guess now that we separated the aliases we can have a separate var for the params to the actual nREPL CLI. I don't know.

bozhidar17:02:58

It's hard for me to give advice given that I don't really use tools.deps.

dpsutton17:02:31

i can fix this tonight. easiest workaround at the moment is to use a prefix when jacking in and add the --bind 0.0.0.0 --port 5309 to the end of the jack in string

tvaughan17:02:14

> i can fix this tonight Please don't go to extra trouble on my account. I'm using straight.el and just happened to run pull-all today. I've since rolled back. I'm good right now. I'd be happy to create an issue on github, if that would be helpful

dpsutton17:02:02

well it needs to be fixed and should have been contemplated in the original change. i was wondering why the middleware was a templated string and now i know 🙂

👍 3
bozhidar17:02:01

This had totally slipped my mind as well. I never change the defaults, so I didn't think about the CLI options at all. I guess we need more tests. 🙂

dpsutton17:02:48

i'll add them tonight. added an issue for this. and the tests should describe all of the pathways through it