This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-28
Channels
- # beginners (33)
- # cljs-dev (9)
- # cljsjs (1)
- # cljsrn (5)
- # clojure (123)
- # clojure-uk (2)
- # clojured (1)
- # clojurescript (11)
- # datomic (71)
- # defnpodcast (2)
- # dirac (8)
- # emacs (35)
- # events (4)
- # figwheel (7)
- # fulcro (29)
- # hoplon (6)
- # immutant (1)
- # keechma (4)
- # lumo (43)
- # nyc (1)
- # off-topic (16)
- # om (1)
- # onyx (9)
- # re-frame (12)
- # rum (15)
- # shadow-cljs (18)
- # spacemacs (1)
- # sql (6)
- # uncomplicate (1)
- # unrepl (5)
- # vim (1)
hello, i'm on windows and would like to use leiningen with git bash. i downloaded the lein.sh, put it in my /bin dir and ran lein ok and it downloaded the standalone jar. however, when i try to run lein repl, i get pkix exceptions when it tries to download clojure-complete from clojars. I'm at work behind a company proxy and set http_proxy var but still no luck. Is there anyway to get around this error, maybe put a cert in my java keystore or something?
@eboats You might try the #leiningen channel to see if the Leiningen experts know -- but I don't think many people have even tried to run the nix version of Leiningen on Git Bash...
I'm on Windows 10 and use Ubuntu via WSL for all my command line dev work...
how can I have different behaviour based on wether I launched the application with "lein run" or from the compiled jar?
different Leiningen profiles, AOT compilation, different entry points… lots of things that can change 🙂
more generically, how can I make pr-str create a custom tag when it meets a java-time object
@teikfaiv you’d need to extend print-method
for that object; a simple example would be:
(defmethod print-method MyObject
[x writer]
(print-method (tagged-literal 'my/tag (my-render-fn x)) writer))
Alternately, check out https://github.com/greglook/puget for a more customizable printer that doesn’t use global multimethods.
learning clojure is like the worst nightmare at a devops job. obscure exception after obscure exception. outside of java i don't remember having to deal with this many different exceptions.
@teikfaiv you can look up values via weavejester/environ, and then set specific values in project.clj - when using uberjar nothing from project.clj has any effect, so it will go back to defaults
very nice, thanks @noisesmith
or, when running the uberjar you can override the defaults using java system properties or environment variables
@vincent.cantin depends an the project. For example for a small pet project, where the only communication will be by the client and server in the same project I use a websocket, with some custom ‘protocol’, to handle communication. But if you have more options to connect to the server, maybe even outside of the organisation, graphql, or rest, might make more sense.
thx for the answer. I think I will go for the websockets. Someone pointed me to https://github.com/ptaoussanis/sente which looks good
hello, i define a function inside my core.clj file. Then i try to invoke it in cider repl, but there is an error. How i can invoke this func in repl? https://imgur.com/AwphHGP
Have you loaded the file at the hello.core namespace?
Use C-c C-k
I've assumed it was emacs, sorry. How do you load a buffer in spacemacs?
Maybe using SPC b
Have you followed these instructions? https://spin.atomicobject.com/2017/02/16/clojure-development-in-spacemacs/ maybe it could help if your configuration was different
Check if it says Clojure mode at the bottom of the buffer
Maybe you could go to #spacemacs and see what's missing
You're welcome o/
Have you followed these instructions? https://spin.atomicobject.com/2017/02/16/clojure-development-in-spacemacs/ maybe it could help if your configuration was different