This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-16
Channels
- # announcements (5)
- # aws (34)
- # beginners (145)
- # cider (48)
- # circleci (8)
- # clara (7)
- # clj-kondo (28)
- # cljs-dev (75)
- # cljsrn (4)
- # clojure (325)
- # clojure-czech (10)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-sweden (3)
- # clojure-uk (70)
- # clojurescript (18)
- # clr (1)
- # community-development (2)
- # cursive (38)
- # data-science (7)
- # datascript (14)
- # datomic (22)
- # emacs (2)
- # figwheel (1)
- # fulcro (6)
- # graalvm (22)
- # graphql (11)
- # hoplon (12)
- # jackdaw (8)
- # jobs-discuss (16)
- # juxt (5)
- # leiningen (19)
- # luminus (5)
- # nrepl (2)
- # nyc (1)
- # off-topic (6)
- # overtone (2)
- # pedestal (10)
- # re-frame (6)
- # reagent (8)
- # reitit (1)
- # rewrite-clj (43)
- # ring (2)
- # shadow-cljs (124)
- # testing (1)
- # vim (22)
- # xtdb (77)
- # yada (4)
why :repl-options
:message
doesnt work for cursive repl?
https://gyazo.com/c5af7c9f4b5b6c3e1a5a9d9b7fb62755.png
That one is https://github.com/cursive-ide/cursive/issues/1541, it wasn’t possible previously but may be in the recent versions of nREPL.
I don’t see any movement on the old JIRA issue: https://dev.clojure.org/jira/browse/NREPL-55, but there may be a new issue on the new github repo.
I think they do, you might need to (in-ns ‘my.ns)
or use fully qualified symbols, though.
Another option is to add scratch.clj
in your global .gitignore
file and add a file by that name for each project.
Nope, in-ns
didn't work. And adding a single file somewhat defeats the purpose since when I use regular scratch files, I can create as many as I want and they're shared between projects.
Weird. I’m fairly sure that has worked for me. I’ll check when I get in front of my laptop.
Yeah, it definitely works for me — although not for the user
namespace, for some weird reason.
OK, am confused. Could you please send me a small snippet that works for you? Because when I replace user
with something else, even require
and use
stop being recognized.
I have:
(ns
(:require [integrant.core :as ig]
[ :as io]))
(def config
(ig/read-string (slurp (io/resource "config.edn"))))
(ig/load-namespaces config)
And then, in the scratch file (not buffer, just a sanity check):
(in-ns ')
(println config)
And that works fine and everything is resolved.Thanks! Specifying an ns that I've already defined somewhere definitely works better for me. However, half of items in require
and use
are still not resolved for some reason. Maybe it has something to do with what the original ns requires and uses.
Yep, looks like it. So I guess Cursive doesn't parse (require)
and (use)
. @cfleming Is my guess correct?
@p-himik I’m not sure. Scratch files are weird internally, and it’s possible things won’t work with them. I have a mental to-do to look at them, but haven’t got to it yet.
I see. So the intended workflow with "Load file in REPL" is to create a file within the project? Or are there any other options? The phrase "scope for the module used to start the REPL" is a bit confusing.
Right, “Load file in REPL” was thought of as loading one of your standard source files into the REPL.
@cfleming I'm still having the problem with the intellij losing referneces, just happened now, how can I take the logs to send to you?