This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-08
Channels
- # architecture (8)
- # beginners (78)
- # boot (20)
- # cider (81)
- # clara (53)
- # cljdoc (10)
- # cljsjs (3)
- # clojure (55)
- # clojure-boston (1)
- # clojure-dev (25)
- # clojure-nl (3)
- # clojure-uk (65)
- # clojurescript (65)
- # core-async (1)
- # cursive (41)
- # data-science (4)
- # datomic (16)
- # editors (74)
- # emacs (17)
- # events (1)
- # figwheel (3)
- # hyperfiddle (39)
- # immutant (16)
- # jobs-discuss (62)
- # juxt (2)
- # keechma (2)
- # leiningen (6)
- # mount (7)
- # nrepl (1)
- # off-topic (30)
- # onyx (14)
- # protorepl (2)
- # re-frame (4)
- # reagent (15)
- # reitit (19)
- # shadow-cljs (102)
- # sim-testing (1)
- # spacemacs (44)
- # specter (15)
- # tools-deps (50)
- # vim (2)
@richard238 There’s a dropdown in the REPL toolbar that you can use to switch from clj to cljs. I’m planning to fix the automatic switching for some new REPL types in the next build.
@joelsanchez No, I had an idea that I might make a series of IDEs for different languages (before I truly appreciated how much work it was). I was going to use a typographic name for each one that reflected the characteristics of the language. Cursive handwriting has a lot of similarities to Clojure - it’s quite individual to each person, can be very pretty but can also be totally incomprehensible 🙂
@dnolen @kenny I don’t think that’s right, :extra-paths
should work. The error was in overriding :paths
at the root.
I swear I ran into :extra-paths
not being included on the classpath but after double checking just now, they definitely are.
(more generally, the error was the priority given when merging conflicting map elements)
What's the difference between these 2 forms? Why one is ambiguous while the other one isn't?
Is there any particular reason why I don’t have access to the js-namespace in Cursive? I’m using shadow and connect to a repl via it
I get a CompilerException java.lang.RuntimeException: No such namespace: js, compiling:(null:1:1)
@chris.schreiner Can you evaluate *clojurescript-version*
in your REPL to confirm you are actually in a ClojureScript REPL?
CompilerException java.lang.RuntimeException: Unable to resolve symbol: *clojurescript-version* in this context, compiling:(null:0:0)
Generally you need to start a ClojureScript REPL from the Clojure REPL (or have things set up in Cursive to help do that for you)
I guess my cursive setup is quite sparse, since I connect with the ‘use Leining repl port’
Yeah, by default you will get a Clojure REPL. You need to explicitly do more to get a ClojureScript REPL.
@chris See https://shadow-cljs.github.io/docs/UsersGuide.html#cljs-repl, in particular the bits about shadow/watch
and shadow/repl
yes, I’ll do that, btw, I remember something I did with a (shadow.cljs…. command in the repl
tried “from existing sources” and clicking the deps.edn
file like i might a project.clj