This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-23
Channels
- # announcements (11)
- # babashka (35)
- # beginners (110)
- # calva (2)
- # cider (46)
- # clara (5)
- # clj-kondo (29)
- # cljdoc (4)
- # cljsrn (59)
- # clojure (163)
- # clojure-brasil (3)
- # clojure-europe (24)
- # clojure-italy (2)
- # clojure-nl (10)
- # clojure-sweden (1)
- # clojure-uk (36)
- # clojurescript (58)
- # conjure (24)
- # cursive (19)
- # data-science (14)
- # datascript (1)
- # datomic (10)
- # docker (3)
- # expound (6)
- # figwheel-main (17)
- # fulcro (16)
- # graalvm (1)
- # leiningen (9)
- # malli (11)
- # off-topic (22)
- # parinfer (1)
- # pathom (1)
- # re-frame (18)
- # reagent (18)
- # reitit (3)
- # ring (3)
- # shadow-cljs (8)
- # spacemacs (3)
- # specter (79)
- # sql (20)
- # tools-deps (25)
- # vim (4)
- # xtdb (8)
having a hard time getting the text from an element to be used in its on-click. and example of what I have tried.
[:span {:on-click #(js/alert (.. % text))} "foo"]
can anyone help me out?Hello, I have a question regarding connecting to a figwheel-main repl from Emacs. My setup is similar to this one: https://figwheel.org/docs/create_a_build.html . It works and all, but i want to be able to connect to it via Emacs via cider-connect-cljs
. How can i find out the right port to connect to?
Well, I start the app on a terminal and want to connect to that, rather to have it in Emacs.
Oh okay, I see. I will look into that. Thank you, that helped. I thought that I maybe oversaw something trivial.
one thing to do, cider-jack-in-cljs
and the repl buffer will print out at the top the command used to start the repl. you can then kill the repl and start a process from the terminal with that exact command
/usr/local/bin/clojure -A:fig -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/piggieback {:mvn/version "0.4.2"} cider/cider-nrepl {:mvn/version "0.25.0-alpha1"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl"]'
from the command line and then cider-connect-cljs
choose figwheel-main, the build and off yougo
i think i had a patch laying around somewhere where i just generated the command and put it in the clipboard
There isn't a cider-copy-startup-command
but there is an option to let you edit the command before the jack in process starts it. That'll let you copy the command from the minibuffer. (setq cider-edit-jack-in-command 't)
yeah agreed. don't need to set the edit defvar. just jack in with a prefix and you get to edit it. jack in with double prefix and you can edit things like the project directory and others
i think that's what i usually do. jack in with prefix to edit, copy from minibuffer, then C-g out of the jack in process
Ah, one thing isnt working tho...: if i close the connection in Emacs and try to reconnect, it says that "A build with id ==ID== is already running"
. Is this supposed to be like that?
also, if you're using bruce's template, remove rebel readline. i think it and emacs clash a bit
Hello guys. I'm seeing a weird bug - using keywords with imported namespace (like ::i/this-works
) works fine. Using namespaced maps (like #::i{:this-is-broken true}
) fails on compilation with error like No namespace: my-app.imported-namespace found
. Any help is very welcome 🙂
@bhauman Trying to, this thing is very elusive. I have a project with this problem, but once I am trying to reduce, problem disappears. Rolling back to previous change - still no problem where it was 10 minutes ago.
Seems to be related to build cache. Error disappears after cleaning up resources/public/js. Still have no reproducible setup though.
As we're talking of examples - any way to submit a bug? Can't create a ticket at Atlassian, got a minimal example https://github.com/ai212983/cljs-source-map-bug
Talked to David about it, but still have no response after providing minimal example.
make a post on https://ask.clojure.org/ and it can be promoted to jira
Hi! I keep getting this strange error
main.js:1670 An error occurred when loading jpc.rolo.client.js
env.evalLoad @ main.js:1670
(anonymous) @ main.js:1882
main.js:1671 Error: Invalid character: @ found while reading symbol.
just reverted a bunch of code hoping it would vanish, but it is still there ;x
maybe someone can point me in the right direction pardon my red
looks like you had something with a name like foo@bar
or foo@
in a call to a four arg function(?)
Oh my gosh, I had to view-source. the server loads data into a html var, it's loading data-mggs="clojure.lang.LazySeq@4f35cce5"
hahah I was going crazy!
clojurescript land not involved
sounds like you need pr-str
instead of str
somewhere
okay, i gotta find it... thank you
luckily i didn't undo THAT much effort xD
smashing
thank you