This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-19
Channels
- # 100-days-of-code (5)
- # announcements (1)
- # aws (1)
- # beginners (112)
- # cider (135)
- # cljdoc (6)
- # clojure (111)
- # clojure-dev (8)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-sweden (3)
- # clojure-uk (152)
- # clojurescript (101)
- # datascript (14)
- # datomic (61)
- # editors (1)
- # emacs (29)
- # events (7)
- # figwheel (3)
- # figwheel-main (15)
- # fulcro (18)
- # funcool (2)
- # graphql (1)
- # juxt (2)
- # off-topic (51)
- # om (1)
- # overtone (28)
- # perun (2)
- # reagent (1)
- # reitit (6)
- # ring-swagger (5)
- # shadow-cljs (112)
- # spacemacs (49)
- # tools-deps (10)
- # unrepl (11)
- # yada (10)
@dpsutton I was trying to use the use the cider-nrepl 0.19.0-SNAPSHOT with refactor-nrepl 2.4.0 and it didn't like it apparently.
{:dependencies [[figwheel-sidecar "0.5.14"]
[com.cemerick/piggieback "0.2.1"]]
:source-paths ["src" "env/dev"]
:cljsbuild {:builds [
{:id "ios"
:source-paths ["src" "env/dev"]
:figwheel true
:compiler {:output-to "target/ios/index.js"
:main "env.ios.main"
:output-dir "target/ios"
:optimizations :none
:target :nodejs}}
{:id "android"
:source-paths ["src" "env/dev"]
:figwheel true
:compiler {:output-to "target/android/index.js"
:main "env.android.main"
:output-dir "target/android"
:optimizations :none
:target :nodejs}}
#_($DEV_PROFILES$)]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
[nREPL] Starting server via /usr/local/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\"\] -- with-profile +dev repl :headless...
[nREPL] server started on 63506
[nREPL] Establishing direct connection to localhost:63506 ...
[nREPL] Direct connection to localhost:63506 established
error in process filter: user-error: Piggieback is not available. See for details
error in process filter: Piggieback is not available. See for details
@martincharlesrichards You need cider/piggieback
instead.
I’m working towards a deps.edn-based setup — can I start up a Cider session with -A aliases specified?
Can’t seem to find it in the docs
I'm surprised that works with figwheel 0.5.14. I thought 16 was the first with cider piggieback support
Hi, i updated packages and my repl is spewing a few screens of messages messages like the following: Boxed math warning, cider/inlined_deps/fipp/v0v6v13/corerrb_vector/v0v0v12/clojure/core/rrb_vector/nodes.clj:88:11 - call: public static boolean http://clojure.lang.Numbers.lt(long,java.lang.Object).
i bet you've been getting these warnings forever, they've just gone to the server process buffer rather than your repl
That’s the PR which introduced the problem (it added compatibility with Clojure 1.10).
Don’t have time to debug this, but I assume the problem is trivial by looking at the stacktrace.
@bozhidar Thanks
I have an instance of emacs 25.1.1 install with cider 0.18.0. My project directory looks like this
vagrant@taps-tvisher1:/opt/code/docs/scripts/tap-generate-docs$ tree -I 'bin|test'
.
├── deps.edn
└── src
└── tap_generate_docs.clj
and I'm editing tap_generate_docs.clj
.
When I M-x cider-jack-in RET
, cider prompts me with Are you sure you want to run
cider-jack-in' without a Clojure project?`.
Is this a known issue or is there something I can do to fix it?you can eval this (clojure-project-dir (cider-current-dir))
to see what it thinks is going on directory wise
that might be holding onto something before TRAMP is run. set that to nil if not already
(defun clojure-project-dir (&optional dir-name)
"Return the absolute path to the project's root directory.
Call is delegated down to `clojure-project-root-function' with
optional DIR-NAME as argument.
When `clojure-cache-project-dir' is t the results of the command
are cached in a buffer local variable (`clojure-cached-project-dir')."
(let ((project-dir (or clojure-cached-project-dir
(funcall clojure-project-root-function dir-name))))
(when (and clojure-cache-project-dir
(derived-mode-p 'clojure-mode)
(not clojure-cached-project-dir))
(setq clojure-cached-project-dir project-dir))
project-dir))
So new nrepl claims to come up correctly but we fail to attach to it over localhost:<port>
.
oh so the first bug is still present in 0.18? upgrading clojure-mode didn't solve it?
Sorry. No. We're past the first bug. It was a classic melpa v. melpa-stable problem.
This is why I have a carefully curated bash/emacs/etc. environment that is shared with all my coworkers so they don't have to think about it.
ok. that sounds like a more familiar error. any plugins? older versions of clj-refactor?
Debugger entered--Lisp error: (error "Invalid byte opcode: op=183, ptr=2")
signal(error ("Invalid byte opcode: op=183, ptr=2"))
error("Invalid byte opcode: op=%s, ptr=%d" 183 2)
cider-jack-in-command("clojure-cli")
cider-jack-in(nil)
funcall-interactively(cider-jack-in nil)
#<subr call-interactively>(cider-jack-in nil nil)
ad-Advice-call-interactively(#<subr call-interactively> cider-jack-in nil nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (cider-jack-in nil nil))
call-interactively(cider-jack-in nil nil)
command-execute(cider-jack-in)
I mean his emacs install has a bunch of stuff that I don't run so that could definitely be something. I could emacs -Q
and get cider installed and see where we go.
that looks like incompatible emacs byte code which results from emacs X compiling elc and emacs Y running
I did. And actually now that you mention it I downgraded him to 0.17 by copying it out of my emacs 26 config. 🙂
if yall could take a minute to lodge a ticket about the tramp jack in regression it would be appreciated
I have a cljs / figwheel project with an ns containing a simple spec: (s/def ::content string?)
. Is it expected that upon jacking in I would see the ns as an option to select from M-x cider-browse-spec ? Because I don't see it.
I am trying to set the following in spacemacs in the user-config but it doesn't seem to be working. Any idea how to go about debugging it? I have tried with
(progn (require 'cider-repl-mode-map) ...)
and without but nothing.
(define-key cider-repl-mode-map (kbd "RET") #'cider-repl-newline-and-indent)
(define-key cider-repl-mode-map (kbd "C-<return>") #'cider-repl-return)
if you want to require the file that has that var do that with (require 'cider-repl)
, else just use the var
(use-package foo
:init
(setq foo-variable t))
(i am neither spacemacs nor use-package user)I have put them inside of (defun dotspacemacs/user-config () ...) which says it's called at the very end of the spacemacs init after layers config.
ok. so what's happening (i think) is that use-package is lazy so even though the config has "run" it hasn't done anything (yet)
so that variable cider-repl-mode-map
isn't avaialble since the source hasn't been required yet
so try
(require 'cider-repl)
(define-key cider-repl-mode-map (kbd "RET") #'cider-repl-newline-and-indent)
(define-key cider-repl-mode-map (kbd "C-<return>") #'cider-repl-return)
So that's where I got
(progn
(require 'cider-repl)
(define-key cider-repl-mode-map (kbd "RET") #'cider-repl-newline-and-indent)
(define-key cider-repl-mode-map (kbd "C-<return>") #'cider-repl-return))
I'm not sure how to evaluate it. I just restarted emacs (or reloaded the spacemacs dotfile) and it didn't seem to bind them.
yeah if you have questions about cider specific stuff i'm happy to help. i just think that channel will be able to quickly get you up and running with your config