Re: lein midje not working
On Wed, Apr 11, 2018 at 9:21 PM Renata Soares wrote: > I found the problem... in my core.clj i was using (slurp *in*) to get > contents via stdin. > 'lein midje' performs 'lein run' first? > Not specifically, but your test namespace requires it, so it will run and top-level code in it. In Clojure, it's a good idea to make sure any effects are in functions. -Jason -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: lein midje not working
I found the problem... in my core.clj i was using (slurp *in*) to get contents via stdin. 'lein midje' performs 'lein run' first? Em quarta-feira, 11 de abril de 2018 20:27:04 UTC-3, Renata Soares escreveu: > > Hello, > > I am running 'lein midje' on my project and looks like an infinite loop. > Doesn't show any message of error. > > Project.clj: > > (defproject job-queue "0.1.0-SNAPSHOT" > :description "FIXME: write description" > :url "http://example.com/FIXME"; > :main job-queue.core > :license {:name "Eclipse Public License" > :url "http://www.eclipse.org/legal/epl-v10.html"} > :dependencies [[org.clojure/clojure "1.8.0"] > [org.clojure/data.json "0.2.6"] > [midje "1.9.0"]] > :plugins [[lein-midje "3.2.1"]]) > > I created this test just to check the midje: > > (ns job-queue.core-test > (:require [job-queue.core :refer :all] > [midje.sweet :refer :all])) > > (fact > [1 3 5 8] => (contains even?)) > > What can it be? > > Thanks. > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: lein midje not working
The contents of your $HOME/.lein/profiles.clj file can affect the behavior of all 'lein' commands run from any project, if you have one. Andy On Wed, Apr 11, 2018 at 4:31 PM, Renata Soares wrote: > It happens with 'lein repl' too (gives timeout in this case). > > > Em quarta-feira, 11 de abril de 2018 20:27:04 UTC-3, Renata Soares > escreveu: >> >> Hello, >> >> I am running 'lein midje' on my project and looks like an infinite loop. >> Doesn't show any message of error. >> >> Project.clj: >> >> (defproject job-queue "0.1.0-SNAPSHOT" >> :description "FIXME: write description" >> :url "http://example.com/FIXME"; >> :main job-queue.core >> :license {:name "Eclipse Public License" >> :url "http://www.eclipse.org/legal/epl-v10.html"} >> :dependencies [[org.clojure/clojure "1.8.0"] >> [org.clojure/data.json "0.2.6"] >> [midje "1.9.0"]] >> :plugins [[lein-midje "3.2.1"]]) >> >> I created this test just to check the midje: >> >> (ns job-queue.core-test >> (:require [job-queue.core :refer :all] >> [midje.sweet :refer :all])) >> >> (fact >> [1 3 5 8] => (contains even?)) >> >> What can it be? >> >> Thanks. >> >> -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: lein midje not working
Do you mean you type `lein repl` and you don’t get a prompt at all? It just hangs before then? I tried to reproduce based on the information below and it seems to work for me: (! 1115)-> lein new app job-queue Generating a project called job-queue based on the 'app' template. Wed Apr 11 16:40:54 (sean)-(jobs:0)-(~/clojure) (! 1116)-> cd job-queue/ Wed Apr 11 16:40:57 (sean)-(jobs:0)-(~/clojure/job-queue) (! 1117)-> cat > project.clj (defproject job-queue "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME"; :main job-queue.core :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/data.json "0.2.6"] [midje "1.9.0"]] :plugins [[lein-midje "3.2.1"]]) ^D Wed Apr 11 16:41:07 (sean)-(jobs:0)-(~/clojure/job-queue) (! 1118)-> lein repl nREPL server started on port 59357 on host 127.0.0.1 - nrepl://127.0.0.1:59357 … job-queue.core=> Bye for now! Wed Apr 11 16:41:16 (sean)-(jobs:0)-(~/clojure/job-queue) (! 1119)-> cat > test/job_queue/core_test.clj (ns job-queue.core-test (:require [job-queue.core :refer :all] [midje.sweet :refer :all])) (fact [1 3 5 8] => (contains even?)) ^D Wed Apr 11 16:41:43 (sean)-(jobs:0)-(~/clojure/job-queue) (! 1120)-> lein midje nil All checks (1) succeeded. Wed Apr 11 16:41:57 (sean)-(jobs:0)-(~/clojure/job-queue) (! 1121)-> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ____________ From: clojure@googlegroups.com on behalf of Renata Soares Sent: Wednesday, April 11, 2018 4:31:15 PM To: Clojure Subject: Re: lein midje not working It happens with 'lein repl' too (gives timeout in this case). Em quarta-feira, 11 de abril de 2018 20:27:04 UTC-3, Renata Soares escreveu: Hello, I am running 'lein midje' on my project and looks like an infinite loop. Doesn't show any message of error. Project.clj: (defproject job-queue "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME"; :main job-queue.core :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/data.json "0.2.6"] [midje "1.9.0"]] :plugins [[lein-midje "3.2.1"]]) I created this test just to check the midje: (ns job-queue.core-test (:require [job-queue.core :refer :all] [midje.sweet :refer :all])) (fact [1 3 5 8] => (contains even?)) What can it be? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com<mailto:clojure+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: lein midje not working
It happens with 'lein repl' too (gives timeout in this case). Em quarta-feira, 11 de abril de 2018 20:27:04 UTC-3, Renata Soares escreveu: > > Hello, > > I am running 'lein midje' on my project and looks like an infinite loop. > Doesn't show any message of error. > > Project.clj: > > (defproject job-queue "0.1.0-SNAPSHOT" > :description "FIXME: write description" > :url "http://example.com/FIXME"; > :main job-queue.core > :license {:name "Eclipse Public License" > :url "http://www.eclipse.org/legal/epl-v10.html"} > :dependencies [[org.clojure/clojure "1.8.0"] > [org.clojure/data.json "0.2.6"] > [midje "1.9.0"]] > :plugins [[lein-midje "3.2.1"]]) > > I created this test just to check the midje: > > (ns job-queue.core-test > (:require [job-queue.core :refer :all] > [midje.sweet :refer :all])) > > (fact > [1 3 5 8] => (contains even?)) > > What can it be? > > Thanks. > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
lein midje not working
Hello, I am running 'lein midje' on my project and looks like an infinite loop. Doesn't show any message of error. Project.clj: (defproject job-queue "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME"; :main job-queue.core :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/data.json "0.2.6"] [midje "1.9.0"]] :plugins [[lein-midje "3.2.1"]]) I created this test just to check the midje: (ns job-queue.core-test (:require [job-queue.core :refer :all] [midje.sweet :refer :all])) (fact [1 3 5 8] => (contains even?)) What can it be? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.