Fork me on GitHub
#cider
<
2019-05-06
>
rickmoynihan09:05:22

any ideas why including the cider.nrepl/wrap-debug middleware would break focusing on swing windows is macos?

rickmoynihan09:05:37

Steps to reproduce compare:

$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.21.1"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/wrap-debug]" -i
nREPL server started on port 58662 on host localhost - 
nREPL 0.6.0
Clojure 1.10.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_191-b12
Interrupt: Control+C
Exit:      Control+D or (exit) or (quit)
user=> (require 'clojure.inspector)
nil
user=> (clojure.inspector/inspect {:a :b})
#object[javax.swing.JFrame 0x17a01b0c "javax.swing.JFrame[frame0,0,23,400x400,invalid,layout=java.awt.BorderLayout,title=Clojure Inspector,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,400x378,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777675,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]"]
To:
$ clj
Clojure 1.10.0
user=> (require 'clojure.inspector)
user=> (clojure.inspector/inspect {:a :b})

#object[javax.swing.JFrame 0x17a01b0c "javax.swing.JFrame[frame0,0,23,400x400,invalid,layout=java.awt.BorderLayout,title=Clojure Inspector,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,400x378,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777675,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]"]

rickmoynihan09:05:42

with respect to the window focus / java menu bar behaviour

rickmoynihan09:05:14

The above is a minimal example — the real problem I get is running nrebl and REBL with cider wrap-debug as a middleware

bozhidar10:05:13

@rickmoynihan That’s pretty weird. That’s nothing GUI-related in all of cider-nrepl.

rickmoynihan10:05:47

yeah I tried searching for gui stuff in the project and couldn’t see any either

rickmoynihan10:05:00

could there be some transitive dependency?

rickmoynihan10:05:47

also I think cider.nrepl/wrap-enlighten and cider.nrepl/wrap-tracker might be effected too

rickmoynihan10:05:52

@bozhidar: ok an even more minimal case is

rickmoynihan10:05:54

clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.21.1"}}}'
Clojure 1.10.0
user=> (require 'cider.nrepl.middleware.debug) ;; causes window problem
user=> (require 'clojure.inspector)
nil
user=> (clojure.inspector/inspect {:a :b})

rickmoynihan10:05:42

so there’s some side effect occurring when loading that ns

bozhidar10:05:51

And this doesn’t happen if you try some other middleware?

bozhidar10:05:07

Please, file a ticket about this on cider-nrepl issue tracker.

rickmoynihan10:05:56

yeah I’ll definitely file a ticket

rickmoynihan10:05:29

am just trying to narrow down which ns is doing it

rickmoynihan10:05:15

I think something is transitively requiring clojure.inspector from that wrap-debug

rickmoynihan10:05:35

as it looks like it’s already loaded when you require the debug ns

rickmoynihan10:05:06

ok looks like it’s orchard.java

rickmoynihan10:05:03

that somehow appears to load clojure.inspector — not sure if that causes the issue

rickmoynihan10:05:25

looks like that ns does some funky side-effects to the classpath etc

jakob10:05:47

Hi I get this error when evaluating something in the Cider repl:

ERROR: Unhandled REPL handler exception processing message {:ns order.core, :file *cider-repl telia/order:localhost:42383(clj)*, :nrepl.middleware.print/quota 1048576, :nrepl.middleware.print/print cider.nrepl.pprint/pr, :op eval, :column 13, :line 43, :id 11, :code (println "hello"), :nrepl.middleware.print/stream? [], :session 9cbf4680-5cd0-45bd-86ba-1c5af7119f20}
Any ideas how to proceed debugging this?

bozhidar12:05:39

@karl.jakob.lind What’s your CIDER version?

bozhidar12:05:43

The exception stacktrace would be useful as well.

jakob12:05:54

version 20190419.1025

slipset13:05:23

Hei @karl.jakob.lind It looks like your java installation is a bit wierd?

jakob09:05:01

In what way is it wierd and do you know how I can fix it? 🙂

jakob12:05:10

I just reinstalled Java and now it works 😄 thanks for your input it helped!

bozhidar15:05:07

@karl.jakob.lind Your issue seems similar to https://github.com/clojure-emacs/orchard/issues/50 I’d suggest posting a comment with your exception there.

macrobartfast21:05:37

when trying to cider-jack-in-clojurescript I'm getting

error in process filter: Sync nREPL request timed out (op clone id 1)
thoughts?

macrobartfast21:05:08

I searched on this error and have found a number of references stretching back years and am trying various solutions to no avail.

tanners21:05:12

Can you run the repl outside of emacs?

macrobartfast21:05:41

lein repl works

tanners21:05:20

What version of cider/cider-nrepl are you running?

macrobartfast21:05:21

0.21.0 for cider...

macrobartfast21:05:27

how do I determine my nrepl version?

tanners21:05:05

by default it injects the version when you run cider-jack-in-clojurescript, it should say the version when you run that command

tanners21:05:12

if you run it then check the output in the messages buffer

tanners21:05:38

[nREPL] Starting server via /usr/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.2-SNAPSHOT\"\] -- repl :headless :host localhost...
Mine looks something like this for instance

macrobartfast21:05:57

[nREPL] Starting server via /Users/spaceman/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl :h\
eadless :host localhost...

tanners21:05:09

Hm, versions look like they line up. Are you able to use jack-in with a fresh clojurescript project or do you get the same error everywhere?

dpsutton21:05:00

what happens when you run lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl?

macrobartfast21:05:20

cider-jack-in worked on a app generated by lein new app foobar

macrobartfast21:05:18

@dpsutton when running your command I get a prompt in the cli.

dpsutton21:05:38

very strange. that's exactly what you ran

macrobartfast21:05:30

sooo... I'm using the flyingmachinestudios .emacs/init.el which I'll paste, hang on.

macrobartfast21:05:20

well, here it is:

macrobartfast21:05:55

I blew away my .emacs.d in the course of troubleshooting this, as well as reinstalled leiningen.

macrobartfast21:05:07

so, yeah, pretty stumped.

tanners21:05:22

Can you also post your project.clj?

macrobartfast21:05:31

yes, stand by.

tanners21:05:42

Since it works for a basic project its likely something setup there

Ian Fernandez21:05:15

hey guys, there's some way to check type hinting on java types using emacs ?

Ian Fernandez21:05:31

and there is some way to enter in the interop java code using emacs?

tanners21:05:58

Not that I know of, but I could be wrong

tanners21:05:23

I've heard Intellij with cursive has good support for jumping to actual java classes

tanners21:05:03

Was about to mention that lol

tanners21:05:19

Interesting that a tool for pasting code would have that issue :thinking_face:

macrobartfast21:05:11

@dpsutton ok, pasting in your cli version

lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl
into the root of
generates
scratch/understanding-re-frame 002 $ lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl
Compiling ClojureScript...
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean?
2019-05-06 17:54:10.465:INFO::main: Logging initialized @2686ms
[WARNING] No nREPL middleware descriptor in metadata of #'cemerick.piggieback/wrap-cljs-repl, see nrepl.middleware/set-descriptor!
nREPL server started on port 50571 on host 127.0.0.1 - 
ERROR: Unhandled REPL handler exception processing message {:id dadaa1c9-dea8-4244-b3e7-c62d26e43018, :op clone}
java.lang.NullPointerException
        at clojure.core$deref_future.invokeStatic(core.clj:2300)
        at clojure.core$deref.invokeStatic(core.clj:2320)
        at clojure.core$deref.invoke(core.clj:2306)
        at cemerick.piggieback$wrap_cljs_repl$fn__2251.invoke(piggieback.clj:289)
        at clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__1847.invoke(middleware.clj:22)
        at nrepl.server$handle_STAR_.invokeStatic(server.clj:18)
        at nrepl.server$handle_STAR_.invoke(server.clj:15)
        at nrepl.server$handle$fn__1115.invoke(server.clj:27)
        at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
        at clojure.lang.AFn.call(AFn.java:18)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
which is the error I get in emacs.

dpsutton21:05:55

ok. i see a cemerick.piggieback in there. that needs to change to cider/piggieback

dpsutton21:05:15

chas created it but is no longer active in the community and cider took it over

dpsutton21:05:19

so that's an outdated version

macrobartfast21:05:18

ok, changed that... gettting

scratch/understanding-re-frame 002 $ lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl
Compiling ClojureScript...
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean?
2019-05-06 17:58:46.081:INFO::main: Logging initialized @3138ms
Error loading cemerick: Could not locate cemerick__init.class, cemerick.clj or cemerick.cljc on classpath.
Exception in thread "main" Syntax error compiling var at (/private/var/folders/kd/kchlcnk11qxdnhbxb6s1mxr80000gn/T/form-init851643206016320226.clj:1:9279).
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7114)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.access$300(Compiler.java:38)
        at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6384)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6120)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5467)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4029)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7104)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.eval(Compiler.java:7173)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.load(Compiler.java:7635)
        at clojure.lang.Compiler.loadFile(Compiler.java:7573)
        at clojure.main$load_script.invokeStatic(main.clj:452)
        at clojure.main$init_opt.invokeStatic(main.clj:454)
        at clojure.main$init_opt.invoke(main.clj:454)
        at clojure.main$initialize.invokeStatic(main.clj:485)
        at clojure.main$null_opt.invokeStatic(main.clj:519)
        at clojure.main$null_opt.invoke(main.clj:516)
        at clojure.main$main.invokeStatic(main.clj:598)
        at clojure.main$main.doInvoke(main.clj:561)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve var: cemerick/piggieback/wrap-cljs-repl in this context
        at clojure.lang.Util.runtimeException(Util.java:221)
        at clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:720)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        ... 36 more

REPL server launch timed out.

macrobartfast21:05:36

am I supposed to paste errors like that in here? I don't know the protocol here.

macrobartfast22:05:47

by the way, happy to completely reinstall emacs/cider/leiningen etc... I'm trying to get my setup current, anyway.

macrobartfast22:05:09

I've always been pretty confused about the 'ideal' setup if there is anything like that.

macrobartfast22:05:28

I like to develop interactively from within vanilla terminal emacs.

dpsutton22:05:35

for some reason its looking for cemerick.clj

dpsutton22:05:05

can you look for cemerick/piggieback or any combination and make sure the coordinates are for cider/piggieback?

macrobartfast22:05:44

ok... uh... where do I do that?

😳 4
dpsutton22:05:01

in your project.clj file

dpsutton22:05:12

no worries 🙂

macrobartfast22:05:04

[com.cemerick/piggieback "0.2.2"]

macrobartfast22:05:23

and

:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}

dpsutton22:05:11

that should get you going.

macrobartfast22:05:31

I'm going to reclone the project and run it.

macrobartfast22:05:29

after replacing my .emacs files and leiningen I thought I'd get this solved.

macrobartfast22:05:05

I guess I should try without the flyingmachinestudios .emacs stuff next.

macrobartfast22:05:22

it may have something to do with that.

dpsutton22:05:36

you've updated the references to cider/piggieback yes?

dpsutton22:05:46

what error are you getting now. it cannot be the same as before

macrobartfast22:05:39

oh, good lord... doh.

macrobartfast22:05:48

I forgot to fix that when I recloned it.

macrobartfast22:05:13

cratch/understanding-re-frame-2 master $ lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl
Compiling ClojureScript...
Compiling "resources/public/js/compiled/app.js" from ["src/cljs"]...
WARNING: uri? already refers to: cljs.core/uri? being replaced by: cognitect.transit/uri? at line 332 /Users/patrick/Documents/projects/scratch/understanding-re-frame-2/target/cljsbuild-compiler-1/cognitect/transit.cljs
Successfully compiled "resources/public/js/compiled/app.js" in 19.295 seconds.
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean?
2019-05-06 18:15:56.324:INFO::main: Logging initialized @2579ms
Error loading cemerick: Could not locate cemerick__init.class, cemerick.clj or cemerick.cljc on classpath.
Exception in thread "main" Syntax error compiling var at (/private/var/folders/kd/kchlcnk11qxdnhbxb6s1mxr80000gn/T/form-init5173703016794437444.clj:1:9280).
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7114)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.access$300(Compiler.java:38)
        at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6384)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6120)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5467)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4029)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7104)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.eval(Compiler.java:7173)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.load(Compiler.java:7635)
        at clojure.lang.Compiler.loadFile(Compiler.java:7573)
        at clojure.main$load_script.invokeStatic(main.clj:452)
        at clojure.main$init_opt.invokeStatic(main.clj:454)
        at clojure.main$init_opt.invoke(main.clj:454)
        at clojure.main$initialize.invokeStatic(main.clj:485)
        at clojure.main$null_opt.invokeStatic(main.clj:519)
        at clojure.main$null_opt.invoke(main.clj:516)
        at clojure.main$main.invokeStatic(main.clj:598)
        at clojure.main$main.doInvoke(main.clj:561)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve var: cemerick/piggieback/wrap-cljs-repl in this context
        at clojure.lang.Util.runtimeException(Util.java:221)
        at clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:720)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        ... 36 more

macrobartfast22:05:47

(defproject understanding-re-frame "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.10.0"]
                 [org.clojure/clojurescript "1.10.439"]
                 [reagent "0.7.0"]
                 [re-frame "0.10.2"]
                 [secretary "1.2.3"]
                 [compojure "1.5.0"]
                 [yogthos/config "0.8"]
                 [ring "1.4.0"]
                 [day8.re-frame/http-fx "0.1.4"]
                 [cljsjs/react-input-autosize "2.0.0-1"]]

  :plugins [[lein-cljsbuild "1.1.5"]]

  :min-lein-version "2.5.3"

  :source-paths ["src/clj"]

  :clean-targets ^{:protect false} ["resources/public/js/compiled" "target"
                                    "test/js"]

  :figwheel {:css-dirs ["resources/public/css"]
             :ring-handler understanding-re-frame.handler/dev-handler}

  :repl-options {:nrepl-middleware [cemerick/piggieback/wrap-cljs-repl]}

  :profiles
  {:dev
   {:dependencies [[binaryage/devtools "0.9.4"]
                   [cljsjs/d3 "4.3.0-5"]
                   [day8.re-frame/trace "0.1.7"]
                   
                   [figwheel-sidecar "0.5.18"]
                   [com.cemerick/piggieback "0.2.2"]
                   [re-frisk "0.5.0"]]

    :plugins      [[lein-figwheel "0.5.18"]
                   [lein-doo "0.1.8"]]}}

  :cljsbuild
  {:builds
   [{:id           "dev"
     :source-paths ["src/cljs"]
     :figwheel     {:on-jsload "understanding-re-frame.core/mount-root"}
     :compiler     {:main                 understanding-re-frame.core
                    :output-to            "resources/public/js/compiled/app.js"
                    :output-dir           "resources/public/js/compiled/out"
                    :asset-path           "js/compiled/out"
                    :source-map-timestamp true
                    :preloads             [devtools.preload
                                           day8.re-frame.trace.preload
                                           re-frisk.preload
                                           ]
                    :closure-defines      {"re_frame.trace.trace_enabled_QMARK_" true}
                    :external-config      {:devtools/config {:features-to-install :all}}
                    }}

    {:id           "min"
     :source-paths ["src/cljs"]
     :jar true
     :compiler     {:main            understanding-re-frame.core
                    :output-to       "resources/public/js/compiled/app.js"
                    :optimizations   :advanced
                    :closure-defines {goog.DEBUG false}
                    :pretty-print    false}}

    {:id           "test"
     :source-paths ["src/cljs" "test/cljs"]
     :compiler     {:main          understanding-re-frame.runner
                    :output-to     "resources/public/js/compiled/test.js"
                    :output-dir    "resources/public/js/compiled/test/out"
                    :optimizations :none}}
    ]}

  :main understanding-re-frame.server

  :aot [understanding-re-frame.server]

  :uberjar-name "understanding-re-frame.jar"

  :prep-tasks [["cljsbuild" "once" "min"] "compile"]
  )

dpsutton22:05:24

cemerick/piggieback/wrap-cljs-repl

dpsutton22:05:39

Caused by: java.lang.RuntimeException: Unable to resolve var: cemerick/piggieback/wrap-cljs-repl in this context

dpsutton22:05:52

cider.piggieback/wrap-cljs-repl

dpsutton22:05:14

cemerick/piggieback/wrap-cljs-repl -> cider.piggieback/wrap-cljs-repl

macrobartfast22:05:27

ok, after that, lol...

macrobartfast22:05:31

scratch/understanding-re-frame-2 master $ lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :dependencies conj \[cider/piggieback\ \"0.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.21.1\"\] -- repl
Compiling ClojureScript...
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean?
2019-05-06 18:19:20.723:INFO::main: Logging initialized @2589ms
Error loading cider: Could not locate cider__init.class, cider.clj or cider.cljc on classpath.
Exception in thread "main" Syntax error compiling var at (/private/var/folders/kd/kchlcnk11qxdnhbxb6s1mxr80000gn/T/form-init8491191050944837256.clj:1:9274).
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7114)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3888)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7108)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.access$300(Compiler.java:38)
        at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6384)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.analyze(Compiler.java:6745)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:6120)
        at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5467)
        at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4029)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7104)
        at clojure.lang.Compiler.analyze(Compiler.java:6789)
        at clojure.lang.Compiler.eval(Compiler.java:7173)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.eval(Compiler.java:7166)
        at clojure.lang.Compiler.load(Compiler.java:7635)
        at clojure.lang.Compiler.loadFile(Compiler.java:7573)
        at clojure.main$load_script.invokeStatic(main.clj:452)
        at clojure.main$init_opt.invokeStatic(main.clj:454)
        at clojure.main$init_opt.invoke(main.clj:454)
        at clojure.main$initialize.invokeStatic(main.clj:485)
        at clojure.main$null_opt.invokeStatic(main.clj:519)
        at clojure.main$null_opt.invoke(main.clj:516)
        at clojure.main$main.invokeStatic(main.clj:598)
        at clojure.main$main.doInvoke(main.clj:561)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve var: cider/piggieback/wrap-cljs-repl in this context
        at clojure.lang.Util.runtimeException(Util.java:221)
        at clojure.lang.Compiler$TheVarExpr$Parser.parse(Compiler.java:720)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:7106)
        ... 36 more

macrobartfast22:05:18

project.clj is now:

(defproject understanding-re-frame "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.10.0"]
                 [org.clojure/clojurescript "1.10.439"]
                 [reagent "0.7.0"]
                 [re-frame "0.10.2"]
                 [secretary "1.2.3"]
                 [compojure "1.5.0"]
                 [yogthos/config "0.8"]
                 [ring "1.4.0"]
                 [day8.re-frame/http-fx "0.1.4"]
                 [cljsjs/react-input-autosize "2.0.0-1"]]

  :plugins [[lein-cljsbuild "1.1.5"]]

  :min-lein-version "2.5.3"

  :source-paths ["src/clj"]

  :clean-targets ^{:protect false} ["resources/public/js/compiled" "target"
                                    "test/js"]

  :figwheel {:css-dirs ["resources/public/css"]
             :ring-handler understanding-re-frame.handler/dev-handler}

  :repl-options {:nrepl-middleware [cider/piggieback/wrap-cljs-repl]}

  :profiles
  {:dev
   {:dependencies [[binaryage/devtools "0.9.4"]
                   [cljsjs/d3 "4.3.0-5"]
                   [day8.re-frame/trace "0.1.7"]
                   
                   [figwheel-sidecar "0.5.18"]
                   [com.cemerick/piggieback "0.2.2"]
                   [re-frisk "0.5.0"]]

    :plugins      [[lein-figwheel "0.5.18"]
                   [lein-doo "0.1.8"]]}}

  :cljsbuild
  {:builds
   [{:id           "dev"
     :source-paths ["src/cljs"]
     :figwheel     {:on-jsload "understanding-re-frame.core/mount-root"}
     :compiler     {:main                 understanding-re-frame.core
                    :output-to            "resources/public/js/compiled/app.js"
                    :output-dir           "resources/public/js/compiled/out"
                    :asset-path           "js/compiled/out"
                    :source-map-timestamp true
                    :preloads             [devtools.preload
                                           day8.re-frame.trace.preload
                                           re-frisk.preload
                                           ]
                    :closure-defines      {"re_frame.trace.trace_enabled_QMARK_" true}
                    :external-config      {:devtools/config {:features-to-install :all}}
                    }}

    {:id           "min"
     :source-paths ["src/cljs"]
     :jar true
     :compiler     {:main            understanding-re-frame.core
                    :output-to       "resources/public/js/compiled/app.js"
                    :optimizations   :advanced
                    :closure-defines {goog.DEBUG false}
                    :pretty-print    false}}

    {:id           "test"
     :source-paths ["src/cljs" "test/cljs"]
     :compiler     {:main          understanding-re-frame.runner
                    :output-to     "resources/public/js/compiled/test.js"
                    :output-dir    "resources/public/js/compiled/test/out"
                    :optimizations :none}}
    ]}

  :main understanding-re-frame.server

  :aot [understanding-re-frame.server]

  :uberjar-name "understanding-re-frame.jar"

  :prep-tasks [["cljsbuild" "once" "min"] "compile"]
  )

dpsutton22:05:30

cider.piggieback/wrap-cljs-repl not cider-slash-piggieback but cider-dot-piggieback

macrobartfast22:05:41

omg, ok, sorry.

dpsutton22:05:48

and you still have com.cemerick/piggieback "0.2.2" in there

dpsutton22:05:56

remove that. you want cider/piggieback "0.4.0"

macrobartfast22:05:14

ok... new project.clj is (defproject understanding-re-frame "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.10.439"] [reagent "0.7.0"] [re-frame "0.10.2"] [secretary "1.2.3"] [compojure "1.5.0"] [yogthos/config "0.8"] [ring "1.4.0"] [day8.re-frame/http-fx "0.1.4"] [cljsjs/react-input-autosize "2.0.0-1"]] :plugins [[lein-cljsbuild "1.1.5"]] :min-lein-version "2.5.3" :source-paths ["src/clj"] :clean-targets ^{:protect false} ["resources/public/js/compiled" "target" "test/js"] :figwheel {:css-dirs ["resources/public/css"] :ring-handler understanding-re-frame.handler/dev-handler} :repl-options {:nrepl-middleware [cider/piggieback/wrap-cljs-repl]} :profiles {:dev {:dependencies [[binaryage/devtools "0.9.4"] [cljsjs/d3 "4.3.0-5"] [day8.re-frame/trace "0.1.7"] [figwheel-sidecar "0.5.18"] [cider/piggieback "0.4.0"] [re-frisk "0.5.0"]] :plugins [[lein-figwheel "0.5.18"] [lein-doo "0.1.8"]]}} :cljsbuild {:builds [{:id "dev" :source-paths ["src/cljs"] :figwheel {:on-jsload "understanding-re-frame.core/mount-root"} :compiler {:main understanding-re-frame.core :output-to "resources/public/js/compiled/app.js" :output-dir "resources/public/js/compiled/out" :asset-path "js/compiled/out" :source-map-timestamp true :preloads [devtools.preload day8.re-frame.trace.preload re-frisk.preload ] :closure-defines {"re_frame.trace.trace_enabled_QMARK_" true} :external-config {:devtools/config {:features-to-install :all}} }} {:id "min" :source-paths ["src/cljs"] :jar true :compiler {:main understanding-re-frame.core :output-to "resources/public/js/compiled/app.js" :optimizations :advanced :closure-defines {goog.DEBUG false} :pretty-print false}} {:id "test" :source-paths ["src/cljs" "test/cljs"] :compiler {:main understanding-re-frame.runner :output-to "resources/public/js/compiled/test.js" :output-dir "resources/public/js/compiled/test/out" :optimizations :none}} ]} :main understanding-re-frame.server :aot [understanding-re-frame.server] :uberjar-name "understanding-re-frame.jar" :prep-tasks [["cljsbuild" "once" "min"] "compile"] ) `

dpsutton22:05:02

please please. [cider/piggieback/wrap-cljs-repl]} must be cider dot piggieback

dpsutton22:05:29

cider.piggieback/wrap-cljs-repl its http://name.space/function

macrobartfast22:05:57

YAAAAAAAAAAAAAAAAAAAAAAAAAYYYYY!!!

macrobartfast22:05:45

it finally works.

macrobartfast22:05:04

from the cli with your command; now trying in emacs.

macrobartfast22:05:29

aha, this is something I've been wanting to understand... now getting:

Select ClojureScript REPL type: {nashorn | figwheel | figwheel-main | node | weasel | boot | shadow | shadow-select | custom}
which should I use?

macrobartfast22:05:42

the figwheel option works.

macrobartfast22:05:15

unbelievable (my denseness)... thank you so much for your patience here, and that of all the eyes that may scan this.

macrobartfast22:05:26

I'm back in business.

dpsutton22:05:38

happy hacking!