Skip to content

Instantly share code, notes, and snippets.

@runswithd6s
Created July 18, 2018 15:00
Show Gist options
  • Save runswithd6s/1781d9f87286eb473050dfc22e53cfbf to your computer and use it in GitHub Desktop.
Save runswithd6s/1781d9f87286eb473050dfc22e53cfbf to your computer and use it in GitHub Desktop.
Fulcro in Emacs25 with CIDER
[nREPL] Starting server via /home/cwalstrom/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.18.0-SNAPSHOT\"\] -- repl :headless :host ::...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: [WARNING] No nREPL middleware descriptor in metadata of [#function[clojure.core/comp/fn--5529]], see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of [#function[clojure.core/comp/fn--5529]], see clojure.tools.middleware/set-descriptor!
Exception in thread "main" java.lang.IllegalArgumentException: Key must be integer, compiling:(/tmp/form-init8008431120095512647.clj:1:73)
at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.Compiler.loadFile(Compiler.java:7452)
at clojure.main$load_script.invokeStatic(main.clj:278)
at clojure.main$init_opt.invokeStatic(main.clj:280)
at clojure.main$init_opt.invoke(main.clj:280)
at clojure.main$initialize.invokeStatic(main.clj:311)
at clojure.main$null_opt.invokeStatic(main.clj:345)
at clojure.main$null_opt.invoke(main.clj:342)
at clojure.main$main.invokeStatic(main.clj:424)
at clojure.main$main.doInvoke(main.clj:387)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:702)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Key must be integer
at clojure.lang.APersistentVector.invoke(APersistentVector.java:294)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.tools.nrepl.server$default_handler.invokeStatic(server.clj:90)
at clojure.tools.nrepl.server$default_handler.doInvoke(server.clj:80)
at clojure.lang.RestFn.invoke(RestFn.java:3894)
at user$eval39685.invokeStatic(form-init8008431120095512647.clj:1)
at user$eval39685.invoke(form-init8008431120095512647.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7062)
at clojure.lang.Compiler.eval(Compiler.java:7052)
at clojure.lang.Compiler.load(Compiler.java:7514)
... 12 more
Subprocess failed
error in process sentinel: Could not start nREPL server: [WARNING] No nREPL middleware descriptor in metadata of [#function[clojure.core/comp/fn--5529]], see clojure.tools.middleware/set-descriptor!
[WARNING] No nREPL middleware descriptor in metadata of [#function[clojure.core/comp/fn--5529]], see clojure.tools.middleware/set-descriptor!
Exception in thread "main" java.lang.IllegalArgumentException: Key must be integer, compiling:(/tmp/form-init8008431120095512647.clj:1:73)
at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.Compiler.loadFile(Compiler.java:7452)
at clojure.main$load_script.invokeStatic(main.clj:278)
at clojure.main$init_opt.invokeStatic(main.clj:280)
at clojure.main$init_opt.invoke(main.clj:280)
at clojure.main$initialize.invokeStatic(main.clj:311)
at clojure.main$null_opt.invokeStatic(main.clj:345)
at clojure.main$null_opt.invoke(main.clj:342)
at clojure.main$main.invokeStatic(main.clj:424)
at clojure.main$main.doInvoke(main.clj:387)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:702)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Key must be integer
at clojure.lang.APersistentVector.invoke(APersistentVector.java:294)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.core$comp$fn__5529.invoke(core.clj:2561)
at clojure.tools.nrepl.server$default_handler.invokeStatic(server.clj:90)
at clojure.tools.nrepl.server$default_handler.doInvoke(server.clj:80)
at clojure.lang.RestFn.invoke(RestFn.java:3894)
at user$eval39685.invokeStatic(form-init8008431120095512647.clj:1)
at user$eval39685.invoke(form-init8008431120095512647.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7062)
at clojure.lang.Compiler.eval(Compiler.java:7052)
at clojure.lang.Compiler.load(Compiler.java:7514)
... 12 more
Subprocess failed
mwheel-scroll: End of buffer
Mark set
mwheel-scroll: End of buffer
Mark set [5 times]
(defproject dominator "0.1.0-SNAPSHOT"
:description "Dominator"
:license {:name "All Rights Reserved"}
:min-lein-version "2.7.0"
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.312"]
[fulcrologic/fulcro "2.5.9"]
; Only required if you use server
[http-kit "2.2.0"]
[ring/ring-core "1.6.3" :exclusions [commons-codec]]
[bk/ring-gzip "0.2.1"]
[bidi "2.1.3"]
; only required if you want to use this for tests
[fulcrologic/fulcro-spec "2.1.0-1" :scope "test" :exclusions [fulcrologic/fulcro]]]
:uberjar-name "dominator.jar"
:source-paths ["src/main"]
:test-paths ["src/test"]
:clean-targets ^{:protect false} ["target" "resources/public/js" "resources/private"]
; Notes on production build:
; To limit possible dev config interference with production builds
; Use `lein with-profile production cljsbuild once production`
:cljsbuild {:builds [{:id "production"
:source-paths ["src/main"]
:jar true
:compiler {:asset-path "js/prod"
:main dominator.client-main
:optimizations :advanced
:source-map "resources/public/js/dominator.js.map"
:output-dir "resources/public/js/prod"
:output-to "resources/public/js/dominator.js"}}]}
:profiles {:uberjar {:main dominator.server-main
:aot :all
:jar-exclusions [#"public/js/prod" #"com/google.*js$"]
:prep-tasks ["clean" ["clean"]
"compile" ["with-profile" "production" "cljsbuild" "once" "production"]]}
:production {}
:dev {:source-paths ["src/dev" "src/main" "src/test" "src/cards"]
:jvm-opts ["-XX:-OmitStackTraceInFastThrow" "-client" "-XX:+TieredCompilation" "-XX:TieredStopAtLevel=1"
"-Xmx1g" "-XX:+UseConcMarkSweepGC" "-XX:+CMSClassUnloadingEnabled" "-Xverify:none"]
:doo {:build "automated-tests"
:paths {:karma "node_modules/karma/bin/karma"}}
:figwheel {:css-dirs ["resources/public/css"]}
:test-refresh {:report fulcro-spec.reporters.terminal/fulcro-report
:with-repl true
:changes-only true}
:cljsbuild {:builds
[{:id "dev"
:figwheel {:on-jsload "cljs.user/mount"}
:source-paths ["src/dev" "src/main"]
:compiler {:asset-path "js/dev"
:main cljs.user
:optimizations :none
:output-dir "resources/public/js/dev"
:output-to "resources/public/js/dominator.js"
:preloads [devtools.preload fulcro.inspect.preload]
:source-map-timestamp true}}
{:id "i18n" ;for gettext string extraction
:source-paths ["src/main"]
:compiler {:asset-path "i18n"
:main dominator.client-main
:optimizations :whitespace
:output-dir "target/i18n"
:output-to "target/i18n.js"}}
{:id "test"
:source-paths ["src/test" "src/main"]
:figwheel {:on-jsload "dominator.client-test-main/client-tests"}
:compiler {:asset-path "js/test"
:main dominator.client-test-main
:optimizations :none
:output-dir "resources/public/js/test"
:output-to "resources/public/js/test/test.js"
:preloads [devtools.preload]}}
{:id "automated-tests"
:source-paths ["src/test" "src/main"]
:compiler {:asset-path "js/ci"
:main dominator.CI-runner
:optimizations :none
:output-dir "resources/private/js/ci"
:output-to "resources/private/js/unit-tests.js"}}
{:id "cards"
:figwheel {:devcards true}
:source-paths ["src/main" "src/cards"]
:compiler {:asset-path "js/cards"
:main dominator.cards
:optimizations :none
:output-dir "resources/public/js/cards"
:output-to "resources/public/js/cards.js"
:preloads [devtools.preload]
:source-map-timestamp true}}]}
:plugins [[lein-cljsbuild "1.1.7"]
[lein-doo "0.1.10"]
[com.jakemccrary/lein-test-refresh "0.21.1"]]
:dependencies [[binaryage/devtools "0.9.10"]
[fulcrologic/fulcro-inspect "2.1.0" :exclusions [fulcrologic/fulcro-css]]
[cider/piggieback "0.3.6"]
[org.clojure/tools.namespace "0.3.0-alpha4"]
[org.clojure/tools.nrepl "0.2.13"]
[com.cemerick/piggieback "0.2.2"]
[lein-doo "0.1.10" :scope "test"]
[figwheel-sidecar "0.5.15" :exclusions [org.clojure/tools.reader]]
[devcards "0.2.4" :exclusions [cljsjs/react cljsjs/react-dom]]]
:repl-options {:init-ns user
:nrepl-middleware [[cider.piggieback/wrap-cljs-repl]
[cemerick.piggieback/wrap-cljs-repl]]}}})
@punnie
Copy link

punnie commented Apr 20, 2019

Hey there! Did you find out what was happening? Facing the same issue at the moment and have no idea where to look. Thanks!

@punnie
Copy link

punnie commented Apr 20, 2019

Found it. No need to include these lines anymore on your project.clj or profile.clj anymore, as CIDER does them automatically:

:nrepl-middleware [cider.nrepl/cider-middleware
                   refactor-nrepl.middleware/wrap-refactor]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment