Fork me on GitHub
#cider
<
2019-11-23
>
simonkatz09:11:03

^^ I mean a form from a .cljc file.

bozhidar12:11:54

@nomiskatz I think we’ve implemented this only for load-file. I’ll have to check. I have some vague memory that we wanted to make it possible to eval either in the last REPL or in both REPLs for both commands, but we never finished this.

bozhidar12:11:27

Might be a good idea to check the tickets for this, and potentially file one.

simonkatz12:11:53

@bozhidar Thanks. I’ve made a note to look into this — will probably be in a few days.

bozhidar12:11:04

I see we have this in the manual https://docs.cider.mx/cider/basics/clojurescript.html#_working_with_cljc_files but it’s a bit vague even for me. 🙂

macrobartfast20:11:27

I am running a project with figwheel, and want to be able to see code changes reload in the browser as well as evaluate things in my emacs buffer; I ran cider-jack-in-clj&cljs which launched the browser and shows changes in the browser (cool!), and I can evaluate (+ 1 1) in the buffer, but evaluating (ns whip.core (:require [reagent.core :as reagent :refer [atom]])) throws Unhandled java.lang.IllegalAccessError atom does not exist thoughts?

macrobartfast20:11:49

at this point, all I want to do is to be able to see changes in the browser and play/troubleshoot code snippets in a (comment ) form in a buffer (not the REPL... baffled by the seemingly popular awkwardness of that) but the amazingly growing set of options/documentation around figwheel, figwheel-main, shadow-cljs, and so on has me totally confused at this point.

macrobartfast20:11:40

I can eval forms, but the import statement seems to fail in the cljs buffer.

dpsutton20:11:56

That is a jvm error and you’re trying to load cljs dependencies into it

dpsutton21:11:32

Can you try that in the cljs repl?