duct-framework / duct

Server-side application framework for Clojure
MIT License
1.13k stars 51 forks source link

"Advancing Duct" demo yields silent fail #78

Closed colliderwriter closed 5 years ago

colliderwriter commented 5 years ago

Following the instructions in [Advancing Duct][https://www.booleanknot.com/blog/2017/05/09/advancing-duct.html]

on a current Fedora 28

yields the following:

$ lein new duct-alpha foo
Retrieving duct-alpha/lein-template/0.11.0-alpha6/lein-template-0.11.0-alpha6.pom from clojars
Retrieving duct-alpha/lein-template/0.11.0-alpha6/lein-template-0.11.0-alpha6.jar from clojars
Generating a new Duct project named foo...
Run 'lein duct setup' in the project directory to create local config files.
[~]$ cd foo
[foo]$ lein duct setup
Retrieving duct/lein-duct/0.11.0-alpha6/lein-duct-0.11.0-alpha6.pom from clojars
Retrieving duct/lein-duct/0.11.0-alpha6/lein-duct-0.11.0-alpha6.jar from clojars
Created profiles.clj
Created .dir-locals.el
Created dev/resources/local.edn
Created dev/src/local.clj
[foo]$ lein run 
Retrieving org/clojure/clojure/1.10.0-beta1/clojure-1.10.0-beta1.pom from central
Retrieving org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.pom from central
Retrieving org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.pom from central
Retrieving duct/core/0.7.0-alpha8/core-0.7.0-alpha8.pom from clojars
Retrieving integrant/integrant/0.7.0/integrant-0.7.0.pom from clojars
Retrieving weavejester/dependency/0.2.1/dependency-0.2.1.pom from clojars
Retrieving duct/module.logging/0.4.0-alpha1/module.logging-0.4.0-alpha1.pom from clojars
Retrieving duct/core/0.7.0-alpha5/core-0.7.0-alpha5.pom from clojars
Retrieving integrant/integrant/0.7.0-alpha2/integrant-0.7.0-alpha2.pom from clojars
Retrieving org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar from central
Retrieving org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar from central
Retrieving org/clojure/clojure/1.10.0-beta1/clojure-1.10.0-beta1.jar from central
Retrieving org/jsoup/jsoup/1.6.1/jsoup-1.6.1.jar from central
Retrieving commons-io/commons-io/2.0.1/commons-io-2.0.1.jar from central
Retrieving org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar from central
Retrieving commons-codec/commons-codec/1.4/commons-codec-1.4.jar from central
Retrieving weavejester/dependency/0.2.1/dependency-0.2.1.jar from clojars
Retrieving duct/module.logging/0.4.0-alpha1/module.logging-0.4.0-alpha1.jar from clojars
Retrieving duct/core/0.7.0-alpha8/core-0.7.0-alpha8.jar from clojars
Retrieving integrant/integrant/0.7.0/integrant-0.7.0.jar from clojars
Retrieving duct/logger/0.2.0/logger-0.2.0.jar from clojars
[foo]$ lein run 
[foo]$ 
weavejester commented 5 years ago

Ah, that tutorial is out of date by a couple of versions. Use lein new duct foo instead.

I'll update the blog post as well.

colliderwriter commented 5 years ago

Hating to be a nuisance, but I tried that and had a different issue:

[~]$ rm -r foo
[~]$ lein new duct foo
Generating a new Duct project named foo...
Run 'lein duct setup' in the project directory to create local config files.
[~]$ cd foo
[foo]$ lein duct setup
Created profiles.clj
Created .dir-locals.el
Created dev/resources/local.edn
Created dev/src/local.clj
[foo]$ lein run
Exception in thread "main" java.lang.IllegalAccessError: in-seconds does not exist, compiling:(ring/middleware/cookies.clj:1:1)
            .   .   .
[stacktrace lines snipped]
weavejester commented 5 years ago

Do you have a plugin in your ~/.lein/profiles.clj file that's pulling in an old version of clj-time?

colliderwriter commented 5 years ago

Bullseye. This is a brand new user account on this machine which, when created, copied some cruft.

Closing this issue and I'm sorry for wasting your time and and thank you very much for taking the time to answer.