Fork me on GitHub
#immutant
<
2015-09-03
>
seantempesta07:09:53

Hi guys. Has anyone used Sente with Immutant? I’m having trouble conceptualizing how state is maintained across multiple connections.

statonjr13:09:04

Greetings Immutants! I just upgraded one of our projects from 2.0.2 to 2.1.0 and the system is throwing the following error:

statonjr13:09:17

The system throws the error when I require any Immutant library

statonjr13:09:10

It’s a type hint in a file that says “No longer used”.

statonjr13:09:37

My other projects don’t fail because they use Datomic, which brings in org.slf4j.Logger.

statonjr13:09:45

BTW, we use timbre for logging.

tcrawley13:09:02

do you explicitly exclude slf4j?

tcrawley13:09:38

and I'm surprised the behavior changed with 2.1.0, that hint has been there since 2.0.0

statonjr13:09:58

Agreed. Sure surprised me!

tcrawley13:09:03

where do you see that it's no longer used?

tcrawley13:09:18

can you try lein clean?

tcrawley13:09:42

@seantempesta: what sort of state are you referring to?

statonjr13:09:02

@tcrawley: On the top of the file in GitHub. May not be referring to that file

statonjr13:09:11

I tried lein clean to no avail

statonjr13:09:30

When I run lein test or lein run with 2.0.2, I get the standard slf4j output:

tcrawley13:09:44

ah, "no longer used" was the latest commit, in ref to a removed macro

tcrawley13:09:30

can you share lein deps :tree with 2.0.2 and 2.1.0? maybe we changed a transitive dep somewhere

statonjr13:09:38

Yeah. One sec...

tcrawley13:09:53

it looks like wunderboss-core used to bring it in, let me see what we changed there

statonjr13:09:27

I see it now

tcrawley13:09:51

it seems like logback should bring in slf4j, or at least that's implied by the commit

tcrawley13:09:48

I'm going to see what happens with a bare-bones app

statonjr13:09:50

In my project.clj: [org.immutant/web "2.0.2" :exclusions [ch.qos.logback/logback-classic]]

tcrawley13:09:39

so you may just have to explicitly depend on slf4j then

statonjr13:09:51

And it works if I remove the exclusion.

statonjr13:09:12

I just need to remember why we excluded logback in the first place! Probably due to that reflection warning.

statonjr13:09:26

Thanks for the help!

tcrawley13:09:39

my pleasure!

jcrossley314:09:46

glad you guys figured that out without me simple_smile