This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-05
Channels
- # announcements (3)
- # beginners (225)
- # calva (3)
- # cider (110)
- # circleci (18)
- # clj-kondo (15)
- # cljdoc (1)
- # cljsrn (12)
- # clojure (77)
- # clojure-dev (39)
- # clojure-europe (3)
- # clojure-houston (2)
- # clojure-italy (9)
- # clojure-nl (16)
- # clojure-romania (1)
- # clojure-spec (5)
- # clojure-uk (20)
- # clojuredesign-podcast (28)
- # clojurescript (89)
- # core-async (4)
- # cursive (10)
- # datomic (3)
- # defnpodcast (5)
- # emacs (17)
- # events (1)
- # figwheel (4)
- # graalvm (6)
- # juxt (1)
- # pathom (4)
- # pedestal (5)
- # re-frame (4)
- # remote-jobs (3)
- # rewrite-clj (4)
- # shadow-cljs (90)
- # spacemacs (2)
- # sql (7)
- # tools-deps (4)
- # vim (52)
- # xtdb (7)
Anyone using vim-fireplace with shadow-cljs? I got clj and cljs repl's connected with a lot of help from tpope
and friends but that required me to replace [cider/cider-nrepl "0.21.1"]
with [nrepl "0.6.0"]
. #cider found this weird as they aren't interchangeable like that. The repl's and hot reloading work great as far as I can tell but all other tooling like clojure-vim/async-clj-omni
(from dominicm?) no longer works because anytime I add cider-nrepl
to my dependencies all hell breaks loose. So maybe I don't have full vim-fireplace functionality, I don't know. And I hate to lose all that goodness dominicm helped me with too but the shadow nor cider folks use vim or cider to help.
Can't help you, but I'm interested too. I wasn't using fireplace yet when I last used shadow, but sooner or later I will do frontend stuff again and will run into exactly same problem.
they should still work really, but the :Piggieback
command probably changed in recent version
yeah, it all worked with cider-nrepl a few months ago. Here is the new piggieback command you would need: https://github.com/thheller/shadow-cljs/issues/62
It's :Piggieback (shadow.cljs.devtools.api/nrepl-select :app)
in my particular case.
I'm a bit confused, I downloaded https://github.com/minimal-xyz/minimal-shadow-cljs-browser/blob/master/shadow-cljs.edn and connected, and piggieback worked fine, I got a js/alert working
how weird is that! So yeah the repl's connect fine without the dependencies at all. Not sure how that worked because I thought I was just told two weeks ago that fireplace requires cider-nrepl.
But are you saying you also have your clojure-vim/async-clj-omni
working for autocompletion and docs and such? @U09LZR36F
When I add [cider/cider-nrepl "0.21.1"]
to my dependencies and try to connect I get a long stacktrace error that starts with this:
[2019-08-06 16:50:41 - SEVERE] Unhandled REPL handler exception processing message {:id 398aa901-f222-47a9-ac21-67eb35075490, :op classpath}
java.lang.IllegalArgumentException: No implementation of method: :send of protocol: #'nrepl.transport/Transport found for class: clojure.tools.nrepl.transport.FnTransport
And neovim locks up until I hit C-c
to run vim interrupt
that explains some of the mystery though. I never needed that nrepl
dependency or piggieback apparently. I was just having an issue with this cider-nrepl dependency the whole time.
https://pastebin.com/cgH7V1b4 Do you happen to notice anything here? This is git cloned from the tutorial I'm using but just replacing proto repl (he uses Atom) with cider
no worries. I'm failing to see exactly how this: https://github.com/jacekschae/learn-reagent-course-files/tree/master/giggin differs from your example repository but I'm missing something. I can complete the tutorial without cider I guess I just don't know what I'll do in the future.
I just tried adding cider-nrepl to a shadow-cljs project and it's also blowing up in weird ways
oh thank goodness. lol. My default is that I'm doing something horribly inept but thankfully someone competent has confirmed
i mean i'm competent with fireplace but i wouldn't call myself competent with shadow-cljs ¯\(ツ)/¯
last time I wrangled you into this I had asked the shadow-cljs folks about the "blowing up" and that's when theller recommended the nrepl thing instead. But the cider guys say that's not right. But theller doesn't use cider so it's a fun little back and forth in which I can provide nothing to help
I just found a bug on automatic piggiebacking that may or may not have been affecting you
updated (I saw the fix in the commit list of updates) and still getting the error and inability to connect with clj before I get to the piggieback stage though.
sort of. I run npm run dev
and that starts shadow-cljs watch app
λ ~/projects/learn-reagent-course-files/giggin : npm run dev
> [email protected] dev /home/chaselambert/projects/learn-reagent-course-files/giggin
> shadow-cljs watch app
shadow-cljs - config: /home/chaselambert/projects/learn-reagent-course-files/giggin/shadow-cljs.edn cli version: 2.3.30 node: v12.6.0
so maybe it's one of the other dependencies or something? I'll have to compare the edn files
sweet! I'll try and track that one down. unfortunately I have to run out right now. Thanks for all your help again!
I think I've solved it fellas. I updated the shadow-cljs dependency in the package.json and I think everything is working fine now.
I really apologize if that's something that should have been super obvious to do and I've wasted all your time. At least it seemed a couple non related bugs were found, right???
@U9J50BY4C Just curious, so old version of shadow was the cuplrit? What was the broken version?