Fork me on GitHub
#beginners
<
2017-07-10
>
mobileink02:07:35

@lilactown i'm with @didibus. 0/1 is not an error - that would imply that it is meaningful. but it is merely undefined, so it is not even wrong, so to speak. to me that's what an exception means - you've tried to do sth that is not even computational, so we're gonna bail - no value for you!

lilactown02:07:44

@noisesmith that's a really good point

benbot14:07:49

Hey I’m pretty new to clojure and the whole java ecosystem and I’m having some issues using this slack clojar. It’s been telling me that it can’t locate clj_slack__init.class or clj_slack.clj on the classpath. I declared the dep in my project.clj file and I checked that it was installed with lein deps :tree… so at this point I’m lost

rauh14:07:32

@benbot What does (str/split (System/getProperty "java.class.path") #":") give?

benbot14:07:54

CompilerException java.lang.RuntimeException: No such namespace: str, compiling:(/private/var/folders/v2/f6r_vb3d4mlfb4_q1bc8v4sjc9rv1b/T/form-init7487140118912855606.clj:1:1)

benbot14:07:59

that doesn’t look right 😕

rauh14:07:37

@benbot There is no such namespace. You have to choose on of those in the readme: https://github.com/julienXX/clj-slack#usage

benbot14:07:35

no such namespace str?

benbot14:07:59

there’s no mention of namespace in that readme

rauh14:07:00

@benbot Forget about the str, the clj-slack library you're using has no clj-slack namespace

benbot14:07:13

Oh i see. I thought clj-slack was a top level namespace

noisesmith16:07:58

@benbot FYI in general top level namespaces are a bad thing and the few libraries that define them are doing it wrong

noisesmith16:07:59

(for reasons relating to packages and the behavior of clojure facilities that treat namespaces as packages)

benbot16:07:56

Alright, good to know. Thanks :)