This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-13
Channels
- # announcements (3)
- # babashka (130)
- # beginners (73)
- # calva (22)
- # cider (46)
- # cljdoc (18)
- # cljs-dev (196)
- # cljsrn (18)
- # clojure (255)
- # clojure-europe (2)
- # clojure-finland (8)
- # clojure-gamedev (1)
- # clojure-germany (2)
- # clojure-losangeles (6)
- # clojure-nl (1)
- # clojure-spec (16)
- # clojure-uk (33)
- # clojurescript (32)
- # community-development (1)
- # conjure (40)
- # core-logic (11)
- # cursive (4)
- # datascript (8)
- # devcards (17)
- # emacs (21)
- # exercism (2)
- # fulcro (29)
- # funcool (15)
- # graalvm (18)
- # jobs (17)
- # jobs-rus (1)
- # lambdaisland (1)
- # lumo (1)
- # malli (19)
- # off-topic (15)
- # pathom (22)
- # quil (7)
- # re-frame (3)
- # reagent (3)
- # shadow-cljs (14)
- # spacemacs (41)
- # specter (2)
- # sql (5)
- # tree-sitter (1)
- # unrepl (16)
- # vscode (3)
- # xtdb (11)
- # yada (1)
I have the following build.boot file,
(set-env!
:resource-paths #{"src"}
:dependencies '[[me.raynes/conch "0.8.0"]
[boot.core :as boot]])
(task-options!
pom {:project 'myapp
:version "0.1.0"}
jar {:manifest {"Foo" "bar"}})
following this documentation: https://github.com/boot-clj/boot/wiki/Cider-REPL
However, upon doing cider-jack-in I get the error "refusing to run as root. set BOOT_AS_ROOT=yes to force.", and yet after doing export BOOT_AS_ROOT=yes, I get the same error. What's wrong?@prikshet21 Not sure about the boot error, but I can tell you really have to update nREPL and the CIDER related deps in build.boot
.
Yes, boot is 2.8.3. Well can you help with setting the environment variable that cider detects?
@prikshet21 CIDER simply shells out to boot
- it doesn’t do anything to modify the process’s environment.
If you want to set some env variables from Emacs take a look here https://www.gnu.org/software/emacs/manual/html_node/elisp/System-Environment.html
CIDER now seems to want to resolve
s and print the body when evaluating them at the REPL. Can this behavior be disabled?
That fixed it. I'd lobby for this to be off by default ... it's really disruptive when testing any kind of URL-generating code
i think its such a cool feature but comes with some security holes when not expecting it
@bozhidar I was able to M-x setenv and I stopped getting that error. But now I get this error: java.lang.IllegalArgumentException: No value supplied for key: boot clojure.lang.ExceptionInfo: No value supplied for key: boot line: 5
Could the error be because I changed the cider-boot-parameters according to that very old documentation?
and changed whatever the default value was to cider repl -s wait. I don't know what the default value was. Do you know what the default value of this variable is?
No I don't. I don't need that deftask cider to run the cider repl. It can be deleted and the repl should still run.
Is there a way I can change the init-ns in the boot repl like one does in lein with :repl-options {:init-ns foobar}?
Like for example, I have this user.clj file that has a nice function (def go reloaded.repl/go) that starts the server
i believe the others work because lein allows you to specify this. CIDER just invokes the build tooling for you. so if boot allows this then it should work
user.clj is in dev/ . Does that mean that it should be in the :resource-paths #{"src" "dev"} in the boot config?