Fork me on GitHub
#cursive
<
2018-08-08
>
cfleming03:08:45

@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.

👍 4
cfleming03:08:57

@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 🙂

😮 4
cfleming03:08:54

@slipset By an amazing coincidence, that’s how I feel about Emacs 🙂

👏 4
cfleming04:08:37

@dnolen @kenny I don’t think that’s right, :extra-paths should work. The error was in overriding :paths at the root.

kenny16:08:55

I swear I ran into :extra-paths not being included on the classpath but after double checking just now, they definitely are.

cfleming04:08:49

That’s fixed now for the next build, hopefully tonight or tomorrow.

cfleming04:08:58

(more generally, the error was the priority given when merging conflicting map elements)

tap07:08:31

What's the difference between these 2 forms? Why one is ambiguous while the other one isn't?

cfleming09:08:39

@tap Because Cursive doesn’t know that new Thread calls the constructor.

tap09:08:23

Got it. Thanks!

cfleming09:08:41

(it should, but it doesn’t)

schpa16:08:41

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

schpa16:08:10

I can compile anything other than js/-stuff

schpa16:08:30

it showsin the browser, reloading is nice, but if I try js/alert, nada

schpa16:08:49

I get a CompilerException java.lang.RuntimeException: No such namespace: js, compiling:(null:1:1)

schpa16:08:23

vscode with calva works fine, but I like intellij

schpa16:08:29

perhaps this is related to shadow, not sure

schpa16:08:14

Is there some config-dump I can provide to help out?

schpa16:08:32

From what I can understand, the repl is still in clj mode

mfikes16:08:42

@chris.schreiner Can you evaluate *clojurescript-version* in your REPL to confirm you are actually in a ClojureScript REPL?

schpa16:08:37

No I cannot, its not in cljs, even if the combobox says so

schpa16:08:56

CompilerException java.lang.RuntimeException: Unable to resolve symbol: *clojurescript-version* in this context, compiling:(null:0:0)

mfikes16:08:09

Can you evaluate *clojure-version*?

schpa16:08:28

yes, => {:major 1, :minor 9, :incremental 0, :qualifier nil}

mfikes16:08:55

Yeah, that means you are in a Clojure REPL.

schpa16:08:01

ok, confirmed

mfikes16:08:40

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)

schpa16:08:42

I guess my cursive setup is quite sparse, since I connect with the ‘use Leining repl port’

schpa16:08:02

I start shadow with server, and watch et al

mfikes16:08:16

Yeah, by default you will get a Clojure REPL. You need to explicitly do more to get a ClojureScript REPL.

schpa16:08:31

ok, thats a start, thanks for the input

mfikes16:08:24

@chris See https://shadow-cljs.github.io/docs/UsersGuide.html#cljs-repl, in particular the bits about shadow/watch and shadow/repl

schpa16:08:33

yes, I’ll do that, btw, I remember something I did with a (shadow.cljs…. command in the repl

schpa17:08:41

beautiful, that was it, thanks @mfikes

spieden22:08:59

anyone know how to create a new project that uses deps.edn?

spieden22:08:25

tried “from existing sources” and clicking the deps.edn file like i might a project.clj

mfikes23:08:32

@spieden Be sure you are running the EAP version of Cursive

mfikes23:08:43

Normally, instead of “from existing sources,” you would pick “from external model” and chose Deps.

cfleming23:08:22

@spieden That should work, but @mfikes is right, you need the EAP for that to work.