Fork me on GitHub
#cider
<
2017-08-03
>
Avichal09:08:52

Hello, I am currently doing an electron app in cljs. in my code there are few (cljs.nodejs/require "") like statements which works fine when I run the electorn app but I cannot make them run on cider. So when I try to use cider-eval-last-sexp the cider throws: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "call" of undefined (rhino.clj#41 is there a way I can run require with cider ?

jfntn18:08:32

@dpsutton fyi I fixed my cider-connect issue with the boot cljs-repl with this

(defun -cider-cljs-repl-fixup ()
  (interactive)
  (setq cider-repl-type "cljs")
  (plist-put (cider--connection-properties (cider-current-connection)) :type "cljs"))

jfntn18:08:57

Actually doesn’t work reliably accross all cljs buffers, any pointers appreciated!

lvh18:08:47

Hey; I’m following https://clojurescript.org/guides/javascript-modules (the new instructions re: NPM support and foreign libs). How do I do that in CIDER so that CIDER knows where to find e..g my vendored javascript?

lvh21:08:31

I have a CLJS file for which, mysteriously, C-c C-x goes to the CLJ repl, not the CLJS repl. (Does it fine for another file,) Extension is .cljs. clojurescript-mode enabled.

lvh22:08:09

mysteriously, restarting fixed it 🙂