Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Jony Hudson
This is probably just a copy and paste problem, rather than the solution to your real problem, but ... the namespace declaration you've got in your OP is missing a couple of closing ). Jony On Sunday, 10 January 2016 07:28:00 UTC, Laws wrote: > > I've been staring at this for awhile, and

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
Ah, finally found it: (defn get-stop-response (make-response "No company specified" "Session ended" true)) I am surprised that the error was for "make-response" and not "get-stop-response". It is "get-stop-response" where I forgot the parameter declaration. On Sunday, January 10, 2016

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
The implication, as I read it, is that there is some place where I do something like this: response-in-amazon-format (make-response company-name outputSpeech-text false)] In some other function, and the compiler feels that I am defining a new arity for that other function? But then I

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
Yes, I edited the namespace declaration. The full namespace declaration, in server.clj, is: (ns salesvoice.server (:import [java.io FileNotFoundException]) (:require [salesvoice.credentials :as credentials] [salesvoice.middleware :as middleware] [taoensso.timbre :as timbre]

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread James Elliott
Ah, but it actually does make sense now! > Exception in thread "main" java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector, compiling:(server.clj:1:1) The compiler is complaining about finding "(make-response"… where it was looking for a parameter

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-09 Thread Laws
And yes, I did try running "lein clean". On Sunday, January 10, 2016 at 2:28:00 AM UTC-5, Laws wrote: > > I've been staring at this for awhile, and moving it around, and re-typing > it, without seeing what the real error is. > > I have a file called server.clj which includes this at the top in

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-09 Thread James Elliott
That is puzzling indeed. There doesn’t seem to be anything wrong with the function itself, as you say. I can evaluate it and run it. There must be some other element of your environment which you have not shared here which is throwing sand in the gears. On Sunday, January 10, 2016 at 1:28:00

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-09 Thread Laws
I would guess that I was dealing with some variant of this: http://dev.clojure.org/jira/browse/CLJ-1629 but I can not figure out how my function is malformed. On Sunday, January 10, 2016 at 2:28:00 AM UTC-5, Laws wrote: > > I've been staring at this for awhile, and moving it around, and