This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-03
Channels
- # announcements (3)
- # beginners (114)
- # calva (42)
- # cider (90)
- # clj-kondo (3)
- # cljsrn (6)
- # clojure (40)
- # clojure-conj (4)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-nl (4)
- # clojure-quebec (1)
- # clojure-spec (3)
- # clojure-uk (130)
- # clojurescript (31)
- # cursive (3)
- # data-science (3)
- # datavis (1)
- # datomic (5)
- # dirac (3)
- # fulcro (16)
- # jobs (1)
- # joker (6)
- # music (5)
- # off-topic (14)
- # re-frame (19)
- # remote-jobs (8)
- # shadow-cljs (37)
- # slack-help (4)
- # tools-deps (22)
- # xtdb (8)
Anyone else had problems with emacs crashing when loading a user.clj
file?
this is an old project other newer projects work but this one is giving me problems
I don’t have a minimal repro yet, sorry. Still investigating. If I have an empty user.clj
file it works, it is when I have some requires that it fails.
I have narrowed it down to a particular namespace that is being required, it is a namespace internal to the app so I am guessing it is something weird we are doing
In my case the issue of emacs crashing when loading user.clj
came down to it requiring [clojure.tools.nrepl.server :as nrepl]
from [org.clojure/tools.nrepl "0.2.13"]
what was the last version of CIDER you were on? CIDER switched to nrepl/nrepl a while back and now org.clojure/tools.nrepl is not supported
is there a shortcut for cider-repl-clear-buffer
?
From what i gather online it used to be but not anymore
in docs i only found
C-c C-o
which clears only last result
and i need whole repl cleaned
ERROR: Unhandled REPL handler exception processing message {:op complete, :ns aclaimant.dashboard-v2.controls, :symbol log/spy, :context :same, :session 85879d90-112a-4993-bde8-57d97808a0bf, :id 38}
java.lang.AssertionError: Assert failed: file:/Users/dan/projects/aclaimant/acl/resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v6/suitable/js_introspection.cljs does not provide a namespace
still having issues with clj-suitable on 22.1does anybody recognize the following stack trace?:
Exception in thread "main" java.lang.IllegalArgumentException: no conversion to symbol
at clojure.core$symbol.invokeStatic(core.clj:596)
at clojure.core$symbol.invoke(core.clj:589)
at clojure.core$map$fn__5847$fn__5848.invoke(core.clj:2742)
at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
at clojure.core$transduce.invokeStatic(core.clj:6883)
at clojure.core$into.invokeStatic(core.clj:6899)
at clojure.core$into.invoke(core.clj:6887)
at nrepl.cmdline$__GT_mw_list.invokeStatic(cmdline.clj:217)
at nrepl.cmdline$__GT_mw_list.invoke(cmdline.clj:215)
at nrepl.cmdline$build_handler.invokeStatic(cmdline.clj:226)
at nrepl.cmdline$build_handler.invoke(cmdline.clj:219)
at nrepl.cmdline$options__GT_handler.invokeStatic(cmdline.clj:295)
at nrepl.cmdline$options__GT_handler.invoke(cmdline.clj:286)
at nrepl.cmdline$server_opts.invokeStatic(cmdline.clj:343)
at nrepl.cmdline$server_opts.invoke(cmdline.clj:331)
at nrepl.cmdline$dispatch_commands.invokeStatic(cmdline.clj:432)
at nrepl.cmdline$dispatch_commands.invoke(cmdline.clj:425)
at nrepl.cmdline$_main.invokeStatic(cmdline.clj:448)
at nrepl.cmdline$_main.doInvoke(cmdline.clj:443)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.core$apply.invokeStatic(core.clj:665)
at clojure.main$main_opt.invokeStatic(main.clj:491)
at clojure.main$main_opt.invoke(main.clj:487)
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)
@lepistane Try C-u C-c C-o
.
@johanatan Seems you like you’re passing some bad arguments to clj
when starting the nREPL server.
here are the arguments:
[nREPL] Starting server via clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/piggieback {:mvn/version "0.4.1"} refactor-nrepl {:mvn/version "2.4.0"} cider/cider-nrepl {:mvn/version "0.22.1"}}}' -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl"]'
if you run that from the command line do you see the same behavior? perhaps more information?
also, if you use a prefix while jacking in (`C-u C-c M-J` (capital J for clojurescript here) and edit the nrepl version to 21.1 do you see the same behavior?
One more detail is that the CIDER attempt from Spacemacs is over a TRAMP connection.
After trying 21.1 i got a warning that i might want to try setting nrepl-use-ssh-fallback-for-remote-hosts
. trying that now
although i do get this warning: "WARNING: CIDER 0.22.0 requires cider-nrepl 0.22.1, but you're currently using cider-nrepl 0.21.1. The version mismatch might break some functionality!"
if you have that value set can you get it to work with 22.1? Is this a regression in functionality or regression in errors/info
i just tried 22.1 with that value set and i got the original "symbol not defined" error
oh, shoot. sorry. it doesn't work with 21.1 either with cljs which is what i really need here
i've never gotten it to work with this project but i just upgraded to the new cider last week
oh, hmm. well i'm pretty sure i've used TRAMP + CIDER before on other projects (but those were lein. this is first attempt for tools.deps)
but, just to confirm, if i start nrepl in clojure mode on a cljs project and then send a buffer to it, switch to that namespace and then trying calling a function, it will fail to find the function since it was a clj repl and not a cljs one?
is this with tramp or without. i can't follow what circumstances we're discussing now
let me iterate the full setup: it's clj/tools.dep, clojurescript, tramp, nrepl 0.21.1 --or-- 0.22.1 .
ok. so 21.1 with clj works, 21.1 with cljs fails with the symbol error, 22.x fails with symbol error in both clj and cljs
not sure if you've ever worked with elisp and CIDER before but you're probably the most qualified to work on this bug. A work product is by far the best testing ground to diagnose these issues
hehe, i will try to give it a look. otherwise, should i file an issue on the cider github?
@dpsutton There’s an updated version on master
, but I hadn’t had time to cut a new release.
nilWARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/property-names-and-types at line 26 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/property-names-and-types at line 26 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/oget at line 35 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/oget at line 40 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/starts-with? at line 34 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/oget at line 41 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/oget at line 35 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/properties-by-prototype at line 30 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
WARNING: Use of undeclared Var cider.nrepl.inlined-deps.suitable.v0v2v13.suitable.js-introspection/property-names-and-types at line 26 resources/public/js/app.out/cider/nrepl/inlined_deps/suitable/v0v2v13/suitable/js_introspection.cljs
When does this happen?
our work project. figwheel, cljs 1.10.439. When editing a buffer while cider-connected
Thanks. will look into it.
Perhaps. That’s why I had suggested to @robertkrahn that maybe we should make it optional for now and have the users opt into it.
Feel free to disable it or suggest what kind of switch you want. What's problematic is that various cljs engines tend to act quite differently and even core features such as dynamically loading code are implemented and act differently.
So right now I have lots of special handlers for figwheel / node / shadow etc in place but it will take a while - if it happens at all - to find and code around all the different behaviors. I only have limited time and only use figwheel so this will probably take a long time.
So an opt in solution might be best but this also means that most people will never see / hear of that feature. Please suggest how you prefer to parameterize that behavior.
@robertkrahn I was thinking that we can just add an extra flag to the completion middleware request.
Alternatively we can just keep it enabled only for figwheel and node have suitable do nothing with other REPLs.
I think suitable is pretty cool, but I also completely understand how hard it is to reconcile the differences in all the ClojureScript REPLs.
With some holding hands, I can spend some time on fixing issues that creep up in suitable. Or at least try fix them.