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 would expect to see the name of the other function. On Sunday, January 10, 2016 at 2:52:48 AM UTC-5, James Elliott wrote: > > 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 AM UTC-6, 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 its >> namespace declaration: >> >> (ns salesvoice.server >> (:require >> [salesvoice.query :as query] >> >> >> In query.clj, I have this: >> >> >> (defn make-response >> [company-name outputSpeech-text] >> {"version" "1.0" >> "sessionAttributes" { >> "company-name" company-name >> "user-id" "user-id" >> } >> "response" { >> "outputSpeech" { >> "type" "PlainText" >> "text" outputSpeech-text >> } >> "card" { >> "type" "Simple" >> "title" (str "Sales Report for " company-name) >> "content" outputSpeech-text >> } >> "reprompt" { >> "outputSpeech" { >> "type" "PlainText" >> "text" "Can I help you >> with anything else?" >> } >> } >> "shouldEndSession" true >> } >> }) >> >> >> When I type "lein uberjar" at the command line I get: >> >> >> Exception in thread "main" java.lang.IllegalArgumentException: Parameter >> declaration make-response should be a vector, compiling:(server.clj:1:1) >> >> The parameter declaration for make-response is a vector. I am not clear >> why I am getting this error. >> >> Things I tried: >> >> 1.) moving this around in the file. It had been in the middle of >> query.clj, but I moved it to the top, its now the first function defined in >> that file >> >> 2.) re-typing the parameter declaration >> >> 3.) looking for other functions that have the same name, but grep shows >> this is the only declaration >> >> So what could the real issue be? >> >> Also, why does the error seem to show up when server.clj is including >> query.clj. Shouldn't the error appear when query.clj is compiled? >> >> >> >> >> >> >> >> >> >> -- 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.