Fork me on GitHub
#beginners
<
2017-07-28
>
seancorfield02:07:57

@moogey The docstrings mostly tell you this. When you're in the REPL (which should be pretty much always, right?), then (clojure.repl/doc some-name) is always your friend (as is (clojure.repl/source some-name) -- and most editors with REPL integration have shortcuts for both).

sb11:07:33

Hi, I would like to get a little help. I read in books and many places possible to do this. I don’t know what is the problem on the OSx. I try load ns in repl (not just empty ns) with (load "man_namespace/hello") and (in-ns 'man...) what is the problem? (before this I loaded manually the full source, but I would like to find a quicker and smarter solution)

sb11:07:33

I got everytime CompilerException java.lang.RuntimeException: No such namespace: error message.

gonewest81814:07:21

How is the ns declared at the top of src/man_namespace/hello.clj?

sb14:07:37

I tried too and I got similar error message. Maybe something wrong config?

mobileink15:07:04

man-namespace is the ns seg for path seg man_namespace

serg16:07:30

Guys, can someone help with http-kit issue: I am doing multiple async GET calls and in callbacks I am doing another sync call And this get stuck on first calls:

(->> (range 0 4)
     (mapv (fn [i]
             (http/get ""
                       (fn [res]
                         (info "first callback")
                         (let [res @(http/get "")]
                           (info "second callback ")))))))
It print out 4s first callback messages and then stuck If I change the range to 0..3 it works, sync version also works

dfcarpenter22:07:58

Hi everyone i'm newish and trying to understand how to use the repl. I am using (load "") to load my file and then (in-ns ' ) and I load my file I am working against. When I make changes what is the preferred way to reload? Is there some sort of watcher I can leverage?

schmee22:07:01

if you want to reload a single namespace you can do (require 'your-namespace :reload)

schmee22:07:37

but tools.namespace is a more complete solution that will reload all dependencies of stuff that changed etc.

dfcarpenter22:07:14

Thanks. I saw that when looking around but wasn't sure if thats what was recommended. Thanks!