This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-06
Channels
- # announcements (3)
- # aws (23)
- # beginners (61)
- # calva (57)
- # cider (121)
- # clara (1)
- # clj-kondo (9)
- # cljs-dev (62)
- # cljsrn (3)
- # clojure (79)
- # clojure-europe (2)
- # clojure-nl (19)
- # clojure-spec (9)
- # clojure-uk (14)
- # clojurescript (92)
- # clojureverse-ops (2)
- # cursive (3)
- # data-science (2)
- # duct (1)
- # figwheel (2)
- # graphql (6)
- # jobs (1)
- # kaocha (5)
- # leiningen (11)
- # off-topic (25)
- # overtone (1)
- # pedestal (4)
- # portkey (1)
- # re-frame (1)
- # remote-jobs (2)
- # shadow-cljs (179)
- # slack-help (3)
- # specter (7)
- # testing (14)
- # tools-deps (14)
- # unrepl (12)
- # vim (2)
- # yada (3)
any ideas why including the cider.nrepl/wrap-debug
middleware would break focusing on swing windows is macos?
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]"]
with respect to the window focus / java menu bar behaviour
The above is a minimal example — the real problem I get is running nrebl and REBL with cider wrap-debug as a middleware
@rickmoynihan That’s pretty weird. That’s nothing GUI-related in all of cider-nrepl.
yeah I tried searching for gui stuff in the project and couldn’t see any either
could there be some transitive dependency?
also I think cider.nrepl/wrap-enlighten
and cider.nrepl/wrap-tracker
might be effected too
@bozhidar: ok an even more minimal case is
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})
so there’s some side effect occurring when loading that ns
yeah I’ll definitely file a ticket
am just trying to narrow down which ns is doing it
I think something is transitively requiring clojure.inspector
from that wrap-debug
as it looks like it’s already loaded when you require the debug ns
ok looks like it’s orchard.java
that somehow appears to load clojure.inspector
— not sure if that causes the issue
looks like that ns does some funky side-effects to the classpath etc
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?@karl.jakob.lind What’s your CIDER version?
Hei @karl.jakob.lind It looks like your java installation is a bit wierd?
@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.
when trying to cider-jack-in-clojurescript I'm getting
error in process filter: Sync nREPL request timed out (op clone id 1)
thoughts?I searched on this error and have found a number of references stretching back years and am trying various solutions to no avail.
lein repl works
0.21.0 for cider...
how do I determine my nrepl version?
by default it injects the version when you run cider-jack-in-clojurescript
, it should say the version when you run that command
[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[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...
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?
stand by
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
?
cider-jack-in worked on a app generated by lein new app foobar
@dpsutton stand by...
@dpsutton when running your command I get a prompt in the cli.
sooo... I'm using the flyingmachinestudios .emacs/init.el which I'll paste, hang on.
well, here it is:
I blew away my .emacs.d in the course of troubleshooting this, as well as reinstalled leiningen.
so, yeah, pretty stumped.
yes, stand by.
hey guys, there's some way to check type hinting on java types using emacs ?
and there is some way to enter in the interop java code using emacs?
ok here is a better version: https://paste.ofcode.org/UBH8RcKpjyJ6LwQCK3C5Gi
@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.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.
am I supposed to paste errors like that in here? I don't know the protocol here.
by the way, happy to completely reinstall emacs/cider/leiningen etc... I'm trying to get my setup current, anyway.
I've always been pretty confused about the 'ideal' setup if there is anything like that.
I like to develop interactively from within vanilla terminal emacs.
can you look for cemerick/piggieback or any combination and make sure the coordinates are for cider/piggieback?
[com.cemerick/piggieback "0.2.2"]
and
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
I'm going to reclone the project and run it.
same error.
after replacing my .emacs files and leiningen I thought I'd get this solved.
I guess I should try without the flyingmachinestudios .emacs stuff next.
it may have something to do with that.
oh, good lord... doh.
I forgot to fix that when I recloned it.
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
(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"]
)
Caused by: java.lang.RuntimeException: Unable to resolve var: cemerick/piggieback/wrap-cljs-repl in this context
ok, after that, lol...
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
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"]
)
omg, ok, sorry.
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"]
)
`
cider.piggieback/wrap-cljs-repl
its http://name.space/function
YAAAAAAAAAAAAAAAAAAAAAAAAAYYYYY!!!
it finally works.
from the cli with your command; now trying in emacs.
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?the figwheel option works.
unbelievable (my denseness)... thank you so much for your patience here, and that of all the eyes that may scan this.
I'm back in business.