This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-25
Channels
- # announcements (22)
- # architecture (6)
- # beginners (76)
- # cider (44)
- # clara (6)
- # clj-kondo (34)
- # cljdoc (4)
- # cljs-dev (8)
- # clojure (162)
- # clojure-brasil (4)
- # clojure-dev (32)
- # clojure-europe (3)
- # clojure-italy (16)
- # clojure-japan (4)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-spec (25)
- # clojure-uk (45)
- # clojuredesign-podcast (5)
- # clojurescript (91)
- # clojutre (3)
- # core-async (19)
- # core-logic (8)
- # cursive (60)
- # data-science (3)
- # datomic (7)
- # defnpodcast (2)
- # duct (5)
- # emacs (7)
- # fulcro (1)
- # graalvm (9)
- # graphql (1)
- # jackdaw (12)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (3)
- # leiningen (3)
- # luminus (2)
- # off-topic (44)
- # onyx (17)
- # pathom (6)
- # planck (15)
- # re-frame (1)
- # reagent (13)
- # rum (2)
- # shadow-cljs (43)
- # spacemacs (3)
- # sql (43)
- # tools-deps (3)
- # vim (43)
- # xtdb (13)
thanks for the heads up dominicm and tpope! jrdoanes fork of vim-clojure-highlight with the suggested fix does the trick and the highlighting is working again. you're right about that lock-up when entering a buffer too, dominicm 😂 i haven't modified any plugins before, is it a straight forward enough job to get the highlight to be async?
@ssjoleary746 I had a quick look at the source yesterday I think that you would need to reimplement fireplace#evalparse to be async. @tpope it doesn't look like client.eval() has an async option. @ssjoleary746 lacking a client.eval, I'd probably reach for fireplace#message() as a fallback, and then use the g:fireplace#reader in the same way that fireplace#evalparse does.
fireplace#eval
has a preamble for argument handling that could be extracted into a utility method and extended to handle a function ref argument
@tpope really appreciate all the effort you've put into fireplace 🙂 I'm being quite lazy with replant and waiting for https://github.com/neovim/neovim/issues/10362 before I do the full migration. I'm excited for what can be built on these primitives now!
brilliant, thanks for the heads up. i'll have a poke around and see what comes of it 🤞
@tpope I used to be able to do *e
after an eval threw an exception and get all the gory details. This doesn't work any more? I just get the #object[java.lang.ClassCastException ...]
version now
@olical I thought I'd try out Conjure at last but I'm having trouble getting it recognised. I've installed it with vim-plug and manually run bin/compile
. But I still get the Conjure not compiled, please run bin/compile then conjure#init() or restart
message. Any ideas please?
Running bin/compile
gave me:
[Conjure] Preparing dependencies for runtime injection...
Downloading: traversy/traversy/0.5.0/traversy-0.5.0.pom from
... a whole bunch of others ...
Downloading: com/google/code/gson/gson/2.2.4/gson-2.2.4.jar from
retrieve dependencies and munge clojure source files
in RESOLVED-TREE mode, working on a resolved dependency tree
[compliment "0.3.8"]
unzipping [ compliment [ v0v3v8 ]]
munge source files of compliment artifact on branch [] exposed false.
I noticed my classes/
was empty so I ran clojure -Sforce -A:compile --eval "(compile 'conjure.main)"
from bin/compile
and got:
Downloading: com/google/guava/guava/18.0/guava-18.0.jar from
conjure.main
; conjure/out | Welcome to Conjure! (v0.22.0-0-g0cbb94a56f)
; conjure/out | Skipping :dev - can't connect
; conjure/err | No matching connections for /home/alee/.vim/bundle/conjure/foo.clj
; conjure/out | Skipping :dev - can't connect
; conjure/out | Skipping :jvm - can't connect
; conjure/out | Skipping :jvm - can't connect
; conjure/out | Skipping :node - can't connect
; conjure/out | Skipping :node - can't connect
; conjure/out | Skipping :browser - can't connect
; conjure/out | Skipping :browser - can't connect
; conjure/err | No matching connections for /home/alee/.vim/bundle/conjure/foo.clj
; conjure/err | No matching connections for /home/alee/.vim/bundle/conjure/foo.clj
(plus lack of output from the form I tried to eval)OK, the problem was that I was running from my conjure checkout, which includes a .conjure.edn
that doesn't work for me
Ah this is starting to make more sense having revisited the blog post. I need to add a bit of code to start the prepl and still lein repl
. Shame, I was hoping to get around having to manually start REPLs.
Glad you sorted it eventually! I'm sorry I couldn't help, I've been ill and moving flats over the last week so I haven't had any free time for side project stuff! Well done on working it out in the end. The concept of .conjure.edn
is pretty alien because nobody else is doing it like that, I really like it personally (of course...).
Trying to use Conjure from within it's source directory will create all sorts of weirdness since it thinks you're in development mode and trying to work on Conjure itself at that point 😬
No worries, I know you're usually super helpful. I persisted with the questions/writeup partly so you got the user journey
has anyone gotten fireplace + piggieback + lein-figwheel working recently? It remember I had problems with the nrepl namespace change a while back… but now on a new system I can’t connect to the browser repl. Have there been more suprises in this area?
gotcha.. thanks… anything i can do help debug this? I am seeing this, which I cannot parse
Syntax error (ClassNotFoundException) compiling at (/private/var/folders/qs/tzcsbc9s5vb3mbvd2wnrdcgr0000gn/T/form-init98983630314155450.clj:1:29).
figwheel-api.repl-api
when running
:Piggieback (figwheel-api.repl-api/repl-env)
Trying to run this project: https://github.com/briangorman/hablamoshmm got it working with “lein figwheel” and manually connecting to repl. One problem I had was specifying “figwheel-api” instead of sidecar. Not sure why manually connecting from lein repl doesn’t work anymore… but not critical enough for me to debug
if it's like main, repl-env
doesn't start the env, just returns it. you have to call start
the first time
I am seeing a similar issue with Piggieback (do (require '[figwheel-sidecar.repl-api]) (figwheel-sidecar.repl-api/repl-env))
, I have called start
already. This setup worked for quite a long time but doesn't anymore, is there anything I can do to debug?
one thing that could be causing issues is that you need to be in a cljs file when you attempt to send commands to the cljs repl I eventually got everything working yesterday…. its been a while for me
note that (do (require 'foo.bar) (foo.bar/baz))
doesn't work unless foo.bar
was previously required (thus defeating the purpose of including the require). but if you called start already that's not the root cause
Oh, thanks. Actually, if I remove the require then everything starts working again. Not sure how that worked for so long before and what made it stop.