This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-14
Channels
- # announcements (10)
- # babashka (14)
- # beginners (51)
- # calva (2)
- # cider (28)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (185)
- # clojure-dev (15)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (45)
- # clojurescript (4)
- # conjure (12)
- # datomic (37)
- # duct (37)
- # figwheel-main (15)
- # helix (23)
- # interceptors (1)
- # jobs (1)
- # jobs-discuss (11)
- # jvm (5)
- # luminus (3)
- # malli (15)
- # off-topic (69)
- # pathom (8)
- # pedestal (2)
- # re-frame (7)
- # reagent (58)
- # reitit (33)
- # remote-jobs (1)
- # rum (14)
- # sci (7)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (19)
- # timbre (3)
- # tools-deps (14)
Hello ciderians,
I'm trying to start a headless repl with docker run
and cider-connect
to it. Getting the following error message:
[nREPL] Establishing direct connection to localhost:9999 ...
[nREPL] Direct connection to localhost:9999 established
[nREPL] Connection closed unexpectedly (connection broken by remote peer)
nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1)
This is how I ran it:
docker run \
-p 9999:9999 \
-e "TOKEN=$TOKEN" \
--rm \
-v "$PWD":/usr/src/app \
-w /usr/src/app clojure:openjdk-14-lein-2.9.3 \
lein \
update-in :dependencies conj \[nrepl\ \"0.8.0-alpha5\"\] -- \
update-in :plugins conj \[refactor-nrepl\ \"2.5.0\"\] -- \
update-in :plugins conj \[cider/cider-nrepl\ \"0.25.3-SNAPSHOT\"\] -- \
repl :headless :host localhost :port 9999
Is there another port I need to bind?mine .dir-locals.el is
((clojure-mode (cider-jack-in-default . "clojure-cli") (cider-clojure-cli-global-options . "-A:test") (clojure-align-forms-automatically . nil)))
jack-in-default is not giving me directly clojure-cli
it opens the menu asking if its lein or clojure-cli
cider-jack-in-default is a variable defined in ‘cider.el’.
Its value is ‘clojure-cli’
This variable has an alias: ‘cider-default-repl-command’.
This variable is safe as a file local variable if its value
satisfies the predicate ‘symbolp’.
You can customize this variable.
This variable was introduced, or its default value was changed, in
version 0.9.0 of the cider package.
Documentation:
The default tool to use when doing ‘cider-jack-in’ outside a project.
This value will only be consulted when no identifying file types, i.e.
project.clj for leiningen or build.boot for boot, could be found.
As the Clojure CLI is bundled with Clojure itself, it’s the default.
In the absence of the Clojure CLI (e.g. on Windows), we fallback
to Leiningen.
but I want this on this project
That says “the value will only be consulted when no identifying file types “ are found
anyone here knows about a variable I can change to have a default jack-in command?
thanks!
it worked ! @bozhidar =))
How do I change cljs compiler option when jack-in with cider? I use clojure cli against nodejs. My guess is to start from the form (cider.piggieback/cljs-repl (cljs.repl.node/repl-env))
ah, it's the parameters to cljs-repl
after the first. I tried a hash-map instead of flattened keys, therefore I got errors
When i execute C-u C-c M-j
i am able to write and run some alias from my deps.edn. but cider dont execute this alias if i dont remove all the line:
/usr/local/bin/clojure -Sdeps ... -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"]'
when i call from command line clj -A:dev it run perfect and show a result after being compiled.
OK seems the alias run as expected because i see the files from my dev/
directory. But the difference from calling from command line, it dont compile the files from this directory. i have to do it manually.