immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
seantempesta 2015-09-03T07:20:53.000050Z

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

statonjr 2015-09-03T13:01:04.000051Z

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:

statonjr 2015-09-03T13:03:17.000053Z

The system throws the error when I require any Immutant library

statonjr 2015-09-03T13:04:10.000056Z

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

statonjr 2015-09-03T13:04:37.000057Z

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

statonjr 2015-09-03T13:04:45.000058Z

BTW, we use timbre for logging.

statonjr 2015-09-03T13:04:48.000059Z

Thoughts?

2015-09-03T13:22:41.000060Z

@statonjr: howdy!

2015-09-03T13:23:02.000061Z

do you explicitly exclude slf4j?

statonjr 2015-09-03T13:24:17.000062Z

No

2015-09-03T13:24:38.000063Z

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

statonjr 2015-09-03T13:24:58.000064Z

Agreed. Sure surprised me!

2015-09-03T13:26:03.000065Z

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

2015-09-03T13:26:18.000066Z

can you try lein clean?

2015-09-03T13:26:42.000067Z

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

statonjr 2015-09-03T13:27:02.000068Z

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

statonjr 2015-09-03T13:27:11.000069Z

I tried lein clean to no avail

statonjr 2015-09-03T13:30:30.000070Z

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

2015-09-03T13:32:44.000072Z

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

2015-09-03T13:33:30.000073Z

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

statonjr 2015-09-03T13:33:38.000074Z

Yeah. One sec...

2015-09-03T13:42:53.000077Z

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

statonjr 2015-09-03T13:43:27.000078Z

I see it now

2015-09-03T13:46:26.000081Z

I suspect

2015-09-03T13:46:51.000082Z

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

2015-09-03T13:46:55.000083Z

@jcrossley3: are you here?

2015-09-03T13:47:48.000084Z

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

statonjr 2015-09-03T13:47:50.000085Z

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

2015-09-03T13:47:55.000086Z

ah

2015-09-03T13:48:39.000087Z

so you may just have to explicitly depend on slf4j then

statonjr 2015-09-03T13:48:51.000088Z

And it works if I remove the exclusion.

2015-09-03T13:49:12.000089Z

progress!

statonjr 2015-09-03T13:50:12.000090Z

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

statonjr 2015-09-03T13:50:26.000091Z

Thanks for the help!

2015-09-03T13:50:39.000092Z

my pleasure!

2015-09-03T14:05:46.000093Z

glad you guys figured that out without me :simple_smile: