This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (4)
- # bangalore-clj (2)
- # beginners (99)
- # boot (8)
- # clojars (22)
- # clojure (87)
- # clojure-dev (2)
- # clojure-greece (10)
- # clojure-russia (22)
- # clojurescript (80)
- # cursive (4)
- # data-science (2)
- # datomic (10)
- # emacs (1)
- # fulcro (1)
- # garden (2)
- # luminus (1)
- # lumo (29)
- # off-topic (20)
- # om (6)
- # onyx (18)
- # parinfer (7)
- # perun (1)
- # portkey (28)
- # re-frame (93)
- # reagent (59)
- # ring-swagger (2)
- # shadow-cljs (31)
- # slack-help (15)
- # spacemacs (5)
- # uncomplicate (3)
- # yada (6)
Hi! Has anyone ever been bitten with
No reader function for tag <Tag> when compiling
how do I invoke with
(.Builder. seleniumWebdriver) Class constructor Builder cannot be invoked without 'new'
I get the same if I do
(.. seleniumWebdriver Builder) or
(-> seleniumWebdriver (.Builder.))
old guide http://thornydev.blogspot.jp/2013/03/signing-and-promoting-your-clojure.html , I don't see it updated according to latest gpg
got it, that’s why then. Never wrote a library nor pushed it to a public repository
You should get some help soon, there’s a lot of proficient devs here, I’m sure someone went through it before 🙂
and I deployed tens of packages on Clojars before... however, I can' even repeat my steps without spending a lot of time to do it.
Does anyone know a shorthand way to “thunk” something like
false? I’ve tried
#(false) hoping to be able to call it like
(#(false)), but I’m getting a
Yeah, you can't generally write an anonymous function literal that just returns a value, because it gets treated as an implicit function. I can find a description of the details if you'd like.
You could use
(constantly false) if you don't care that it'll return as many times as it's called.
I wouldn't say so; I feel like I see both pretty regularly. I find it slightly prettier, but that's just personal preference.
NP. This SO question describes a couple of other alternatives, btw: https://stackoverflow.com/questions/13204993/anonymous-function-shorthand
I wouldn't personally use the
#(-> %) suggestion, though; it would throw me off for a minute if I bumped into it.
Anyone able to help me understand why certain functions like
dir are not available after I switch the REPL to the namespace of my current project?
i am struggling to use tooling. in general. i have this
WARNING: CIDER's version (0.16.0-snapshot) does not match cider-nrepl's version (0.15.0). Things will break! i read the docs, i did what it says. it is still appearing. there are also 4 other things that are broken. this is just how i got the template, i barely changed a line.
@ashnur Ah, yeah, the cider/nrepl/clj-refactor thing can be a bit challenging at first. Do you already have emacs experience? If not, you might be better off starting with a simpler tool rather than try to learn both Clojure and Emacs at the same time. And I say that as a complete Emacs fanboy.
Spacemacs is definitely the best emacs to get started with IMHO -- but it's still a big, complicated beast.
It might be reasonable to ignore that warning for now -- in my experience, it rarely actually causes problems. But it's been a few versions since I've encountered it.
i don't think i use luminous https://gist.github.com/ashnur/4ad6184a08bd0fd0535c838719a84a5b#file-project-clj
and there is the problem that the css isn't being written in resources by the sass plugin
I would say that Cursive has the reputation of being the easiest way to get started with Clojure/ClojureScript. It's something you have to pay for, but IIRC you get some months of trial before having to pay for anything.
Cider-jack-in should automatically inject the correct version of cider-nrepl. Possible you are overriding that in ~/.lein/profiles.clj? Or are you starting the repl by hand and connecting to it with M-x cider-connect?
Yeah, the out-of-sync stuff pretty much is usually some combination of cider-nrepl/clj-refactor/refactor-nrepl.
Also: is your spacemacs fully up-to-date? Or is it a version you installed a while ago?
yeah, i don't even know what these things do, i have to check them now one by one if i need them
BTW, CIDER has pretty terrific documentation, including a good troubleshooting section -- that's another place to look if you encounter further difficulties. https://cider.readthedocs.io/en/latest/troubleshooting/
@ashnur have you added the
clojure layer to your
Heh. If anything, I'd say that the clj/s community usually tends to run a bit light on documentation. But CIDER certainly has a lot. Don't hesitate to bring up more questions, we're happy to help you get going. There are also friendly & helpful #spacemacs and #cider channels.
well, if i ignore the warnings, how to debug the css generation thing. i generated the template to use
+sass and there is an scss file in
src/ but there is no css output
Ah. There I've got zero clue. Possibly you need a sass or css layer in spacemacs? But I really have no idea.
people laugh at js tooling, but usually it takes months before you start hating grunt gulp and all the other weird stuff 🙂
Clojure/Script tends to favor conceptual simplicity over familiarity & ease of getting started. The big payoffs generally come later, especially on larger projects. That said, folks are definitely doing a lot of great work on getting-started/ease-of-use stuff. But there's certainly some left to be done.
i am not sure you can go simpler than the npm modules i am using. the tooling is definitely not simple in any way. leiningen is not simple. maybe boot, but boot doesn't have hmr
"Simple" in a particular sense, as described in this talk, which I highly recommend: https://www.infoq.com/presentations/Simple-Made-Easy